-
Improvement
-
Resolution: Won't Do
-
Major
-
None
-
2.4
-
MOODLE_24_STABLE
I am using Moodle 2.4+ (Build 20130111)
Windows Server 2008 Standard SP2
IIS 7.0
PHP 5.4.4
Since upgrading to Moodle 2.4, I have been unable to use any SCORM content including the SCORM packages that worked correctly in 2.3. The SCORM packages are SCORM 1.2 format.
I have been trying to troubeshoot this issue for about 2 weeks now with no success and no response to my earlier forum post.
Here are the steps that I have taken and the resulting errors:
I have been trying to access the package both through a remote connection and directly on the server.
The SCORM package that already existed and worked in version 2.3 gets the error on the weblib.php file and the same course, republished and added in 2.4 get the error on the pagelib.php file.
This section is common to both server and remote:
Error: mdb->get_record() found more than one record!
line 1394 of \lib\dml\moodle_database.php: call to debugging()
line 1354 of \lib\dml\moodle_database.php: call to moodle_database->get_record_sql()
line 1333 of \lib\dml\moodle_database.php: call to moodle_database->get_record_select()
line 1752 of \mod\scorm\locallib.php: call to moodle_database->get_record()
line 880 of \mod\scorm\locallib.php: call to scorm_get_toc()
line 157 of \mod\scorm\view.php: call to scorm_view_display()
memory_limit = 128M (Original setting in php.ini file)
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65488 bytes) in C:\inetpub\wwwroot\moodle\lib\pagelib.php on line 717
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2048 bytes) in C:\inetpub\wwwroot\moodle\lib\weblib.php on line 1271
memory_limit = 256M
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 65488 bytes) in C:\inetpub\wwwroot\moodle\lib\pagelib.php on line 717
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 2048 bytes) in C:\inetpub\wwwroot\moodle\lib\weblib.php on line 1271
memory_limit = 512M
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 65488 bytes) in C:\inetpub\wwwroot\moodle\lib\pagelib.php on line 717
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 2048 bytes) in C:\inetpub\wwwroot\moodle\lib\weblib.php on line 1271
memory_limit = 1024M
Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 65488 bytes) in C:\inetpub\wwwroot\moodle\lib\pagelib.php on line 717
Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 2048 bytes) in C:\inetpub\wwwroot\moodle\lib\weblib.php on line 1271
memory_limit = 2048M
This time I got a Http 500 error and when I ran it on the server it said that it exceeded the 30 second timeout error.
When I changed the timeout to 60 seconds, I got another http 500 error
c:\php\php-cgi.exe - The FastCGI process exceeded configured activity timeout
I then configured the FastCGI process to have a timeout of 600 and I get the same fatal error that I had at other memory levels.
Fatal error: Out of memory (allocated 1950089216) (tried to allocate 65488 bytes) in C:\inetpub\wwwroot\moodle\lib\pagelib.php on line 717
Fatal error: Out of memory (allocated 1947729920) (tried to allocate 2048 bytes) in C:\inetpub\wwwroot\moodle\lib\weblib.php on line 1271
The package loaded into Moodle 2.3 is 903kb.
The package loaded into Moodle 2.4 is 903kb
Also, setting up a course in SCORM format gets the same error on pagelib.php.
I also get the same errors when I do the SCORM package as an external SCORM.
I am at a loss as to what to do next.
Please help.