Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-81413

Exception being thrown when sending messages on chat module

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.4
    • 4.4
    • Chat

      Discovered while testing MDLQA-18460.

      After entering the chat and sending a message, the following exception is being displayed:

      Stacktrace

      Exception - array_merge(): Argument #1 must be of type array, stdClass given
       
      * line 1100 of /mod/chat/lib.php: TypeError thrown\n* 
      * line 1100 of /mod/chat/lib.php: call to array_merge()\n* 
      * line 128 of /mod/chat/chat_ajax.php: call to chat_format_message_theme()\n"
      

      This is possibly a regression from MDL-80072 which changed that line on mod/chat/lib.php.

            lameze Simey Lameze
            lameze Simey Lameze
            Andrew Lyons Andrew Lyons
            Huong Nguyen Huong Nguyen
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 24 minutes
                2h 24m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.