Jump to content
  • Status: Duplicate

One of my members mentioned not being able to load notifications. When clicking the notifications, it just loads and loads (no notifications actually populate). They tried on different browsers. He is the only member experiencing this. Any way to fix this?

IpiWVze.png

I can confirm this is happening to them when I ghost their account. Clicking view all notifications shows the below error.

When clicking :

 

Error: Call to undefined method IPS\core\Messenger\Message::reactionType() (0)

#0 /var/www/html/debug-n310699-5000052/system/Notification/Inline.php(251): IPS\core\extensions\core\Notifications\MyStuff->parse_new_likes(Object(IPS\Notification\Inline), true)

#1 /var/www/html/debug-n310699-5000052/system/Notification/Table.php(121): IPS\Notification\Inline->getData()

#2 /var/www/html/debug-n310699-5000052/applications/core/modules/front/system/notifications.php(83): IPS\Notification\Table->getRows()

#3 /var/www/html/debug-n310699-5000052/system/Dispatcher/Controller.php(139): IPS\core\modules\front\system\notifications->manage()

#4 /var/www/html/debug-n310699-5000052/system/Dispatcher/Dispatcher.php(169): IPS\Dispatcher\Controller->execute()

#5 /var/www/html/debug-n310699-5000052/index.php(16): IPS\Dispatcher->run()

#6 {main}

Thank you.

User Feedback

Recommended Comments

teraßyte

Clients

Did you install a modification to add reactions in PMs at some point? It's coming from that. The messenger by default doesn't have reactions enabled.

Jordan Miller

Clients
 

Did you install a modification to add reactions in PMs at some point? It's coming from that. The messenger by default doesn't have reactions enabled.

Ahh, yes I did a long time ago. I'm surprised it's affecting v5 though since it didn't transport over. And why is it affecting just that one user I wonder.

Daniel F

Invision Community Team

Because probably only he such a notification:)

That said, we've run into another ticket yesterday where such an error appeared ( reactions for reported content comments and reactions for PMs ) so I've spent some time improving our code base to prevent that such errors break "everything".

EliasM

Clients

Run the following queries in your hosting control panel via PHPMyAdmin:

delete from 'core_reputation_index' where rep_class='IPS\core\Messenger\Message';
delete from 'core_notifications' where item_class='IPS\core\Messenger\Message';

Daniel F

Invision Community Team
 

Run the following queries in your hosting control panel via PHPMyAdmin:

delete from 'core_reputation_index' where rep_class='IPS\core\Messenger\Message';
delete from 'core_notifications' where item_class='IPS\core\Messenger\Message';

 

There's more than that.
Under some circumstances the data can also be stored in the core_achievements_log DB table resulting in broken ACP point history pages and achievement rebuilds

Error: Call to undefined method IPS\core\Messenger\Message::reacted() (0)
#0 /var/www/vhosts/xxx/applications/core/extensions/core/MemberACPProfileBlocks/Points.php(95): IPS\core\extensions\core\AchievementAction\Reaction->logRow()
#1 /var/www/vhosts/xxx/system/Helpers/Table/Db.php(473): IPS\core\extensions\core\MemberACPProfileBlocks\Points->IPS\core\extensions\core\MemberACPProfileBlocks\{closure}()
#2 /var/www/vhosts/xxx/system/Helpers/Table/Table.php(531): IPS\Helpers\Table\Db->getRows()
#3 /var/www/vhosts/xxx/static/templates/core_admin_members.php(2522): IPS\Helpers\Table\Table->__toString()
#4 /var/www/vhosts/xxx/system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_admin_members->pointsLog()
#5 /var/www/vhosts/xxx/applications/core/extensions/core/MemberACPProfileBlocks/Points.php(134): IPS\Theme\SandboxedTemplate->__call()
#6 /var/www/vhosts/xxx/applications/core/modules/admin/members/members.php(1406): IPS\core\extensions\core\MemberACPProfileBlocks\Points->edit()
#7 /var/www/vhosts/xxx/system/Dispatcher/Controller.php(128): IPS\core\modules\admin\members\members->editBlock()
#8 /var/www/vhosts/xxx/system/Dispatcher/Dispatcher.php(169): IPS\Dispatcher\Controller->execute()
#9 /var/www/vhosts/xxx/admin/index.php(15): IPS\Dispatcher->run()
#10 {main}

Jordan Miller

Clients

Thanks for the solutions, but my community is hosted in the cloud.