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

Teacher locked out of course and gets PHP 'Coding error detected...' and a ton of other PHP errors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.3.4
    • Assignment
    • None
    • MOODLE_23_STABLE

      Since upgrading to moodle 2.3.4+, I've had quite a few PHP errors. The most prominent is teachers getting locked out of their courses. Along with people not being able to upload or delete things in their courses. Also, doing a restore of a course is failing. (Sorry if this is too much for this post but I didn't know how to separate all this) This teacher was just posting information to her course when she received the error:

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

      Environment:
      Moodle 2.3.4+ (Build 20130125)
      PHP 5.3.13
      MSSQL 2008 R2
      FreeTDS

      Here's everything that I can find in the PHP error logs:

      PHP Notice: Undefined property: stdClass::$teamsubmission in C:\inetpub\wwwroot\mod\assign\submission\comments\lib.php on line 98
      PHP Notice: Undefined property: stdClass::$teamsubmission in C:\inetpub\wwwroot\mod\assign\submission\comments\lib.php on line 54

      PHP Fatal error: Maximum execution time of 300 seconds exceeded in C:\inetpub\wwwroot\lib\filestorage\stored_file.php on line 371

      Default exception handler: Error reading from database Debug: The data types ntext and nvarchar are incompatible in the equal to operator.
      SELECT repositoryid, id FROM mdl_files_reference
      WHERE referencehash = ? and reference = ?
      [array (
      0 => '790a78b7f31118a07d7ddcd331783517691d8462',
      1 => 'YTo2OntzOjk6ImNvbnRleHRpZCI7aToyOTA5NjtzOjk6ImNvbXBvbmVudCI7czo2OiJjb3Vyc2UiO3M6NjoiaXRlbWlkIjtpOjY4NjM7czo4OiJmaWxlYXJlYSI7czo3OiJzZWN0aW9uIjtzOjg6ImZpbGVwYXRoIjtzOjE6Ii8iO3M6ODoiZmlsZW5hbWUiO3M6MTA6ImxpYjEzNS5wbmciO30=',
      )]
      Error code: dmlreadexception

      • line 407 of \lib\dml\moodle_database.php: dml_read_exception thrown
      • line 256 of \lib\dml\mssql_native_moodle_database.php: call to moodle_database->query_end()
      • line 713 of \lib\dml\mssql_native_moodle_database.php: call to mssql_native_moodle_database->query_end()
      • line 1837 of \lib\filestorage\file_storage.php: call to mssql_native_moodle_database->get_recordset_sql()
      • line 835 of \lib\filelib.php: call to file_storage->update_references_to_storedfile()
      • line 222 of \lib\filelib.php: call to file_save_draft_area_files()
      • line 75 of \course\editsection.php: call to file_postupdate_standard_editor()

      Default exception handler: error/Ajax rest.php: Could not delete the resource Yi-Jie, Tang (1991). "The Origin and Characteristics of Daoism (Taoism)," in Confucianism, Buddhism, Daoism, Christianity and Chinese Culture (Cultural Heritage and Contemporary Life, Series III: Asia, Volume 3), Chapter VII. from section Debug:
      Error code: Ajax rest.php: Could not delete the resource Yi-Jie, Tang (1991). "The Origin and Characteristics of Daoism (Taoism)," in Confucianism, Buddhism, Daoism, Christianity and Chinese Culture (Cultural Heritage and Contemporary Life, Series III: Asia, Volume 3), Chapter VII. from section
      $a contents:

      • line 226 of \course\rest.php: moodle_exception thrown

      [31-Jan-2013 04:35:31 UTC] Default exception handler: Can not find data record in database table course_modules. Debug: SELECT id,course FROM

      {course_modules} WHERE id = ?
      [array (
      0 => '29128',
      )]
      Error code: invalidrecord
      * line 1335 of \lib\dml\moodle_database.php: dml_missing_record_exception thrown
      * line 1311 of \lib\dml\moodle_database.php: call to moodle_database->get_record_select()
      * line 6649 of \lib\accesslib.php: call to moodle_database->get_record()
      * line 1485 of \course\lib.php: call to context_module::instance()
      * line 720 of \course\format\renderer.php: call to print_section()
      * line 52 of \course\format\topics\format.php: call to format_section_renderer_base->print_multiple_section_page()
      * line 281 of \course\view.php: call to require()

      [31-Jan-2013 04:35:37 UTC] Default exception handler: Can not find data record in database table course_modules. Debug: SELECT id,course FROM {course_modules}

      WHERE id = ?
      [array (
      0 => '29128',
      )]
      Error code: invalidrecord

      • line 1335 of \lib\dml\moodle_database.php: dml_missing_record_exception thrown
      • line 1311 of \lib\dml\moodle_database.php: call to moodle_database->get_record_select()
      • line 6649 of \lib\accesslib.php: call to moodle_database->get_record()
      • line 1485 of \course\lib.php: call to context_module::instance()
      • line 720 of \course\format\renderer.php: call to print_section()
      • line 52 of \course\format\topics\format.php: call to format_section_renderer_base->print_multiple_section_page()
      • line 281 of \course\view.php: call to require()

      [31-Jan-2013 04:38:28 UTC]
      [31-Jan-2013 04:45:40 UTC] Default exception handler: A required parameter (id) was missing Debug:
      Error code: missingparam

      • line 467 of \lib\setuplib.php: moodle_exception thrown
      • line 516 of \lib\moodlelib.php: call to print_error()
      • line 30 of \mod\assign\view.php: call to required_param()

      Default exception handler: error/nocourseid Debug:
      Error code: nocourseid
      $a contents:

      • line 467 of \lib\setuplib.php: moodle_exception thrown
      • line 37 of \grade\report\user\index.php: call to print_error()

      There's many others....I'll just upload my full PHP log

            damyon Damyon Wiese
            kickehy Brad Meyer
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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