Jump to content
  • [B9.1] Error >Error appears in messages


    Error: Call to undefined method IPS\core\Messenger\Message::canShare() in /domian/system/Content/Comment.php:1881
    Stack trace:
    #0 /domian/static/templates/core_front_global.php(2394): IPS\Content\Comment->menu()
    #1 /domian/system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->comment(Object(IPS\core\Messenger\Conversation), Object(IPS\core\Messenger\Message), 'messenger_comme...', 'core', 'messaging', 'core_Messenger_...')
    #2 /domian/static/templates/core_front_global.php(3091): IPS\Theme\SandboxedTemplate->__call('comment', Array)
    #3 /domian/system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_global->commentContainer(Object(IPS\core\Messenger\Conversation), Object(IPS\core\Messenger\Message))
    #4 /domian/system/Content/Comment.php(933): IPS\Theme\SandboxedTemplate->__call('commentContaine...', Array)
    #5 /domian/static/templates/core_front_messaging.php(393): IPS\Content\Comment->html()
    #6 /domian/system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_messaging->conversation(Object(IPS\core\Messenger\Conversation), Array, NULL)
    #7 /domian/static/templates/core_front_messaging.php(2024): IPS\Theme\SandboxedTemplate->__call('conversation', Array)
    #8 /domian/system/Theme/SandboxedTemplate.php(68): IPS\Theme\class_core_front_messaging->template('myconvo', Array, Array, Array, '\n\n', Object(IPS\core\Messenger\Conversation), Object(IPS\Http\Url\Friendly), 'messenger_convo', 'mt_last_post_ti...', '', NULL)
    #9 /domian/applications/core/modules/front/messaging/messenger.php(509): IPS\Theme\SandboxedTemplate->__call('template', Array)
    #10 /domian/system/Dispatcher/Controller.php(139): IPS\core\modules\front\messaging\messenger->manage()
    #11 /domian/system/Content/Controller.php(124): IPS\Dispatcher\Controller->execute()
    #12 /domian/applications/core/modules/front/messaging/messenger.php(97): IPS\Content\Controller->execute()
    #13 /domian/system/Dispatcher/Dispatcher.php(169): IPS\core\modules\front\messaging\messenger->execute()
    #14 /domian/index.php(16): IPS\Dispatcher->run()
    #15 {main}

    The problem is solved when this character is removedScreenshot_470.thumb.png.2adb4c538d4e7d965780c7241a718aa1.png


    User Feedback

    Recommended Comments

    Mike G.

    Posted

    Thanks for sharing this fix, @EliasM!

    That did the trick for me. Any idea if making this change would affect anything with future updates or could cause issues elsewhere?

    All Astronauts

    Posted

    Any future updates will overwrite any changes you make. If you hit the support tool after you make changes it will, naturally, yell about changed files but just ignore that.

    As it is, this minor bug just affects share links and honestly, I'm not sure how much these get used by anyone anymore.

    EliasM

    Posted (edited)

    47 minutes ago, Mike G. said:

    That did the trick for me. Any idea if making this change would affect anything with future updates

    It will definitely be fixed in the next update

    40 minutes ago, All Astronauts said:

    As it is, this minor bug just affects share links and honestly

    This is supposed to be true, but unfortunately as it appears in the error log it affects messages as well

    Edited by EliasM
    EliasM

    Posted (edited)

    46 minutes ago, Mike G. said:

    or could cause issues elsewhere?

    It only affects this button in the comments and makes it not appearScreenshot_20241221_010351_com_android_chrome_ChromeTabbedActivity.thumb.jpg.f5afee7dedf3a5e4b7edbf2606704f55.jpg

    This is a temporary solution so we can use messages😅

    Edited by EliasM

×
×
  • Create New...