Sorry I should have mentioned, I have put debugging on. No error comes up except the eventual 504 timeout.
AH ok got something here when I set an execution time limit:
[21-Nov-2014 07:50:42 Europe/Berlin] Potential coding error - active database transaction detected during request shutdown:
* line 107 of \course\modlib.php: call to moodle_database->start_delegated_transaction()
* line 266 of \course\modedit.php: call to add_moduleinfo()
[21-Nov-2014 07:51:05 Europe/Berlin] Default exception handler: error/concurrent access from the same user is not supported Debug:
Error code: concurrent access from the same user is not supported
$a contents:
* line 463 of \lib\setuplib.php: moodle_exception thrown
* line 59 of \lib\editor\atto\autosave-ajax.php: call to print_error()
[21-Nov-2014 07:51:18 Europe/Berlin] Default exception handler: error/concurrent access from the same user is not supported Debug:
Error code: concurrent access from the same user is not supported
$a contents:
* line 463 of \lib\setuplib.php: moodle_exception thrown
* line 59 of \lib\editor\atto\autosave-ajax.php: call to print_error()
[21-Nov-2014 07:51:31 Europe/Berlin] Default exception handler: error/concurrent access from the same user is not supported Debug:
Error code: concurrent access from the same user is not supported
$a contents:
* line 463 of \lib\setuplib.php: moodle_exception thrown
* line 59 of \lib\editor\atto\autosave-ajax.php: call to print_error()
[21-Nov-2014 07:51:43 Europe/Berlin] Default exception handler: error/concurrent access from the same user is not supported Debug:
Error code: concurrent access from the same user is not supported
$a contents:
* line 463 of \lib\setuplib.php: moodle_exception thrown
* line 59 of \lib\editor\atto\autosave-ajax.php: call to print_error()
[21-Nov-2014 07:51:55 Europe/Berlin] Default exception handler: error/concurrent access from the same user is not supported Debug:
Error code: concurrent access from the same user is not supported
$a contents:
* line 463 of \lib\setuplib.php: moodle_exception thrown
* line 59 of \lib\editor\atto\autosave-ajax.php: call to print_error()
[21-Nov-2014 08:07:24 Europe/Berlin] PHP Fatal error: Maximum execution time of 999 seconds exceeded in C:\xampp\htdocs\lms28\cache\classes\loaders.php on line 544
Now setting the time limit to 9999 to see what happens