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

Clicking the message link from a profile page redirects to the messaging interface with errors.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 3.2
    • 3.2
    • Messages
    • MOODLE_32_STABLE
    • MOODLE_32_STABLE
    • MDL-56411-master
    • Hide
      1. Create a couple of users on your site
      2. Make sure dev debugging is on to see any warnings
      3. Log in as a user that has never sent or received any messages
      4. Navigate to the message ui (user menu > messages)
      5. Confirm: You don't get any errors / warnings
      6. Navigate to the profile of a user that you have not sent/received any messages to/from
      7. Click the "Message" button on that user's profile page
      8. Confirm: You are taken to the messaging page
      9. Confirm: A new message is started with the user and you can send a message to that user
      10. Confirm: You do not see any of the warnings mentioned in the description of this issue
      11. Send that user a message
      12. Log in as the user you just sent a message to
      13. Open the messages popover in the nav bar and click on the message you just received
      14. Confirm: You are taken to the messaging page
      15. Confirm: The message you clicked is loaded up
      16. Confirm: You did not get any errors / notices on the page
      Show
      Create a couple of users on your site Make sure dev debugging is on to see any warnings Log in as a user that has never sent or received any messages Navigate to the message ui (user menu > messages) Confirm: You don't get any errors / warnings Navigate to the profile of a user that you have not sent/received any messages to/from Click the "Message" button on that user's profile page Confirm: You are taken to the messaging page Confirm: A new message is started with the user and you can send a message to that user Confirm: You do not see any of the warnings mentioned in the description of this issue Send that user a message Log in as the user you just sent a message to Open the messages popover in the nav bar and click on the message you just received Confirm: You are taken to the messaging page Confirm: The message you clicked is loaded up Confirm: You did not get any errors / notices on the page

      If I go to a profile page for a user I have no existing messages with and click the message button I am taken to the messaging interface with the following errors:

      Warning: Creating default object from empty value in /home/adrian/moodles/integration_master_messaging/moodle/message/index.php on line 124
       
      Notice: Undefined property: stdClass::$userid in /home/adrian/moodles/integration_master_messaging/moodle/message/classes/output/messagearea/contact.php on line 112
       
      Notice: Undefined property: stdClass::$useridfrom in /home/adrian/moodles/integration_master_messaging/moodle/message/classes/output/messagearea/contact.php on line 113
      

            ryanwyllie Ryan Wyllie
            abgreeve Adrian Greeve
            Andrew Lyons Andrew Lyons
            David Monllaó David Monllaó
            Marina Glancy Marina Glancy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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