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

Forum: wrong exception call to undefined function

    XMLWordPrintable

Details

    • Bug
    • Status: Waiting for peer review
    • Minor
    • Resolution: Unresolved
    • 3.10.6
    • None
    • Forum, Libraries

    Description

      There was an issue in hq.moodle.com when displaying the All hands forum (see ICT-1238). In short, a user record was removed and the error message was (see stack trace screenshot attached):

      "Exception - Call to undefined function is_mod_forum\local\entities\author()"

      The error in lib/classes/external/exporter.php:91 is caused by invoking a method that does not exist; $scalarcheck() should only be invoked with the defined $scalartypes, as in lib/classes/external/exporter.php:102.

      When the exporter is missing data, it should throw a coding exception, but first, the previous one is thrown and the incorrect data error exception is hidden. This patch is just to fix this case and throw the proper exception.

      Attachments

        Activity

          People

            vmdef Víctor Déniz Falcón
            vmdef Víctor Déniz Falcón
            Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

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