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

Missing extra space of query in \core\cron::run_failed_adhoc_tasks

XMLWordPrintable

    • 1
    • Team Hedgehog 2024 Sprint 1.4

      This line needs to have extra space.

      Otherwise, the query cannot be executed on MySQL

      Default exception handler: Error reading from database Debug: FUNCTION marydevmoodledemo.0AND does not exist
      SELECT * from mdl_task_adhoc WHERE faildelay > 0AND (attemptsavailable > 0 OR attemptsavailable IS NULL)
      [array (
      )]
      Error code: dmlreadexception
      * line 494 of /lib/dml/moodle_database.php: dml_read_exception thrown
      * line 293 of /lib/dml/moodle_read_slave_trait.php: call to moodle_database->query_end()
      * line 1398 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->query_end()
      * line 369 of /lib/classes/cron.php: call to mysqli_native_moodle_database->get_records_sql()
      * line 154 of /admin/cli/adhoc_task.php: call to core\cron::run_failed_adhoc_tasks() 

            huongn@moodle.com Huong Nguyen
            huongn@moodle.com Huong Nguyen
            Raquel Ortega Raquel Ortega
            Ilya Tregubov Ilya Tregubov
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 25 minutes
                1h 25m

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