Raayzeck Posted January 28 Report Share Posted January 28 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 Quote Link to comment Share on other sites More sharing options...
avangcom Posted January 28 Report Share Posted January 28 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). Quote Link to comment Share on other sites More sharing options...
Raayzeck Posted January 28 Author Report Share Posted January 28 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. Quote Link to comment Share on other sites More sharing options...
Orpheus Posted January 28 Report Share Posted January 28 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. Quote Link to comment Share on other sites More sharing options...
Raayzeck Posted January 28 Author Report Share Posted January 28 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} Quote Link to comment Share on other sites More sharing options...
avangcom Posted January 28 Report Share Posted January 28 tested version Ips4.7.2 Quote Link to comment Share on other sites More sharing options...
Raayzeck Posted January 28 Author Report Share Posted January 28 18 minutes ago, avangcom said: tested version Ips4.7.2 where can I find this? I only found the 4.7.6 Quote Link to comment Share on other sites More sharing options...
Raayzeck Posted January 28 Author Report Share Posted January 28 2 hours ago, avangcom said: version Ips4.7.2 even in this version the error continues Quote Link to comment Share on other sites More sharing options...
Raayzeck Posted January 30 Author Report Share Posted January 30 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} Quote Link to comment Share on other sites More sharing options...
Zero108 Posted January 30 Report Share Posted January 30 Возможно, вам нужно установить php 8.1 и отключить все сторонние плагины и приложения на вашем сайте, либо вовсе удалить их перед апгрейдом. Quote Link to comment Share on other sites More sharing options...
Raayzeck Posted January 31 Author Report Share Posted January 31 I'm on php 8.2 and I've tried deactivating all plugins and reinstalling them, but nothing works. Quote Link to comment Share on other sites More sharing options...
Exception Posted January 31 Report Share Posted January 31 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 Raayzeck 1 Quote Link to comment Share on other sites More sharing options...
Raayzeck Posted January 31 Author Report Share Posted January 31 tks, I fixed my problem Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.