Moodle

Latest CVS of 1.9 breaks during upgrade

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Duplicate
  • Affects Version/s: 1.9
  • Fix Version/s: 1.9
  • Component/s: Administration, General
  • Labels:
    None
  • Database:
    MySQL
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

Just updated my test 1.9 Moodle to the latest CVS version and tried upgrading the version. I got the following fatal error during the upgrade (/admin/upgradesettings.php) and now the site is inaccessible!

------------------------------------------------------------------

Notice: Undefined property: stdClass::$access in /home/charlie/www/moodle19.dev/htdocs/moodle/lib/accesslib.php on line 428
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 'integer) >' at line 4

SELECT name, value FROM mdl_config_plugins WHERE plugin='accesslib/dirtycontexts' AND CAST(value AS integer) >

  • line 677 of lib/dmllib.php: call to debugging()
  • line 918 of lib/dmllib.php: call to get_recordset_sql()
  • line 4947 of lib/accesslib.php: call to get_records_sql()
  • line 428 of lib/accesslib.php: call to get_dirty_contexts()
  • line 1747 of lib/moodlelib.php: call to has_capability()
  • line 2762 of lib/adminlib.php: call to require_login()
  • line 9 of admin/upgradesettings.php: call to admin_externalpage_setup()

Notice: Undefined property: stdClass::$access in /home/charlie/www/moodle19.dev/htdocs/moodle/lib/accesslib.php on line 466

Notice: Undefined property: stdClass::$access in /home/charlie/www/moodle19.dev/htdocs/moodle/lib/accesslib.php on line 466

Access denied

------------------------------------------------------------------

Issue Links

Activity

Hide
Martin Dougiamas added a comment -

Yes, a large performance patch just landed and it had a bug. I'm pretty sure this is a duplicate of MDL-11347.

Show
Martin Dougiamas added a comment - Yes, a large performance patch just landed and it had a bug. I'm pretty sure this is a duplicate of MDL-11347.
Hide
Charlie Owen (SonniesEdge) added a comment -

Yeah, found the Moodle Developer Forum post just after I posted this tracker item. Good timing on my part, as always.

Show
Charlie Owen (SonniesEdge) added a comment - Yeah, found the Moodle Developer Forum post just after I posted this tracker item. Good timing on my part, as always.
Hide
Martin Dougiamas added a comment -

No probs, thanks for the report!

Show
Martin Dougiamas added a comment - No probs, thanks for the report!

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: