Jump to content
  • [Beta 11] Notification drop down is not loading.


    Notification drop down is not loading. v4 active website upgraded directly to beta 11.

    Screenshot2025-01-16at1_08_46am.thumb.png.4b37889edc32c3906f8851a0e560f945.png

     

     

    Error: Call to undefined method IPS\core\Messenger\Message::reactionType() (0)
    #0 /home/Beats23/beta.My-Site.com/system/Notification/Inline.php(251): IPS\core\extensions\core\Notifications\MyStuff->parse_new_likes(Object(IPS\Notification\Inline), true)
    #1 /home/Beats23/beta.My-Site.com/system/Notification/Table.php(121): IPS\Notification\Inline->getData()
    #2 /home/Beats23/beta.My-Site.com/applications/core/modules/front/system/notifications.php(83): IPS\Notification\Table->getRows()
    #3 /home/Beats23/beta.My-Site.com/system/Dispatcher/Controller.php(139): IPS\core\modules\front\system\notifications->manage()
    #4 /home/Beats23/beta.My-Site.com/system/Dispatcher/Dispatcher.php(169): IPS\Dispatcher\Controller->execute()
    #5 /home/Beats23/beta.My-Site.com/index.php(16): IPS\Dispatcher->run()
    #6 {main}
    
    Backtrace
    #0 /home/Beats23/beta.My-Site.com/init.php(827): IPS\Log::log('Error: Call to ...', 'uncaught_except...')
    #1 [internal function]: IPS\IPS::exceptionHandler(Object(Error))
    #2 {main}

     


    User Feedback

    Recommended Comments

    EliasM

    Posted

    This is due to one of the upgrade problems, as this problem exists in all beta versions,

    Temporary repair:

    applications/core/extensions/core/Notifications/MyStuff.php

     

    Just do changed from if (!$item)

    to if ( $item )

     

    Screenshot_468.png.7decf5a155896e5880ebcffa6beef9ca.png

    Marc

    Posted

    Im not able to replicate this. Have you been doing anything specific with the reactions? Changing them, deleting them, specific settings etc?

    Daniel F

    Posted

    1 hour ago, EliasM said:

    This is due to one of the upgrade problems, as this problem exists in all beta versions,

    Temporary repair:

    applications/core/extensions/core/Notifications/MyStuff.php

     

    Just do changed from if (!$item)

    to if ( $item )

     

    Screenshot_468.png.7decf5a155896e5880ebcffa6beef9ca.png

    That’s def. the wrong fix. 

    it looks like it’s caused by 3rd party code which added reactions to private messages.

    Can you confirm that you had such application/plugin installed with 4.x? 

    beats23

    Posted

    27 minutes ago, Marc said:

    Im not able to replicate this. Have you been doing anything specific with the reactions? Changing them, deleting them, specific settings etc?

    Hi,  I've never touched the notification code nor settings.

     

    18 minutes ago, Daniel F said:

    That’s def. the wrong fix. 

    it looks like it’s caused by 3rd party code which added reactions to private messages.

    Can you confirm that you had such application/plugin installed with 4.0? 

    Hi, yes I had that plugin installed in version v4. Is it recommend to uninstall all plugins before updating to v5?

     

    I also see these errors in the php 8.2 error logs. Are these error the reason I'm getting template errors?

    Stack trace:
    #0 /home/Beats23/beta.My-Site.com/system/Email/Email.php(1030): IPS\Theme\email_plaintext_core_activity_stream_subscription(Object(IPS\core\Stream), Array, Object(IPS\Member), Array, true, Object(IPS\Email\Outgoing\Smtp))
    #1 /home/Beats23/beta.My-Site.com/system/Email/Email.php(434): IPS\Email::template('core', 'activity_stream...', 'plaintext', Array)
    #2 /home/Beats23/beta.My-Site.com/system/Email/Email.php(744): IPS\Email->compileContent('plaintext', Object(IPS\Member))
    #3 /home/Beats23/beta.My-Site.com/system/Email/Email.php(656): IPS\Email->_compileMessage(Object(IPS\Member), '--==_mimepart_1...', '\r\n', 998)
    #4 /home/Beats23/beta.My-Site.com/system/Email/Outgoing/Smtp.php(216): IPS\Email->compileFullEmail(Object(IPS\Member), Array, Array, 'no-reply@camera...', NULL, Array)
    #5 /home/Beats23/beta.My-Site.com/system/Email/Email.php(808): IPS\Email\Outgoing\Smtp->_send(Object(IPS\Member), Array, Array, 'no-reply@camera...', NULL, Array)
    #6 /home/Beats23/beta.My-Site.com/applications/core/sources/Stream/Subscription.php(82): IPS\Email->send(Object(IPS\Member))
    #7 /home/Beats23/beta.My-Site.com/applications/core/sources/Stream/Subscription.php(128): IPS\core\Stream\Subscription->send(Array, Object(IPS\core\Stream), Object(IPS\Member), Array, true)
    #8 /home/Beats23/beta.My-Site.com/applications/core/tasks/weeklyStreamSubscriptions.php(57): IPS\core\Stream\Subscription::sendBatch('weekly')
    #9 /home/Beats23/beta.My-Site.com/system/Task/Task.php(444): IPS\core\tasks\weeklyStreamSubscriptions->IPS\core\tasks\{closure}()
    #10 /home/Beats23/beta.My-Site.com/applications/core/tasks/weeklyStreamSubscriptions.php(55): IPS\Task->runUntilTimeout(Object(Closure))
    #11 /home/Beats23/beta.My-Site.com/system/Task/Task.php(343): IPS\core\tasks\weeklyStreamSubscriptions->execute()
    #12 /home/Beats23/beta.My-Site.com/system/Task/Task.php(306): IPS\Task->run()
    #13 /home/Beats23/beta.My-Site.com/system/Dispatcher/Standard.php(355): IPS\Task->runAndLog()
    #14 [internal function]: IPS\Dispatcher\Standard->__destruct()
    #15 {main}
      thrown in /home/Beats23/beta.My-Site.com/system/Email/Email.php(1027) : eval()'d code on line 310
    [16-Jan-2025 01:33:52 UTC] PHP Fatal error:  Uncaught Error: Call to undefined method IPS\forums\Topic::searchResultSummaryLanguage() in /home/Beats23/beta.My-Site.com/system/Email/Email.php(1027) : eval()'d code:310
    Stack trace:
    #0 /home/Beats23/beta.My-Site.com/system/Email/Email.php(1030): IPS\Theme\email_plaintext_core_activity_stream_subscription(Object(IPS\core\Stream), Array, Object(IPS\Member), Array, true, Object(IPS\Email\Outgoing\Smtp))
    #1 /home/Beats23/beta.My-Site.com/system/Email/Email.php(434): IPS\Email::template('core', 'activity_stream...', 'plaintext', Array)
    #2 /home/Beats23/beta.My-Site.com/system/Email/Email.php(744): IPS\Email->compileContent('plaintext', Object(IPS\Member))
    #3 /home/Beats23/beta.My-Site.com/system/Email/Email.php(656): IPS\Email->_compileMessage(Object(IPS\Member), '--==_mimepart_9...', '\r\n', 998)
    #4 /home/Beats23/beta.My-Site.com/system/Email/Outgoing/Smtp.php(216): IPS\Email->compileFullEmail(Object(IPS\Member), Array, Array, 'no-reply@camera...', NULL, Array)
    #5 /home/Beats23/beta.My-Site.com/system/Email/Email.php(808): IPS\Email\Outgoing\Smtp->_send(Object(IPS\Member), Array, Array, 'no-reply@camera...', NULL, Array)
    #6 /home/Beats23/beta.My-Site.com/applications/core/sources/Stream/Subscription.php(82): IPS\Email->send(Object(IPS\Member))
    #7 /home/Beats23/beta.My-Site.com/applications/core/sources/Stream/Subscription.php(128): IPS\core\Stream\Subscription->send(Array, Object(IPS\core\Stream), Object(IPS\Member), Array, true)
    #8 /home/Beats23/beta.My-Site.com/applications/core/tasks/weeklyStreamSubscriptions.php(57): IPS\core\Stream\Subscription::sendBatch('weekly')
    #9 /home/Beats23/beta.My-Site.com/system/Task/Task.php(444): IPS\core\tasks\weeklyStreamSubscriptions->IPS\core\tasks\{closure}()
    #10 /home/Beats23/beta.My-Site.com/applications/core/tasks/weeklyStreamSubscriptions.php(55): IPS\Task->runUntilTimeout(Object(Closure))
    #11 /home/Beats23/beta.My-Site.com/system/Task/Task.php(343): IPS\core\tasks\weeklyStreamSubscriptions->execute()
    #12 /home/Beats23/beta.My-Site.com/system/Task/Task.php(306): IPS\Task->run()
    #13 /home/Beats23/beta.My-Site.com/system/Dispatcher/Standard.php(355): IPS\Task->runAndLog()
    #14 [internal function]: IPS\Dispatcher\Standard->__destruct()
    #15 {main}
      thrown in /home/Beats23/beta.My-Site.com/system/Email/Email.php(1027) : eval()'d code on line 310
    [16-Jan-2025 01:54:48 UTC] PHP Fatal error:  Uncaught Error: Call to undefined method IPS\forums\Topic::searchResultSummaryLanguage() in /home/Beats23/beta.My-Site.com/system/Email/Email.php(1027) : eval()'d code:310
    Stack trace:
    #0 /home/Beats23/beta.My-Site.com/system/Email/Email.php(1030): IPS\Theme\email_plaintext_core_activity_stream_subscription(Object(IPS\core\Stream), Array, Object(IPS\Member), Array, true, Object(IPS\Email\Outgoing\Smtp))
    #1 /home/Beats23/beta.My-Site.com/system/Email/Email.php(434): IPS\Email::template('core', 'activity_stream...', 'plaintext', Array)
    #2 /home/Beats23/beta.My-Site.com/system/Email/Email.php(744): IPS\Email->compileContent('plaintext', Object(IPS\Member))
    #3 /home/Beats23/beta.My-Site.com/system/Email/Email.php(656): IPS\Email->_compileMessage(Object(IPS\Member), '--==_mimepart_c...', '\r\n', 998)
    #4 /home/Beats23/beta.My-Site.com/system/Email/Outgoing/Smtp.php(216): IPS\Email->compileFullEmail(Object(IPS\Member), Array, Array, 'no-reply@camera...', NULL, Array)
    #5 /home/Beats23/beta.My-Site.com/system/Email/Email.php(808): IPS\Email\Outgoing\Smtp->_send(Object(IPS\Member), Array, Array, 'no-reply@camera...', NULL, Array)
    #6 /home/Beats23/beta.My-Site.com/applications/core/sources/Stream/Subscription.php(82): IPS\Email->send(Object(IPS\Member))
    #7 /home/Beats23/beta.My-Site.com/applications/core/sources/Stream/Subscription.php(128): IPS\core\Stream\Subscription->send(Array, Object(IPS\core\Stream), Object(IPS\Member), Array, true)
    #8 /home/Beats23/beta.My-Site.com/applications/core/tasks/weeklyStreamSubscriptions.php(57): IPS\core\Stream\Subscription::sendBatch('weekly')
    #9 /home/Beats23/beta.My-Site.com/system/Task/Task.php(444): IPS\core\tasks\weeklyStreamSubscriptions->IPS\core\tasks\{closure}()
    #10 /home/Beats23/beta.My-Site.com/applications/core/tasks/weeklyStreamSubscriptions.php(55): IPS\Task->runUntilTimeout(Object(Closure))
    #11 /home/Beats23/beta.My-Site.com/system/Task/Task.php(343): IPS\core\tasks\weeklyStreamSubscriptions->execute()
    #12 /home/Beats23/beta.My-Site.com/system/Task/Task.php(306): IPS\Task->run()
    #13 /home/Beats23/beta.My-Site.com/system/Dispatcher/Standard.php(355): IPS\Task->runAndLog()
    #14 [internal function]: IPS\Dispatcher\Standard->__destruct()
    #15 {main}
      thrown in /home/Beats23/beta.My-Site.com/system/Email/Email.php(1027) : eval()'d code on line 310
    [16-Jan-2025 02:05:54 UTC] PHP Deprecated:  Optional parameter $type declared before required parameter $lessonSectionId is implicitly treated as a required parameter in /home/Beats23/beta.My-Site.com/applications/valalms/sources/Course/Course.php on line 2031
    [16-Jan-2025 02:05:54 UTC] PHP Deprecated:  Optional parameter $status declared before required parameter $lessonSectionId is implicitly treated as a required parameter in /home/Beats23/beta.My-Site.com/applications/valalms/sources/Course/Course.php on line 2095
    [16-Jan-2025 02:05:54 UTC] PHP Deprecated:  Optional parameter $updateProgress declared before required parameter $lessonSectionId is implicitly treated as a required parameter in /home/Beats23/beta.My-Site.com/applications/valalms/sources/Course/Course.php on line 2095
    [16-Jan-2025 02:05:54 UTC] PHP Deprecated:  Optional parameter $type declared before required parameter $lessonSectionId is implicitly treated as a required parameter in /home/Beats23/beta.My-Site.com/applications/valalms/sources/Course/Course.php on line 2095
    [16-Jan-2025 02:05:54 UTC] PHP Fatal error:  Type of IPS\valalms\_Course::$commentClass must be ?string (as in class IPS\Content\Item) in /home/Beats23/beta.My-Site.com/applications/valalms/sources/Course/Course.php on line 25
    [16-Jan-2025 02:06:05 UTC] PHP Fatal error:  Type of IPS\valalms\_Course::$commentClass must be ?string (as in class IPS\Content\Item) in /home/Beats23/beta.My-Site.com/applications/valalms/sources/Course/Course.php on line 25
    [16-Jan-2025 02:06:30 UTC] PHP Fatal error:  Type of IPS\valalms\_Course::$commentClass must be ?string (as in class IPS\Content\Item) in /home/Beats23/beta.My-Site.com/applications/valalms/sources/Course/Course.php on line 25
    [16-Jan-2025 03:04:51 UTC] PHP Notice:  iconv(): Detected an illegal character in input string in /home/Beats23/public_html/Matomo/plugins/GeoIp2/LocationProvider/GeoIp2/Php.php on line 319

     

    Daniel F

    Posted

    11 minutes ago, beats23 said:

    Hi, yes I had that plugin installed in version v4. Is it recommend to uninstall all plugins before updating to v5?

    Plugins are uninstalled automatically while the upgrade. I would suggest to contact the author of the plugin to see what's going on and if it's lacking the proper uninstall code to remove the data.

    Adriano Faria

    Posted

    5 minutes ago, Daniel F said:

    Plugins are uninstalled automatically while the upgrade. I would suggest to contact the author of the plugin to see what's going on and if it's lacking the proper uninstall code to remove the data.

    The plugin has the uninstall routine:

    try
    {
    	\IPS\Db::i()->delete( 'core_reputation_index', array( 'rep_class=?', 'IPS\core\Messenger\Message' ) );
    	\IPS\Db::i()->delete( 'core_notifications', array( 'item_class=?', 'IPS\core\Messenger\Message' ) );
    }
    catch( \IPS\Db\Exception $e )
    {
    	if( $e->getCode() <> 1091 )
    	{
    		throw $e;
    	}
    }

    IPS5 doss not uninstall the plugins; it drops the core_plugins table and left the plugin data/settings untouched so the dev can upgrade it to an application. So that’s not a problem of the plugin. If it was properly uninstalled, that wouldn’t be an issue.

    @beats23, post in this plugin’s support topic in my board and I’ll let you know the queries to delete the records left behind by the upgrade.


×
×
  • Create New...