eZ Community » Forums » Install & configuration » Missing Backend CSS & JS after server...
expandshrink

Missing Backend CSS & JS after server migration.

Missing Backend CSS & JS after server migration.

Tuesday 13 June 2017 9:53:54 pm - 7 replies

Hello,

I am attempting to migrate our ezpublish websites from one hosting provider to being hosted in house. The hosting provider gave me a sanitized backup of the web root as well as the apache virtualhost files and a sql backup. I have everything working except my backend. When I try to load it I get the login page but no css or javascript has been applied. I can successfully log in to manage my websites but again no css or js. I am using ezpublish 5.4.4. I have checked all of my error logs and I cannot find any errors. I have compaired to my existing site that is in production still and it pulls a css file that doesn't exist in my new server. Are the css files for the backend autogenerated somehow?

I have flushed my cache using php console and I have done assetic dumps as well. I have even tried starting over, going through the initial setup. Using a new database. To the same result. Any help would be greatly appreciated.

Modified on Tuesday 13 June 2017 9:54:48 pm by Blake Klynsma

Wednesday 14 June 2017 5:20:30 pm

The back-end uses the "ezjscore" extension to place CSS and JS in the var/<your_site>/cache/public folder. Have you checked that the folder exists and is writable by the web server?

If you're using a cluster setup, this could also be due to incorrect references in the cluster table.

Friday 16 June 2017 2:26:07 am

Thanks for getting back to me Peter.

This was not a cluster setup as far as I know.

I have confirmed that the /var/<site>/cache/public folder does not exist. And it was not included in the backup that the hosting provider gave to me. I have created that directory and made sure that the web server has write permissions but none of the CSS or JS are being created in there. Is there a way for me to trigger the creation?

Friday 16 June 2017 3:06:01 am

I did notice that in my admin console, under Setup -> Extensions, that ezjscore was not checked. So I checked the box and clicked update. Then I cleared my content view cache and all the javascript and css loaded. Thanks!

Wednesday 28 June 2017 6:37:14 am

The reply has been removed because of violation of forum rules.

Wednesday 28 June 2017 7:51:39 am

The reply has been removed because of violation of forum rules.

Wednesday 28 June 2017 7:52:45 am

The reply has been removed because of violation of forum rules.

Saturday 29 July 2017 6:40:17 pm

The reply has been removed because of violation of forum rules.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from