Hello!
We have similar problems with course backup - the screen with file name and backup details is visible, but when we click on Continue, the header of page with navigation link is output, the internet browser progress bar shows page loading in progress. The http process on server is taking 100% of processor. No respond from server on other pages, only http service restart helps to get server responding again.
The cause of problem is in file backup/backuplib.php when trying to execute regular expression with unicode modifiers.
The code starting on line 2327
static $unicoderegexp;
if (!isset($unicoderegexp)) {
$unicoderegexp = @preg_match('/\pL/u', 'a'); // This will fail silenty, returning false,
}
assigns to $unicoderegexp value 1 - that means check for unicode modifier using gave a positive result. Further on line 2357 the reg. expr. containing unicode modifirs is constructed and on line 2361 it is passed to function for execution - and this is the function where execution comes into seemly infinite loop.
When we assigned $unicoderegexp = false, non-unicode reg. expr. was executed and backup worked well.
The version of Moodle is 1.9.5, we are using Linux OS, MySql DB. PHP 5.1.6 is compiled with mbstring support. We also tried PHP 5.1.6 without mbstring support, the problem remained.
Linking with forums: http://moodle.org/mod/forum/discuss.php?d=123627
Hi Mike,
I've tried here to backup various courses and it has worked perfectly.
In order to get some more info, it would be great if you could config debug in your site (Admin->Server->Debugging) to its maximum value (DEBUG_DEVELOPER) and then try to execute the backup again. You should end with some sort of error in the page or in the web server logs.
For sure that info can give use some hint about what is happening...TIA and ciao