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

前端 未结 2 419
臣服心动
臣服心动 2020-12-30 07:19

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 m

相关标签:
2条回答
  • 2020-12-30 07:56

    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.

    0 讨论(0)
  • 2020-12-30 08:21

    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.

    0 讨论(0)
提交回复
热议问题