Posted 28 января, 20231 yr Hi! I'm having this error when I try to upgrade from version 4.7.0 to 4.7.6. What can I do? EX0array_keys(): Argument #1 ($array) must be of type array, null given
28 января, 20231 yr No that's not possible. It's only possible if you've taken a backup before the upgrade (you should always take a backup before an upgrade).
28 января, 20231 yr Author 2 minutes ago, avangcom said: No that's not possible. It's only possible if you've taken a backup before the upgrade (you should always take a backup before an upgrade). I backed it up before uploading the latest version files. However, I have this error that does not allow me to update.
28 января, 20231 yr 15 minutes ago, Raayzeck said: I backed it up before uploading the latest version files. However, I have this error that does not allow me to update. Please check your server logs and the logs (most probably in yoursite.com/uploads/logs) which IPS generates.
28 января, 20231 yr Author 8 minutes ago, Orpheus said: server logs I have this in my server logs: Quote TypeError: array_keys(): Argument #1 ($array) must be of type array, null given (0) #0 /var/www/forum_adrp/system/Application/Application.php(384): array_keys() #1 /var/www/forum_adrp/applications/core/modules/setup/upgrade/login.php(88): IPS\_Application::getAvailableVersion() #2 /var/www/forum_adrp/system/Dispatcher/Controller.php(118): IPS\core\modules\setup\upgrade\_login->manage() #3 /var/www/forum_adrp/system/Dispatcher/Setup.php(220): IPS\Dispatcher\_Controller->execute() #4 /var/www/forum_adrp/admin/upgrade/index.php(34): IPS\Dispatcher\_Setup->run() #5 {main} and here's my uploads/logs: <?php exit; ?> Sat, 28 Jan 2023 13:43:19 +0000 ErrorException: Class IPS\Patterns\Singleton could not be loaded. Ensure it has been properly prefixed with an underscore and is in the correct namespace. (256) #0 [internal function]: IPS\IPS::errorHandler() #1 /var/www/forum_adrp/init.php(771): trigger_error() #2 /var/www/forum_adrp/system/Settings/Settings.php(23): IPS\IPS::autoloader() #3 /var/www/forum_adrp/init.php(754): require_once('...') #4 /var/www/forum_adrp/system/Dispatcher/Front.php(39): IPS\IPS::autoloader() #5 /var/www/forum_adrp/init.php(932) : eval()'d code(9): IPS\Dispatcher\_Front->init() #6 /var/www/forum_adrp/system/Dispatcher/Dispatcher.php(110): IPS\Dispatcher\hook97->init() #7 /var/www/forum_adrp/index.php(13): IPS\_Dispatcher::i() #8 {main} #0 /var/www/forum_adrp/init.php(1034): IPS\_Log::log() #1 [internal function]: IPS\IPS::exceptionHandler() #2 {main}
28 января, 20231 yr Author 18 minutes ago, avangcom said: tested version Ips4.7.2 where can I find this? I only found the 4.7.6
28 января, 20231 yr Author 2 hours ago, avangcom said: version Ips4.7.2 even in this version the error continues
30 января, 20231 yr Author I have this in my logs: TypeError: array_keys(): Argument #1 ($array) must be of type array, null given (0) #0 /var/www/forum_adrp/system/Application/Application.php(384): array_keys() #1 /var/www/forum_adrp/applications/core/modules/setup/upgrade/login.php(88): IPS\_Application::getAvailableVersion() #2 /var/www/forum_adrp/system/Dispatcher/Controller.php(118): IPS\core\modules\setup\upgrade\_login->manage() #3 /var/www/forum_adrp/system/Dispatcher/Setup.php(220): IPS\Dispatcher\_Controller->execute() #4 /var/www/forum_adrp/admin/upgrade/index.php(34): IPS\Dispatcher\_Setup->run() #5 {main} #0 /var/www/forum_adrp/init.php(1029): IPS\_Log::log() #1 [internal function]: IPS\IPS::exceptionHandler() #2 {main}
30 января, 20231 yr Возможно, вам нужно установить php 8.1 и отключить все сторонние плагины и приложения на вашем сайте, либо вовсе удалить их перед апгрейдом.
31 января, 20231 yr Author I'm on php 8.2 and I've tried deactivating all plugins and reinstalling them, but nothing works.
31 января, 20231 yr 6 минут назад, Raayzeck сказал: I'm on php 8.2 and I've tried deactivating all plugins and reinstalling them, but nothing works. Ошибка в логах говорит о том, что функция не может получить версию какого-то приложения. Посмотри у всех ли приложений есть файл versions.json и заполнен ли он версиями /applications/{APP}/data/versions.json
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.