Thread: Non-static method foutmelding
-
17-05-2012, 11:23 #1Approved 9liver
- Registered
- 18/04/03
- Location
- Hasselt
- Posts
- 14,855
- iTrader
- 23 (100%)
- Mentioned
- 0 Post(s)
- Reputation
- 10/79
Non-static method foutmelding
Zou iemand mij hier mee kunnen helpen? Het verschil(100 mili secondes vs 3 secondes) in page load time is echt de moeite om dit opgelost te krijgenVoor onze drupal website sneller te laten werken maken wij gebruik van de authcache module, deze zal echter niet werken als er een php error/notice getoond word, in dit geval de volgende foutmelding:
Non-static method utf_normalizer::nfc() should not be called statically","file":"/var/www/clients/clientx/webx/web/forum/includes/utf/utf_tools.php","line":1781
De makers van de phpbb bridge verwijzen naar phpbb om dit probleem op te lossen..
Deze oplossing heb ik geprobeerd: phpBB • View topic - Problems installing "Non-static method" maar dan geeft hij de foutmelding bij berichtplaatsen: Undefined variable: utfn
no votes
-
-
17-05-2012, 16:13 #2Member
- Registered
- 19/02/06
- Location
- -
- Posts
- 4,048
- iTrader
- 1 (100%)
- Mentioned
- 0 Post(s)
- Reputation
- 2/73
Als je nu in die file utf_tools.php deze code
vervangt door de volgende code?PHP Code:function utf8_normalize_nfc($strings)
{
if (empty($strings))
{
return $strings;
}
if (!class_exists('utf_normalizer'))
{
global $phpbb_root_path, $phpEx;
include($phpbb_root_path . 'includes/utf/utf_normalizer.' . $phpEx);
}
if (!is_array($strings))
{
utf_normalizer::nfc($strings);
}
else if (is_array($strings))
{
foreach ($strings as $key => $string)
{
if (is_array($string))
{
foreach ($string as $_key => $_string)
{
utf_normalizer::nfc($strings[$key][$_key]);
}
}
else
{
utf_normalizer::nfc($strings[$key]);
}
}
}
return $strings;
}
PHP Code:function utf8_normalize_nfc($strings)
{
if (empty($strings))
{
return $strings;
}
if (!class_exists('utf_normalizer'))
{
global $phpbb_root_path, $phpEx;
include($phpbb_root_path . 'includes/utf/utf_normalizer.' . $phpEx);
}
$normalizer = new utf_normalizer();
if (!is_array($strings))
{
$normalizer->nfc($strings);
}
else if (is_array($strings))
{
foreach ($strings as $key => $string)
{
if (is_array($string))
{
foreach ($string as $_key => $_string)
{
$normalizer->nfc($strings[$key][$_key]);
}
}
else
{
$normalizer->nfc($strings[$key]);
}
}
}
return $strings;
}
no votes
-
17-05-2012, 18:14 #3Approved 9liver
- Registered
- 18/04/03
- Location
- Hasselt
- Posts
- 14,855
- iTrader
- 23 (100%)
- Mentioned
- 0 Post(s)
- Reputation
- 10/79
no votes
-
17-05-2012, 18:16 #4Member
- Registered
- 19/02/06
- Location
- -
- Posts
- 4,048
- iTrader
- 1 (100%)
- Mentioned
- 0 Post(s)
- Reputation
- 2/73
no votes


