Installation has broken
3 posts by 2 authors in: Forums > CMS Builder
Last Post: May 8, 2024 (RSS)
By mattbcd - May 7, 2024
Hi there.
This installation of CMSB is no longer functioning:
http://elitecoaching.com/cmsb/
with this error:
------------
Too few arguments to function _errorlog_catchRuntimeErrors(), 4 passed in /home/elitecoaching/public_html/cmsb/lib/init.php on line 279 and exactly 5 expected in /home/elitecoaching/public_html/cmsb/lib/errorlog_functions.php on line 48. Fatal error: Uncaught ArgumentCountError: Too few arguments to function _errorlog_catchRuntimeErrors(), 4 passed in /home/elitecoaching/public_html/cmsb/lib/errorlog_functions.php on line 344 and exactly 5 expected in /home/elitecoaching/public_html/cmsb/lib/errorlog_functions.php:48 Stack trace: #0 /home/elitecoaching/public_html/cmsb/lib/errorlog_functions.php(344): _errorlog_catchRuntimeErrors() #1 [internal function]: _errorlog_sendEmailAlert() #2 {main} thrown in /home/elitecoaching/public_html/cmsb/lib/errorlog_functions.php on line 48
------------
To the best of my knowledge, nothing has changed on the server.
Do you have any idea what is causing this?
Many thanks
Matt Harpham
By Dave - May 7, 2024
Hi Matt,
It's because PHP was upgraded on the server and the latest version has different requirements than the older versions.
Specifically, it's the PHP set_error_handler() function which used to support 5 arguments but now only supports 4 as of PHP 8.
The best long-term fix is to upgrade the CMS to the latest version.
Hope that helps!
interactivetools.com