dalbert Posted September 25, 2022 Posted September 25, 2022 Recently we are getting errors on our site, both in the header of our public site, as well as on the AdminCP.. We will be upgrading the site, but I wish to resolve these before doing so, so we have a clean running site to upgrade from. Current version is 4.1.11.1 Anyway, any insights on resolving these errors would be appreciated. Thanks in advance ==================== Displayed at the top of the site --------- [[Template core/front/global/updateWarning is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]] Within the AdminCP ----------- ErrorException: Invalid argument supplied for foreach() (2) #0 /usr/www/users/bobsmith/sitename/forums/system/Application/Application.php(458): IPS\IPS::errorHandler(2, 'Invalid argumen...', '/usr/www/users/...', 458, Array) #1 /usr/www/users/bobsmith/sitename/forums/applications/core/modules/admin/overview/dashboard.php(177): IPS\_Application->availableUpgrade(true) #2 /usr/www/users/bobsmith/sitename/forums/system/Dispatcher/Controller.php(94): IPS\core\modules\admin\overview\_dashboard->manage() #3 [internal function]: IPS\Dispatcher\_Controller->execute() #4 /usr/www/users/bobsmith/sitename/forums/init.php(435) : eval()'d code(14): call_user_func_array('parent::execute', Array) #5 /usr/www/users/bobsmith/sitename/forums/system/Dispatcher/Dispatcher.php(129): IPS\Dispatcher\hook84->execute() #6 /usr/www/users/bobsmith/sitename/forums/admin/index.php(13): IPS\_Dispatcher->run() #7 {main}
Randy Calvert Posted September 25, 2022 Posted September 25, 2022 Did your host recently upgrade to php8? If so, this is most likely your problem as that version of php is not compatible with that very old version of IPB.
dalbert Posted September 25, 2022 Author Posted September 25, 2022 PHP is listed as 5.6.40 Quote % php -v PHP 5.6.40 (cli) (built: Jan 14 2021 14:37:24) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologie SQL is 5.6.51 Which brings up a question -- does anybody know the latest version of PHP that is compatible with this older version of the software (as part of my migration path)? Thanks.
Marc Posted September 26, 2022 Posted September 26, 2022 I would suggest the following Make a full backup update to PHP 8 upload a fresh set of files from your client area upgrade from /admin/upgrade . If you have any issues please let us know. The reality is, this is going to be the best way forward. It may be best to simply disable all 3rd party items and deal with upgrading those after you have a successful upgrade as most are likely to be outdated and wont work.
Recommended Posts