12
votes

I have recently moved a Magento site from a subdomain to it's destination domain at picnprint.me on a different server. I am experiencing two problems at the moment since moving the site to the new server.

The admin area CSS and JS paths are being rendered incorrectly. For example... The Magento Admin page is looking for adminhtml/default/default/reset.css instead of picnprint.me/skin/adminhtml/default/default/…

If I place the CSS and JS files in the locations that the admin pages are currently pathing to then the Magento Admin will load normally but won't allow me to login.

Also, All the product pages on the front end are displaying blank, the site template loads but no product content loads. Does anyone know what the cause of these issues could be and how I remedy the problem?

Cheers,

Andy

2

2 Answers

22
votes

Using your favourite RDMS tool (such as phpMyAdmin) open the table core_config_data, correct the values for the paths web/unsecure/base_url and web/secure/base_url. Make sure dev/js/merge_files and dev/css/merge_css_files are both 0.

Clear the cache by deleting all files in var/cache/ in your Magento directory.

9
votes

I had the same issue. I know this may not be the answer to the above question but still feel that this could help someone with a very similar issue.

I have had this problem a couple of times now and end up googling in circles for 20 minutes before I remember the solution. This post is mostly for my future self who will undoubtedly have the issue again.

I had 'combine javascript and css enabled'. My locally combined css and js files were being automatically deployed to the server.

The issue was that my media folder where all the css and js was now being loaded from did not have the correct permissions. After granting apache write permission all of my troubles went away :).

It is probably a good idea to add the media/css and media/js folders to .gitignore.