Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a bug
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Component/s: Roles / Access
    • Labels:
      None
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      After commenting out

      //redirect("$CFG->wwwroot/$CFG->admin/");

      from index.php, a logged in non-admin users sees

      Notice: Undefined property: stdClass::$summary in /var/www/dev/course/lib.php on line 1872

      You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 10

      SELECT c.id,c.category,c.sortorder,c.shortname,c.fullname,c.idnumber,c.teacher,c.teachers,c.student,c.students,c.guest,c.startdate,c.visible,c.newsitems,c.cost,c.enrol,c.groupmode,c.groupmodeforce, ctx.id AS ctxid, ctx.path AS ctxpath, ctx.depth as ctxdepth, cc.path AS categorypath FROM mdl_course c JOIN mdl_course_categories cc ON c.category=cc.id JOIN mdl_context ctx ON (c.id=ctx.instanceid AND ctx.contextlevel=50) WHERE c.id IN (2) ORDER BY

      • line 677 of lib/dmllib.php: call to debugging()
      • line 905 of lib/datalib.php: call to get_recordset_sql()
      • line 1425 of calendar/lib.php: call to get_my_courses()
      • line 1206 of calendar/lib.php: call to calendar_get_default_courses()
      • line 24 of blocks/calendar_month/block_calendar_month.php: call to calendar_session_vars()
      • line 210 of blocks/moodleblock.class.php: call to block_calendar_month->get_content()
      • line 234 of blocks/moodleblock.class.php: call to block_base->is_empty()
      • line 338 of lib/blocklib.php: call to block_base->_print_block()
      • line 269 of index.php: call to blocks_print_group()

      Fatal error: Call to a member function RecordCount() on a non-object in /var/www/dev/lib/datalib.php on line 908

        Attachments

          Activity

            People

            Assignee:
            martinlanghoff Martín Langhoff
            Reporter:
            lazyfish Yu Zhang
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              3/Mar/08