Migration help, CSS and images not showing

Migration help, CSS and images not showing

by Mauro Mazzerioli -
Number of replies: 9

I recently migrated a Moodle 2.5.1 instance from 

http://54.221.217.154/moodle

to 

http://moodle.thecoachinginstitute.com.au/index.php

but I can't get the images and the CSS showing up.

Also the index.php should resolve without specifying it but it doesn't: try going to http://moodle.thecoachinginstitute.com.au

any help is appreciated.

thank you

P.S. = see previous threads here.

Average of ratings: -
In reply to Mauro Mazzerioli

Re: Migration help, CSS and images not showing

by Purnendu Dash -
Picture of Plugin developers

Hey Mauro!

Have you migrated the moodledata folder from your old destination to the new destination? In case of CSS and fixing images, I’d suggest you to first login to your site and purge the caches; I hope you’ll be able to see the changes then.

In order to purge the cache, visit  the site map given below:

admin -> development -> purge all caches

After performing so, turn on the debugging mode from the site map given below:

site admin -> development -> debugging.

 Debugging will show the errors in your site.

 If any error message gets displayed after performing this, we’ll try to provide some better solution; so please keep us posted.

Happy Moodling!

Purnendu

DualCube

 

In reply to Purnendu Dash

Re: Migration help, CSS and images not showing

by Mauro Mazzerioli -

Yes I've done all of that with no avail. Thanks!

In reply to Mauro Mazzerioli

Re: Migration help, CSS and images not showing

by Purnendu Dash -
Picture of Plugin developers

This is quite strange that you didn’t get any error message after turning on the debugging. I’m sorry to say; I guess your site is completely broken and you have got javascript error in your site as well. It would be really nice if you could please tell us in more detail about your problem.

Thanking you

Purnendu

DualCube

In reply to Mauro Mazzerioli

Re: Migration help, CSS and images not showing

by Bret Miller -
Picture of Particularly helpful Moodlers

Did you follow the instructions here:

http://docs.moodle.org/25/en/Moodle_migration

Specifically, assuming you've moved your site directory and moodledata directory to the new server and have it properly set in config.php, have you run the search/replace tool to replace the old URL with the new one?

In reply to Bret Miller

Re: Migration help, CSS and images not showing

by Mauro Mazzerioli -

I have looked for the Search and Replace function but could not find it.

In reply to Mauro Mazzerioli

Re: Migration help, CSS and images not showing

by Luis de Vasconcelos -

Look under: \admin\tool\replace\index.php

And please vote for MDL-35099. That replace script needs some work.

In reply to Mauro Mazzerioli

Re: Migration help, CSS and images not showing

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

The index.php not resolving is a setting on your web server. Make sure that (assuming Apache) 'DirectoryIndex' included 'index.php'.

Edit your config.php and add the line (somewhere amongst the other settings before setup.php is called), 

$CFG->slasharguments = false;

Does this make any difference?

Average of ratings: Useful (3)
In reply to Howard Miller

Re: Migration help, CSS and images not showing

by Jim Player -

Thanks! Thanks! A lot of thanks! That worked!