Jump to content

Featured Replies

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
https://ipbmafia.ru/topic/25242-upgrade-error/
Share on other sites

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).

Link to comment
https://ipbmafia.ru/topic/25242-upgrade-error/?&do=findComment&comment=189863
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
https://ipbmafia.ru/topic/25242-upgrade-error/?&do=findComment&comment=189865
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
https://ipbmafia.ru/topic/25242-upgrade-error/?&do=findComment&comment=189866
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
https://ipbmafia.ru/topic/25242-upgrade-error/?&do=findComment&comment=189867
Share on other sites

tested version Ips4.7.2

Link to comment
https://ipbmafia.ru/topic/25242-upgrade-error/?&do=findComment&comment=189868
Share on other sites
18 minutes ago, avangcom said:

tested version Ips4.7.2

where can I find this? I only found the 4.7.6

Link to comment
https://ipbmafia.ru/topic/25242-upgrade-error/?&do=findComment&comment=189869
Share on other sites
2 hours ago, avangcom said:

version Ips4.7.2

even in this version the error continues

Link to comment
https://ipbmafia.ru/topic/25242-upgrade-error/?&do=findComment&comment=189875
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
https://ipbmafia.ru/topic/25242-upgrade-error/?&do=findComment&comment=189897
Share on other sites

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

Link to comment
https://ipbmafia.ru/topic/25242-upgrade-error/?&do=findComment&comment=189898
Share on other sites

I'm on php 8.2 and I've tried deactivating all plugins and reinstalling them, but nothing works.

Link to comment
https://ipbmafia.ru/topic/25242-upgrade-error/?&do=findComment&comment=189910
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
https://ipbmafia.ru/topic/25242-upgrade-error/?&do=findComment&comment=189911
Share on other sites

tks, I fixed my problem

Link to comment
https://ipbmafia.ru/topic/25242-upgrade-error/?&do=findComment&comment=189922
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
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.