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

Coding error detected, it must be fixed by a programmer: PHP catchable fatal error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.1
    • Fix Version/s: None
    • Component/s: Chat, Events API
    • Labels:
      None
    • Affected Branches:
      MOODLE_26_STABLE

      Description

      When logging out of Moodle, all users are seeing "Coding error detected, it must be fixed by a programmer: PHP catchable fatal error". It still shows them as logged in and to click Continue. After clicking Continue, it logs them out. When I click the link to get more information about this error, I'm taken to the page that states:

      Coding errors (or coding_exceptions) are problems that are probably caused by incorrect code. For example a plugin that does not communicate correctly with Moodle core.
      These errors are normally not caused by incorrect user input or temporary problems like the connection to the database server being down."

      Below is the detailed debug message. I don't know what it's looking for in order to fix it. No chat session was even used, but it's show in the Debug report.

      [Fri Mar 07 08:41:01.407110 2014] [:error] [pid 9400] [client 10.10.110.2:58510]
      Default exception handler: Coding error detected, it must be fixed by a programmer: PHP catchable fatal error
      Debug: Argument 1 passed to chat_user_logout() must be an instance of core\\event\\user_loggedout, instance of stdClass given
      Error code: codingerror
      * line 393 of /lib/setuplib.php: coding_exception thrown
      * line 1323 of /mod/chat/lib.php: call to default_error_handler()
      * line ? of unknownfile: call to chat_user_logout()
      * line 299 of /lib/eventslib.php: call to call_user_func()
      * line 518 of /lib/eventslib.php: call to events_dispatch()
      * line 509 of /lib/classes/event/base.php: call to events_trigger_legacy()
      * line 3187 of /lib/moodlelib.php: call to core\\event\\base->trigger()
      * line 62 of /login/logout.php: call to require_logout()
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              swarhurst S Warhurst
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: