Problem with relative links Moodle 2.4

Problem with relative links Moodle 2.4

by roberto mm -
Number of replies: 2

Hi moodlers smile

I have two moodle instances on a shared hosting (PHP 5.4.14, MySQL 5.1.67). One is an old 2.0.x and today I have just installled a fresh 2.4.3+. The problem is (I think) that the 2.4.3+ is not building the links properly when upload any resource like an external HTML page or an IMS packet content, so it is not showing the images, media or CSS. For example the same IMS packet is OK on Moodle 2.0, but I have problems with the new Moodle 2.4.3

2.4.3

2.0

I realize that Moodle is building the links to the content in a different way:

Link to topic 1 of the IMS in Moodle 2.4.3

http://moodle.mysite.org/pluginfile.php?file=%2F106%2Fmod_imscp%2Fcontent%2F1%2Fintroduction.html

Link to topic 1 of the IMS in Moodle 2.0.x

http://moodle2.mysite.org/pluginfile.php/53/mod_imscp/content/1/introduction.html

All the other links are OK this only happens with relative links in an IMS packet or an external HTML page uploaded as a file resource. As I told, both instaces are in the same shared hosting (different subdomains and mooldledata folders), I checked the config.php files and are similar, also have just the same php.ini and .htaccess files. Debugging mode does not show any error.

Any idea? Thanks in advance.

Un saludo. Roberto

Average of ratings: -
In reply to roberto mm

Re: Problem with relative links Moodle 2.4

by Dan Marsden -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Plugins guardians Picture of Testers Picture of Translators

that's slash arguments getting in the way - here's the relevant docs from the SCORM FAQ which should be relevant:

SCORM_FAQ#slash arguments warning when I add/update SCORM objects in my course

If you're using Godaddy check the SCORM FAQ just below that one.

In reply to Dan Marsden

Re: Problem with relative links Moodle 2.4

by roberto mm -

Hi Dan smile

Thanks for your answer. I have checked the system health and it is OK. Also have tried with slash arguments on and off (I set the slash to off, because if it is on the site does not show any image).

As I told before, I have another Moodle 2.0.x on the same hosting (same account and server, just using a different subdomain) and it works fine. If server configuration is the same can't understand why is building the links in a different way. When upload an external page as a file resource on Moodle 2.0.x the links are right, but on Moodle 2.4.3 ignores all and link the page directly.

 

Moodle 2.0.x

http://moodle2.mysite.org/pluginfile.php/54/mod_resource/content/1/page.html

Moodle 2.4.3

http://moodle.mysite.org/page.html

 

The config.php files are similar, php.ini and .htaccess are exactly the same. My hosting provider is 1and1 (Spain).

Any idea?. Thanks.

P.D. I have tried adding a line 'AcceptPathInfo On' in .htaccess file, but still have the problem sad.

Attachment health.png