John,
No I did not uninstall the Questionnaire module. I went into each quiz and deleted all of the student responses. From what I read on various forums, the Questionnaire module is a memory guzzler during restores, in some cases increasing memory limits in PhP to extraordinary levels did not solve the problem. In my case, increasing the ram allocation to my modest maximum of 512 Mb was not enough even though the largest number responses to quiz questions was only 181.
The other reason I suspected the Questionnaire module is that I did a partial restore, step by step, and the error occurred only during the restore of the quizzes.
There were a number of things that got in my way. Maybe one of the others is causing your problems. This is what I did.
I made a number of changes to the PhP configuration to allow uploads of the backup zip files (increase the upload limit from 2Mb to 20 Mb), increase the PhP maximum execution time to 600 to avoid premature timeouts, and increased the memory allocation to tasks from 16Mb to 512Mb.
>sudo nano /etc/php5/apache2/php.ini
Config file to read [altering existing entries].
upload_max_filesize 20M
max_execution_time = 600
post_max_size = 20M
memory_limit = 512M [from 16M]
>sudo apache2ctl restart
Inadequate execution time or inadequate memory limit might be what is plaguing you in the absence of any quizzes.
Helen gave me a really good pointer about switching on the Moodle debugging, which I did not know about.
I guess it will be sensible, once I have finished the migration, to bring the memory limit back down to a reasonable figure.
I am new to this, having only set up a new Linux server for the first time in the last 10 days, so on a steep learning curve.
Apache OK,
MySQL OK, Mail server fine, Moodle a bloody nightmare. Good thing it delivers so well for me at the student level.
Hope this helps,
Arthur