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 - 12 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.

Thursday 05 October 2017 12:37:59 pm

Hi,

I have got a similar issue, i have 4-5 different website running on ezpublish all on the same server. Recently i have upgraded the ezpublish version (5.3.12) and in 1 of the website the folders for css and js are not getting generated under "var/<your_site>/cache/" also the "ezjscore" option is checked in backend.

Can you please help!

Friday 06 October 2017 8:12:08 am

Hello Kedar,

As Peter said, you will want to check folder tree permissions for the var dir as this is almost always the problem.

I hope this helps!

Cheers,
Heath

Friday 06 October 2017 9:38:35 am

Hi Peter,

Thanks for your reply.

It has got read/write permission on all the files and folders present under "var/<your_site>/cache/" folder.

The problem is the folder called "public/stylesheets" and "public/javascript" are not getting generated, due to which we have a GUI issue in back-office.

Can you please let me know the possible solution for this issue.

Thanks & Regards,

Nikhil

Friday 06 October 2017 10:19:40 am

Hi Heath,

Thanks for your reply.

It has got read/write permission on all the files and folders present under "var/<your_site>/cache/" folder.

The problem is the folder called "public/stylesheets" and "public/javascript" are not getting generated, due to which we have a GUI issue in back-office.

Can you please let me know the possible solution for this issue.

Thanks & Regards,

Nikhil

Tuesday 10 October 2017 1:19:00 am

Hello Kedar,

You may need to regenerate autoloads.

./bin/php/ezpgenerateautoloads.php;

You may also need to confirm at an ini level that in: settings/override/site.ini.append.php you have the ezjscore extension in the ActiveExtensions[] array correctly. You may also need to enable DebugOutput and tail var/log/error.log to find out more information on just how ezjscore is either missing or failing to create the files required.

I hope this helps!

Cheers,
Heath

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from