Backup just stops at "Writing gradebook info"

Backup just stops at "Writing gradebook info"

by Frank Thomas -
Number of replies: 6
Hi everybody,

I am desperate for a solution for this. I've been developping a moodle course locally on my website, and now comes the time to migrate it over to the schools' Moodle.

When I try to backup the course, it lists what it's doing, but stops at "Writing Gradebook Info". See below.

------------------------------------------------------------
  • Creating temporary structures
  • Deleting old data
  • Creating XML file
    • Writing header
    • Writing general info
    • Writing course data
    • Writing users info
    • Writing categories and questions. . . .
    • Writing scales info
    • Writing groups info
    • Writing groupings info
    • Writing groupings-groups info
    • Writing events info
    • Writing gradebook info
------------------------------------------------------------

What I've tried so far:

- Removing all course files. (So that the course becomes very small, in case this is related to file size.)
- I removed all grades.
- I removed all users but Admin.
- If I create a new empty course, I am able to do the backup.


Does anybody know why this is happening?
Is it possible to migrate a course some other way?

Any help really appreciated,
Thank you
Frank

Average of ratings: -
In reply to Frank Thomas

Re: Backup just stops at "Writing gradebook info"

by Frank Thomas -
It's me again. I just turned on debugging, and I get this:

Writing gradebook info
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 80 bytes) in /home/tribal/public_html/moodle/lib/dmllib.php on line 728

Any idea how to fix this?
Thanks
In reply to Frank Thomas

Re: Backup just stops at "Writing gradebook info"

by Jeff Wood -

I ended up with

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 35 bytes) in /home/XXXXX/public_html/admin/mnet/MethodTable.php on line 77

After installing the survey block.

I'm off to see if my provider will increase my php memory limit.

Jeff

In reply to Jeff Wood

Re: Backup just stops at "Writing gradebook info"

by Frank Thomas -
Hi,

I managed to fix it.
It was a PHP memory limit issue.

I created a PHP.INI file containing "memory_limit = 128M" that i put in the BACKUP folder of moodle.

I had to go up to 128 megs before it worked.. It's a big course smile

Simon
In reply to Frank Thomas

Re: Backup just stops at "Writing gradebook info"

by Ken Gibson -

Hey Frank,

How large of course? (the size of the zipped backup?)  Didn't know we could override php settings this way - nice workaround.

Ken

In reply to Frank Thomas

Re: Backup just stops at "Writing gradebook info"

by Ryan Law -

How do you create that PHP file?

That could help a lot of us, but many of us may not know how to do that.

Thanks-

In reply to Jeff Wood

Re: Backup just stops at "Writing gradebook info"

by Jeff Wood -
Host says 32M is max they give.

Any other ideas?

Jeff