0

After manually moving Magento 2.2.4 site to a Windows IIS server, the pages are blank. Only a few lines of HTML is loaded, and I can see in the body tag there is an incorrect static file path:

mydomain.com/pub/static/frontend/_view/en_GB/images/loader-2.gif

I believe this should be:

mydomain.com/pub/static/frontend/<vendor>/<theme>/en_GB/images/loader-2.gif

Any idea where the _view is coming from and what might be causing it?

Cache has been flushed, static files have been generated. I can see static files on the server in correct directories.

I know Magento 2 doesn't officially support Windows, but a fresh install of Magento 2 works fine on this same environment with some small edits.

  • Yes, it happen for Windows server – Amit Bera Oct 1 '18 at 15:33
  • Do you know why? Freshly installed Magento 2 works fine on the same Windows server. – Jarxberg Oct 1 '18 at 15:52
0

Turns out it was likely a very persistent cache issue in our case. Not exactly sure what fixed it, but this sequence got it to work:

  • Deleted static files
  • Disabled static files signing
  • php bin\magento cache:clean
  • php bin\magento setup:upgrade
  • php bin\magento setup:static-content:deploy en_GB
  • Checked config file

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.