cannot backup - gives "Cannot quickly initialize page" error

cannot backup - gives "Cannot quickly initialize page" error

by Ratnesh Mathur -
Number of replies: 0
When i try to backup a course i get this error
"Cannot quickly initialize page: empty course id"

There exists a course id in the course.
There exists data in the course.
My course mostly contains of databases modules
Funnily - i have two other courses - both of them backup fine
only this one gives the error
tried looking into the dataabse also using phpadmin - no luck
when i switch on debugging from admin > server > debug
i get this error
Notice: Undefined offset: 180 in /home/genie/public_html/moodle/lib/datalib.php on line 1443
whatever this means sad

how to solve this error?
*need to back up my course*

more error messages below:

Course backup: 1 Online Train the Trainer Morning (1OTT)

Name: backup-1ott-20080221-1716.zip
  • Creating temporary structures
  • Deleting old data
  • Creating XML file
    • Writing header
    • Writing general info
    Error: Invalid context creation request for level "70", instance "".
    • line 1685 of lib/accesslib.php: call to debugging()
    • line 1844 of lib/accesslib.php: call to create_context()
    • line 2222 of backup/backuplib.php: call to get_context_instance()
    • line 560 of backup/backuplib.php: call to backup_fetch_roles()
    • line 88 of backup/backup_execute.html: call to backup_general_info()
    • line 126 of backup/backup.php: call to include_once()

    Error: Invalid context creation request for level "70", instance "".
    • line 1685 of lib/accesslib.php: call to debugging()
    • line 1844 of lib/accesslib.php: call to create_context()
    • line 2222 of backup/backuplib.php: call to get_context_instance()
    • line 560 of backup/backuplib.php: call to backup_fetch_roles()
    • line 88 of backup/backup_execute.html: call to backup_general_info()
    • line 126 of backup/backup.php: call to include_once()

    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 5

    SELECT r.* FROM mdl_role_assignments ra, mdl_role r WHERE ra.roleid = r.id AND ra.contextid =
    • line 677 of lib/dmllib.php: call to debugging()
    • line 918 of lib/dmllib.php: call to get_recordset_sql()
    • line 3748 of lib/accesslib.php: call to get_records_sql()
    • line 2258 of backup/backuplib.php: call to get_roles_on_exact_context()
    • line 560 of backup/backuplib.php: call to backup_fetch_roles()
    • line 88 of backup/backup_execute.html: call to backup_general_info()
    • line 126 of backup/backup.php: call to include_once()

  • Writing course data
    • Course info
    • Blocks
    Cannot quickly initialize page: empty course id

thanks for any help
ratnesh
Average of ratings: -