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

Call to undefined function in course_viewed event

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.7
    • Component/s: Events API
    • Labels:
    • Testing Instructions:
      Hide
      1. Go to the live log report
      2. Open another tab a view a course page
      3. Observe the log report for the new event to appear
        • Make sure the event URL points to the course page
        • Make sure there are no fatal error happening (check your logs)

      There are some debugging messages in the logs, that was reported in MDL-45237

      Show
      Go to the live log report Open another tab a view a course page Observe the log report for the new event to appear Make sure the event URL points to the course page Make sure there are no fatal error happening (check your logs) There are some debugging messages in the logs, that was reported in MDL-45237
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-45238-master

      Description

      php fatal error:  call to undefined function course_get_url() in /home/fred/www/repositories/im/moodle/lib/classes/event/course_viewed.php on line 81, referer: https://fred.moodle.local/im/report/loglive/index.php
       
      php stack trace:, referer: https://fred.moodle.local/im/report/loglive/index.php
       
      php   1. {main}() /home/fred/www/repositories/im/moodle/report/loglive/loglive_ajax.php:0, referer: https://fred.moodle.local/im/report/loglive/index.php
       
      php   2. plugin_renderer_base->render() /home/fred/www/repositories/im/moodle/report/loglive/loglive_ajax.php:50, referer: https://fred.moodle.local/im/report/loglive/index.php
       
      php   3. report_loglive_renderer_ajax->render_report_loglive_renderable() /home/fred/www/repositories/im/moodle/lib/outputrenderers.php:221, referer: https://fred.moodle.local/im/report/loglive/index.php
       
      php   4. report_loglive_table_log_ajax->out() /home/fred/www/repositories/im/moodle/report/loglive/classes/renderer_ajax.php:46, referer: https://fred.moodle.local/im/report/loglive/index.php
       
      php   5. flexible_table->format_row() /home/fred/www/repositories/im/moodle/report/loglive/classes/table_log_ajax.php:53, referer: https://fred.moodle.local/im/report/loglive/index.php
       
      php   6. report_loglive_table_log->col_eventname() /home/fred/www/repositories/im/moodle/lib/tablelib.php:760, referer: https://fred.moodle.local/im/report/loglive/index.php
       
      php   7. core\\event\\course_viewed->get_url() /home/fred/www/repositories/im/moodle/report/loglive/classes/table_log.php:240, referer: https://fred.moodle.local/im/report/loglive/index.php
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              fred Frédéric Massart
              Reporter:
              fred Frédéric Massart
              Integrator:
              Sam Hemelryk
              Tester:
              Sam Hemelryk
              Participants:
              Component watchers:
              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:
                Fix Release Date:
                12/May/14