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

Occasional "PHP catchable fatal error" when using Browse list of users

    Details

    • Database:
      Microsoft SQL
    • Affected Branches:
      MOODLE_20_STABLE

      Description

      I've received some complains from some users on my production Moodle site (2.0.4+ (Build: 20110907)) saying that they are occasionally getting a "Coding error detected, it must be fixed by a programmer: PHP catchable fatal error" message when they use filters on the 'Browse list of users' page in Moodle:

      Debug info: Argument 1 passed to textlib::asort() must be an array, null given, called in C:\Moodle\lib\moodlelib.php on line 5980 and defined
      Stack trace: 
      line 359 of \lib\setuplib.php: coding_exception thrown
      line 475 of \lib\textlib.class.php: call to default_error_handler()
      line 5980 of \lib\moodlelib.php: call to textlib->asort()
      line 109 of \user\filters\lib.php: call to core_string_manager->get_list_of_countries()
      line 44 of \user\filters\lib.php: call to user_filtering->get_field()
      line 116 of \admin\user.php: call to user_filtering->user_filtering()

      The interesting thing is that it's completely random - it only happens occasionally. Most of the time users can use the 'Browse list of users' function without problems. I'm unable to easily reproduce the error easily - but it does appear that it gets triggered when users are using the advanced filters on that 'Browse list of users' page.

      And it seems to sort itself out! After a few minutes users are again able to use that 'Browse list of users' function again.

      My production environment is made up of:
      Windows Server 2003 Standard Edition SP2
      Intel Xeon CPU 5160 @ 3.00GHz 2.00GB RAM
      Internet Information Services 6
      Microsoft SQL Server 2005 - 9.00.4035.00 (X64) Enterprise Edition (64-bit) on a SQL cluster running Windows NT 5.2 (Build 3790: Service Pack 2)
      PHP 5.3.3 NTS VC9
      PHP date.timezone = "Africa/Johannesburg"
      Microsoft SQL Server Driver for PHP 2.0.1802.200
      Microsoft FastCGI Handler x86 6.1.36.1
      Microsoft Windows Cache Extension for PHP 1.1.630.0
      No NON-CORE Moodle modules installed

      Moodle config:
      $CFG->dbtype = 'sqlsrv';
      $CFG->dblibrary = 'native';

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: