Aaron M Posted February 14, 2023 Posted February 14, 2023 Got after upgrading to latest version. Full trace: TypeError: array_reverse(): Argument #1 ($array) must be of type array, null given in applications/nexus/sources/Gateway/PayPal/BillingAgreement.php:126 Stack trace: #0 applications/nexus/sources/Gateway/PayPal/BillingAgreement.php(126): array_reverse() #1 applications/nexus/sources/Customer/BillingAgreement.php(307): IPS\nexus\Gateway\PayPal\_BillingAgreement->latestUnclaimedTransaction() #2 applications/nexus/tasks/billingAgreements.php(57): IPS\nexus\Customer\_BillingAgreement->checkForLatestTransaction() #3 system/Task/Task.php(274): IPS\nexus\tasks\_billingAgreements->execute() #4 system/Task/Task.php(237): IPS\_Task->run() #5 applications/core/interface/task/task.php(72): IPS\_Task->runAndLog() #6 {main} Backtrace: #0 applications/nexus/tasks/billingAgreements.php(74): IPS\_Log::log() #1 system/Task/Task.php(274): IPS\nexus\tasks\_billingAgreements->execute() #2 system/Task/Task.php(237): IPS\_Task->run() #3 applications/core/interface/task/task.php(72): IPS\_Task->runAndLog() #4 {main}
Adriano Faria Posted February 14, 2023 Posted February 14, 2023 You probably need to upgrade your cron tasks to PHP 8.1 if you’re coming from PHP 8.
Aaron M Posted February 14, 2023 Author Posted February 14, 2023 1 minute ago, Adriano Faria said: You probably need to upgrade your cron tasks to PHP 8.1 if you’re coming from PHP 8. I'm running PHP 8, it's a fresh setup so cron should be using php8.0-fpm already
Marc Posted February 15, 2023 Posted February 15, 2023 9 hours ago, Aaron M said: I'm running PHP 8, it's a fresh setup so cron should be using php8.0-fpm already Before we go any further, please check this to ensure it is indeed using PHP 8. It looks like it may not be from what is showing above
Talisman12 Posted February 15, 2023 Posted February 15, 2023 1 hour ago, Marc Stridgen said: Before we go any further, please check this to ensure it is indeed using PHP 8. It looks like it may not be from what is showing above The upgrade was from a 7.4 machine but I checked the crontab, we're using the binary in /usr/bin/php and /usr/bin/php -v returns PHP 8.0.27
Marc Posted February 15, 2023 Posted February 15, 2023 I have created a ticket on this so we can take a closer look Talisman12 1
Talisman12 Posted February 15, 2023 Posted February 15, 2023 Thank you. If It helps, I'm also seeing a few more errors in the systems log such as SELECT COUNT(*) FROM `core_search_index` WHERE index_class='IPS\core\Statuses\Status' AND index_container_id=303885 IPS\Db\Exception: Table 'adatabasenamehere.core_search_index' doesn't exist (1146) when anybody tries to use the quicksearch.
Marc Posted February 15, 2023 Posted February 15, 2023 Please feel free to add any further information to the topic
Talisman12 Posted February 15, 2023 Posted February 15, 2023 Sure - current system log "top hits": Message Count Error: Property access is not allowed yet (0) #0 /mnt/efs/forum/applications/core/modules/front/discover/streams.php(410): IPS\Content\Search\Mysql\_Query->search() #1 /mnt/efs/forum/system/Dispatcher/Controller.php(118): IPS\core\modules\front\discover\_streams->manage() #2 /mnt/efs/forum/applications/core/modules/front/discover/streams.php(65): IPS\Dispatcher\_Controller->execute() #3 /mnt/efs/forum/system/Dispatcher/Dispatcher.php(153): IPS\core\modules\front\discover\_streams->execute() #4 /mnt/efs/forum/index.php(13): IPS\_Dispatcher->run() #5 {main} 130 TypeError: array_reverse(): Argument #1 ($array) must be of type array, null given in /mnt/efs/forum/applications/nexus/sources/Gateway/PayPal/BillingAgreement.php:126 Stack trace: #0 /mnt/efs/forum/applications/nexus/sources/Gateway/PayPal/BillingAgreement.php(126): array_reverse() #1 /mnt/efs/forum/applications/nexus/sources/Customer/BillingAgreement.php(307): IPS\nexus\Gateway\PayPal\_BillingAgreement->latestUnclaimedTransaction() #2 /mnt/efs/forum/applications/nexus/tasks/billingAgreements.php(57): IPS\nexus\Customer\_BillingAgreement->checkForLatestTransaction() #3 /mnt/efs/forum/system/Task/Task.php(274): IPS\nexus\tasks\_billingAgreements->execute() #4 /mnt/efs/forum/system/Task/Task.php(237): IPS\_Task->run() #5 /mnt/efs/forum/applications/core/interface/task/task.php(72): IPS\_Task->runAndLog() #6 {main} 76 Error: Attempt to assign property "id" on null (0) #0 /mnt/efs/forum/applications/cms/sources/Pages/Page.php(1260): IPS\Theme\content_pages_61() #1 /mnt/efs/forum/applications/cms/sources/Pages/Page.php(2286): IPS\cms\Pages\_Page->getHtmlContent() #2 /mnt/efs/forum/applications/cms/modules/front/pages/page.php(116): IPS\cms\Pages\_Page->output() #3 /mnt/efs/forum/applications/cms/modules/front/pages/page.php(43): IPS\cms\modules\front\pages\_page->view() #4 /mnt/efs/forum/system/Dispatcher/Controller.php(118): IPS\cms\modules\front\pages\_page->manage() #5 /mnt/efs/forum/applications/cms/modules/front/pages/page.php(33): IPS\Dispatcher\_Controller->execute() #6 /mnt/efs/forum/system/Dispatcher/Dispatcher.php(153): IPS\cms\modules\front\pages\_page->execute() #7 /mnt/efs/forum/index.php(13): IPS\_Dispatcher->run() #8 {main} 68 SELECT MIN(index_date_updated) FROM `core_search_index` IPS\Db\Exception: Table 'adatabasenamehere.core_search_index' doesn't exist (1146) #0 /mnt/efs/forum/system/Db/Select.php(388): IPS\_Db->preparedQuery() #1 /mnt/efs/forum/system/Db/Select.php(446): IPS\Db\_Select->runQuery() #2 /mnt/efs/forum/system/Db/Select.php(370): IPS\Db\_Select->rewind() #3 /mnt/efs/forum/system/Content/Search/Mysql/Index.php(638): IPS\Db\_Select->first() #4 /mnt/efs/forum/applications/core/modules/front/discover/popular.php(217): IPS\Content\Search\Mysql\_Index->firstIndexDate() #5 /mnt/efs/forum/applications/core/modules/front/discover/popular.php(70): IPS\core\modules\front\discover\_popular->leaderboard() #6 /mnt/efs/forum/system/Dispatcher/Dispatcher.php(153): IPS\core\modules\front\discover\_popular->execute() #7 /mnt/efs/forum/index.php(13): IPS\_Dispatcher->run() #8 {main} 16 SELECT COUNT(*) FROM `core_search_index` WHERE index_class='IPS\core\Statuses\Status' AND index_container_id=303885 IPS\Db\Exception: Table 'adatabasenamehere.core_search_index' doesn't exist (1146) #0 /mnt/efs/forum/system/Db/Select.php(388): IPS\_Db->preparedQuery() #1 /mnt/efs/forum/system/Db/Select.php(446): IPS\Db\_Select->runQuery() #2 /mnt/efs/forum/system/Db/Select.php(370): IPS\Db\_Select->rewind() #3 /mnt/efs/forum/system/Content/Search/Mysql/Query.php(298): IPS\Db\_Select->first() #4 /mnt/efs/forum/applications/core/modules/front/members/profile.php(253): IPS\Content\Search\Mysql\_Query->filterForProfile() #5 /mnt/efs/forum/init.php(935) : eval()'d code(48): IPS\core\modules\front\members\_profile->manage() #6 /mnt/efs/forum/system/Dispatcher/Controller.php(118): IPS\core\modules\front\members\steam_hook_steamDefault->manage() #7 /mnt/efs/forum/applications/core/modules/front/members/profile.php(81): IPS\Dispatcher\_Controller->execute() #8 /mnt/efs/forum/system/Dispatcher/Dispatcher.php(153): IPS\core\modules\front\members\_profile->execute() #9 /mnt/efs/forum/index.php(13): IPS\_Dispatcher->run() #10 {main} 14 SELECT COUNT(*) FROM `core_search_index` WHERE index_class='IPS\core\Statuses\Status' AND index_container_id=253513 IPS\Db\Exception: Table 'adatabasenamehere.core_search_index' doesn't exist (1146) #0 /mnt/efs/forum/system/Db/Select.php(388): IPS\_Db->preparedQuery() #1 /mnt/efs/forum/system/Db/Select.php(446): IPS\Db\_Select->runQuery() #2 /mnt/efs/forum/system/Db/Select.php(370): IPS\Db\_Select->rewind() #3 /mnt/efs/forum/system/Content/Search/Mysql/Query.php(298): IPS\Db\_Select->first() #4 /mnt/efs/forum/applications/core/modules/front/members/profile.php(253): IPS\Content\Search\Mysql\_Query->filterForProfile() #5 /mnt/efs/forum/init.php(935) : eval()'d code(48): IPS\core\modules\front\members\_profile->manage() #6 /mnt/efs/forum/system/Dispatcher/Controller.php(118): IPS\core\modules\front\members\steam_hook_steamDefault->manage() #7 /mnt/efs/forum/applications/core/modules/front/members/profile.php(81): IPS\Dispatcher\_Controller->execute() #8 /mnt/efs/forum/system/Dispatcher/Dispatcher.php(153): IPS\core\modules\front\members\_profile->execute() #9 /mnt/efs/forum/index.php(13): IPS\_Dispatcher->run() #10 {main} Naturally our biggest concern is the billing agreements, but it seems like when we upgraded from 4.6.12.1 some things like the core_search_index weren't autogenerated by IPB during the upgrade? Also in case it's needed - is the IPS VPN still 144.202.11.32?
Marc Posted February 15, 2023 Posted February 15, 2023 Sorry, I should have said the ticket, rather than topic
Recommended Posts