Broken Images After Install

Broken Images After Install

by David Garden -
Number of replies: 4

Hi,

 

I installed Moodle on a web server today... once installed, all the images on the home page, etc. are broken images.  The urls to such images are like this one:

http://www.moodlegarden.com/moodle/theme/image.php/standard/core/1396852594/i/navigationitem

It also seems the stylesheets are missing.

 

Is there a possibility something went wrong with the install?

 

Thanks.

 

 

Average of ratings: -
In reply to David Garden

Re: Broken Images After Install

by Oscar González -

Hi,

I have migrate a server today and have the same problem.

http://tecniline.com/moodle2/lib/javascript.php/1396915991/lib/javascript-static.js

The chrome inspector throw the following message 

"failed to load resource: the server responded with a status of 404 (Not Found)"

In the previous server this was working fine.

I don't know if these is related to moodle, php config or apache config.

 

Thanks.

In reply to Oscar González

Re: Broken Images After Install

by Jon Witts -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Does the file exist on the server? How did you upload the files to your server?

Jon

In reply to Jon Witts

Re: Broken Images After Install

by Oscar González -

Hi,

I did a tar on the moodle and moodledata directory.

I copied via ssh to the new server, then extracted the data and edited the config.php file.

I also backup and restore the moodle database.

 

Oscar.

 

 

In reply to David Garden

Re: Broken Images After Install

by Oscar González -

Hi David,

After googling around for a while I have solved my problem.

In this discussion https://moodle.org/mod/forum/discuss.php?d=94172 was the clue.

I have seen over and over put this line in your php.ini

cgi.fix_pathinfo = 1

I did that but didn't work. Because It had to be done in the php5.ini file for PHP5.

If you don't have a php5.ini like me create it in your www or html directory and put that line in there.

This works for me.