Magento Admin CSS and JS paths incorrect after moving server and product pages empty?

Andy Smith picture Andy Smith · Jun 12, 2011 · Viewed 26.5k times · Source

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

Answer

clockworkgeek picture clockworkgeek · Jun 12, 2011

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.