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.

        1. (1) 4 Passed -- (Main)MDL-81413.png
          37 kB
          Kim Jared Lucas
        2. (1) 5 Passed -- (Main)MDL-81413.png
          45 kB
          Kim Jared Lucas
        3. (1) 6 Passed -- (Main)MDL-81413.png
          53 kB
          Kim Jared Lucas
        4. (1) 7 Passed -- (Main)MDL-81413.png
          59 kB
          Kim Jared Lucas
        5. (1) 8 Passed -- (Main)MDL-81413.png
          57 kB
          Kim Jared Lucas
        6. (1) 9 Passed -- (Main)MDL-81413.png
          122 kB
          Kim Jared Lucas
        7. (2) 4 Passed -- (Main)MDL-81413.png
          57 kB
          Kim Jared Lucas
        8. (3) 9 Passed -- (Main)MDL-81413.png
          102 kB
          Kim Jared Lucas
        9. (4) 4 Passed -- (Main)MDL-81413.png
          54 kB
          Kim Jared Lucas
        10. MDLQA-18460 error.png
          47 kB
          Simey Lameze

            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.