SCORM: No valid arguments supplied or incorrect server configuration

SCORM: No valid arguments supplied or incorrect server configuration

by Manoj Killedar -
Number of replies: 5

I use Moodle 2.0.3 on shared server with cPanel.

My installation steps are as follows:

  1. First I created hosting account with WHM without updating nameserver info for the domain. Thus, I get URL like http://serverip/~username.
  2. I extracted Moodle 2.0.3 ZIP file in the 'lms' subfolder of above temporary URL. Thus, I get URL like http://serverip/~username/lms/.
  3. I installed Moodle 2.0.3 in the above URL without updating nameserver info for the domain. Installation was perfect and without errors. Website can be browse without any errors at this temprary url.
  4. I updated nameserver info for the domain now. I also updated config.php in lms subfolder as $CFG->wwwroot   = 'http://www.mydomain.com/lms'. Thus, I get URL like http://www.mydomain.com/lms/.
  5. But, same Moodle installation (which was working fine with temporary URL) now do not display images on the home page. Even if I upload new images, images can not be displayed.
  6. Above problem persist even if I try to reverse all setting at step 3 above.
  7. Hence, at Home / Site administration / Server / HTTP, I disable the Use slash arguments setting. With this change, my images are again displayed as usual.
  8. But, now my SCORM activity do not function normally. When visitor enters in SCORM module, it fires error which reads as: No valid arguments supplied or incorrect server configuration.

Please help me to solve this issue.

Average of ratings: -
In reply to Manoj Killedar

Re: SCORM: No valid arguments supplied or incorrect server configuration

by David Price -

Hi Manoj, did you find a solution for this? I have the same problem. Does solution really involve changing Apache config?

David

In reply to Manoj Killedar

Re: SCORM: No valid arguments supplied or incorrect server configuration

by David Price -

Hi

upgraded from 1.9.9 to 2.0.3

all SCORM activities give "No valid arguments supplied or incorrect server configuration" error at pluginfile.php line 38 because "relative path must start with /".

all SCORM activities work perfectly with 1.9.9 on our server

do not use "godaddy" hosting as some users with similar errors apparently do

AcceptPathInfo is On (by adding <Directory /home/var/www/html/moodle> AcceptPathInfo On </Directory> to /etc/httpd/conf/site/accept

moodle/admin/health.php reports no problems

have tried enabling/disabling slash arguments

have tried repackaging one of the SCORM zip files with the Reload Editor (from www.reload.ac.uk) and re-adding the SCORM activity

have tried adding a new course

any other ideas anyone?

Dave

In reply to David Price

Re: SCORM: No valid arguments supplied or incorrect server configuration

by Matteo Scaramuccia -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Hi David,
please provide a sample of your imsmanifest.xml files: it could be an issue related with your <resource> nodes before having some links with the update process.

Matteo

In reply to Matteo Scaramuccia

Re: SCORM: No valid arguments supplied or incorrect server configuration

by David Price -

Matteo, many thanks for being prepared to take a look at the SCORM manifest.

It turned out that AcceptPathInfo was set on in Apache's httpd.conf but fixpathinfo wasnt correct and our PHP is being processed through php.cgi.

Moodle 2.0 Scorm and course images all displaying correctly finally!! also can turn slash arguments on without all other images disappearing. This was a challenging one :-o

Manoj, this might be a solution for you also?

Final response from our web host below:-

----------------

Apologies for not being around to assist earlier but I have taken a look at the issue regarding PATH_INFO and found the solution.
As per http://bugs.php.net/bug.php?id=34554 (or more specifically the Google cached version as bugs.php.net is down currently), the php.ini setting "cgi.fix_pathinfo" needed changed to allow the PATH_INFO variable to be set properly when running PHP as php-cgi.

I have disabled this option (set to cgi.fix_pathinfo = 0) and confirmed that the example link you provided does now work properly