Jump to content

Featured Replies

Posted

Whenever I try to rebuild achievements, I get the follow error message.

 

Error: Cannot use object of type IPS\forums\Topic\Post as array (0)


#0 /home2/otfmhrmy/public_html/forums/system/Member/Member.php(6279): IPS\forums\extensions\core\AchievementAction\AnswerMarkedBest->identifier(Object(IPS\Member), Object(IPS\forums\Topic\Post))


#1 /home2/otfmhrmy/public_html/forums/applications/forums/extensions/core/AchievementAction/AnswerMarkedBest.php(306): IPS\Member->achievementAction('forums', 'AnswerMarkedBes...', Object(IPS\forums\Topic\Post), Object(IPS\DateTime))

#2 /home2/otfmhrmy/public_html/forums/applications/core/extensions/core/Queue/RebuildAchievements.php(157): IPS\forums\extensions\core\AchievementAction\AnswerMarkedBest::rebuildRow(Array, Array)

#3 /home2/otfmhrmy/public_html/forums/system/Task/Task.php(111): IPS\core\extensions\core\Queue\RebuildAchievements->run(Array, 0)

#4 /home2/otfmhrmy/public_html/forums/applications/core/modules/admin/system/background.php(103): IPS\Task::runQueue()

#5 /home2/otfmhrmy/public_html/forums/system/Helpers/MultipleRedirect/MultipleRedirect.php(104): IPS\core\modules\admin\system\background->IPS\core\modules\admin\system\{closure}(Array)

#6 /home2/otfmhrmy/public_html/forums/applications/core/modules/admin/system/background.php(82): IPS\Helpers\MultipleRedirect->__construct(Object(IPS\Http\Url\Internal), Object(Closure), Object(Closure))

#7 /home2/otfmhrmy/public_html/forums/system/Dispatcher/Controller.php(128): IPS\core\modules\admin\system\background->process()

#8 /home2/otfmhrmy/public_html/forums/applications/core/modules/admin/system/background.php(58): IPS\Dispatcher\Controller->execute()

#9 /home2/otfmhrmy/public_html/forums/system/Dispatcher/Dispatcher.php(169): IPS\core\modules\admin\system\background->execute()

#10 /home2/otfmhrmy/public_html/forums/admin/index.php(15): IPS\Dispatcher->run()

#11 {main}

  • Community Expert
 

Error: Cannot use object of type IPS\forums\Topic\Post as array (0)

This type of error occurs when an object is being treated as an array in the code. What was the latest change done to the forum before this happened? Can you try to disable all third party plugins/apps and see if the error will go away? That is to either rule them out as being the cause of the error, or identify them as being the culprit.

Edited by Miss_B

  • Author

Already tried disabling third party apps and it's a no go. I got this error after upgrading my site from v4 to v5. When I tried to rebuild the error occured.

  • Community Expert
 

Already tried disabling third party apps and it's a no go. I got this error after upgrading my site from v4 to v5. When I tried to rebuild the error occured.

Is the php version upgraded as well to meet the Ipb 5 requirements? If that's the case and seeing that it happens on a vanilla forum with the third party stuff disabled, I think that it might be a bug then.

Edited by Miss_B

  • Author

Yup, running Php 8.3.16.

  • Community Expert

Ive created a ticket on this one for you. Someone will be in contact as soon as possible

Recently Browsing 0

  • No registered users viewing this page.