My server structure is as follows:

/var/www/htdocs_webroot/shop -> symlink to: /var/www/shop/deploy_xxxx-xx-xx/htdocs

So I can redeploy magento easily and switch back and forth with one simple command. My problem is: Magento doesn't play along.

I redeployed to a more current version and changed the symlink. Then I redeployed static files, reindexed and flushed the cache. Yet activating template hints shows that templates are loaded from the older folder instead. Whereas the real problem is that Magento wants to load the templates with the physical file path instead of the virtual one.

Any suggestions?

  • 1
    Perhaps an obvious question, but have you cleared cache? – Marshian Dec 5 '16 at 17:15
  • Yeah maybe I should have said that I: flushed the cache, reindexed and redeployed static files. – steros Dec 6 '16 at 8:51
  • My current guess is that either I setup Magento in the wrong way somehow so it took the physical path or Magento always resolves to the physical path. I hope it's not the second one :( – steros Dec 6 '16 at 8:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.