Jump to content

Upgrade error


Recommended Posts

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

image.thumb.png.af9f09089e9b1df352aabc7c923badef.png

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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}

 

Link to comment
Share on other sites

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}

 

Link to comment
Share on other sites

Возможно, вам нужно установить php 8.1 и отключить все сторонние плагины и приложения на вашем сайте, либо вовсе удалить их перед апгрейдом.

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Ваша ссылка была автоматически строена.   Отображать как обычную ссылку

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...