PayPal Donation Extension

PHP Fatal Error when switching to PHP 8.2 - PayPal Donation Extension

PHP Fatal Error when switching to PHP 8.2

by crag364 » Thu Dec 19, 2024 4:06 pm

When switching from PHP 8.1 to PHP 8.2 I get a 500 error on my board. I've tracked it down to this extension, and once I have disabled it my board works correctly. I am getting the below error in my apache logs. Any ideas how to resolve this?

Code: Select all

PHP Fatal error:  Uncaught Error: Call to undefined function skouat\ppde\actions\numfmt_create() in /home/underwat/public_html/forum/ext/skouat/ppde/actions/locale_icu.php:145
Stack trace:
#0 /home/underwat/public_html/forum/ext/skouat/ppde/actions/currency.php(90): skouat\ppde\actions\locale_icu->numfmt_create()
#1 /home/underwat/public_html/forum/ext/skouat/ppde/controller/main_display_stats.php(120): skouat\ppde\actions\currency->format_currency(5092.28, 'USD', '$', true)
#2 /home/underwat/public_html/forum/ext/skouat/ppde/controller/main_display_stats.php(67): skouat\ppde\controller\main_display_stats->get_ppde_raised_langkey('USD', '$', true)
#3 /home/underwat/public_html/forum/ext/skouat/ppde/event/listener.php(100): skouat\ppde\controller\main_display_stats->display_stats()
#4 /home/underwat/public_html/forum/vendor/symfony/event-dispatcher/EventDispatcher.php(214): skouat\ppde\event\listener->load_index_data(Object(phpbb\event\data), 'core.index_modi...', Object(phpbb\event\dispatcher))
#5 /home/underwat/public_html/forum/vendor/symfony/event-dispatcher/EventDispatcher.php(44): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'core.index_modi...', Object(phpbb\event\data))
#6 /home/underwat/public_html/forum/phpbb/event/dispatcher.php(62): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('core.index_modi...', Object(phpbb\event\data))
#7 /home/underwat/public_html/forum/phpbb/event/dispatcher.php(46): phpbb\event\dispatcher->dispatch('core.index_modi...', Object(phpbb\event\data))
#8 /home/underwat/public_html/forum/index.php(245): phpbb\event\dispatcher->trigger_event('core.index_modi...', Array)
#9 {main}
  thrown in /home/underwat/public_html/forum/ext/skouat/ppde/actions/locale_icu.php on line 145
Thanks,

Craig
crag364
Registered User
Posts: 111
Joined: Thu Jul 26, 2007 1:24 pm

Re: PHP Fatal Error when switching to PHP 8.2

by Skouat » Thu Dec 19, 2024 11:40 pm

Hi Craig,

Thanks for this report, I will investigate.
Skouat
Code Contributor
Posts: 1058
Joined: Mon Mar 10, 2008 5:30 pm
Location: France

Re: PHP Fatal Error when switching to PHP 8.2

by Skouat » Sat Dec 21, 2024 11:10 am

Hi Craig,

This is not an issue with my extension, but an issue on your server config.
Please check that the PHP Intl extension is well installed and loaded.
Last edited by Skouat on Sun Dec 22, 2024 11:51 am
Skouat
Code Contributor
Posts: 1058
Joined: Mon Mar 10, 2008 5:30 pm
Location: France

Re: PHP Fatal Error when switching to PHP 8.2

by crag364 » Sat Dec 21, 2024 12:53 pm

Thanks your right it wasn’t loaded. I’ve just rebuilt it including this and now the forum works correctly. Thanks for your quick assistance.
crag364
Registered User
Posts: 111
Joined: Thu Jul 26, 2007 1:24 pm