Top Hosting Forum

WebHosting Reviews Forum


Non-static method utf_normalizer::nfc() should not be called

PHPBB forum script Discussion. PHPBB Questions, Troubleshooting, Errors, Mods and so on..
Hosting Forum Description
PHPBB forum script Discussion. PHPBB Questions, Troubleshooting, Errors, Mods and so on..

Non-static method utf_normalizer::nfc() should not be called

Postby hostingforum » Thu Aug 01, 2024 12:37 pm

In PHPBB

[STDERR] PHP Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in includes/utf/utf_tools.php on line 1781\n

replace:
utf_normalizer::nfc($strings);

by:
$utf_normalizer = new utf_normalizer();
$utf_normalizer->nfc($strings);
unset($utf_normalizer);

----------------

[STDERR] PHP Strict Standards: Non-static method utf_normalizer::nfkc() should not be called statically in includes/utf/utf_tools.php on line 1663\n

replace:
utf_normalizer::nfkc($text);

by:
$utf_normalizer = new utf_normalizer();
$utf_normalizer->nfkc($text);
unset($utf_normalizer);

---------------

[STDERR] PHP Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in includes/utf/utf_tools.php on line 1803\n

replace:
utf_normalizer::nfc($strings[$key]);

by:
$utf_normalizer = new utf_normalizer();
$utf_normalizer->nfc($strings[$key]);
unset($utf_normalizer);

a few lines up is line that seems to be producing similar error, replace:
utf_normalizer::nfc($strings[$key][$_key]);

by:
$normalizer = new utf_normalizer(); // Create an instance
$result = $normalizer->nfc($strings[$key][$_key]); // Call the method on the instance



hostingforum
Site Admin
 
Posts: 673
Joined: Fri May 20, 2011 7:58 pm

Return to PHPBB

Who is online

Users browsing this forum: No registered users and 0 guests

.