eZ Community » Forums » Install & configuration » Backend missing CSS and JS - wrong...
expandshrink

Backend missing CSS and JS - wrong document root?

Backend missing CSS and JS - wrong document root?

Wednesday 12 October 2011 3:41:43 pm - 10 replies

Hello there,

I'm very new to eZ (used Joomla and Typo3 before). My employee wants me to test our website in local mode via xampp and I moved the db and the files and flushed the cache. Everything works fine, except the js and css for the backend are missing.

The path to these files is: http://localhost/mySite/C:/xampp/...ece0a4eea81e65282910803951bd_all.css

As you can see, this is wrong. I debugged via xDebug and googled a lot - I just can't find anything...

Any ideas? Every hint is appreciated!

Peter

Wednesday 12 October 2011 4:05:18 pm

Hi Peter,

Looks like a bad rewrite rules.. Do you have copy rewrite rules ? (on vhost and/or htaccess)

Philippe

Wednesday 12 October 2011 4:14:52 pm

Thank you very much! Never would've thought of that...

You mean httpd.conf of apache (/xampp) and .htaccess?

There is no .htaccess in eZ-Publish root. Seems the problem comes from httpd... Doesn't it?

Wednesday 12 October 2011 4:16:25 pm

your virtualhost or your htaccess.

More informations here : http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Installation/Virtual-host-setup/Virtual-host-example happy.gif Emoticon

Wednesday 12 October 2011 4:21:37 pm

Wow, I did it! There was a setting in '/settings/override/site.ini.append.php':

VarDir=C:\xampp\htdocs\agensPSC\

I changed it to VarDir= and now it works! Thank you very much again!!

Wednesday 12 October 2011 4:29:59 pm

your welcome happy.gif Emoticon

Wednesday 12 October 2011 4:46:49 pm

Peter,

Please! Listen ...

You should -not- set VarDir= (blank) in your settings/override/site.ini.append.php

This is in all likely hood a huge mistake!

You should (in most situations) set VarDir=var/siteacessname in your siteaccess settings (both admin and user siteaccesses) like settings/siteaccess/customsiteacessname/site.ini.append.php

Re: http://share.ez.no/forums/install-configuration/shared-var-folder-and-cache

http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Configuration-files/site.ini/FileSettings/VarDir

If you make mistakes with your VarDir setting you potentially can misplace/loose uploaded file content (this varies greatly depending on your actual siteaccess, db and var dir configuration)

Cheers,

Heath

Wednesday 12 October 2011 5:00:05 pm

Well, I don't really know what I'm doing because typo3 and Joomla are a lot different to eZ.

What should then be in VarDir in settings/override/site.ini.append.php?

Wednesday 12 October 2011 6:41:35 pm

Well ...

I did just tell you what to do, re-read the second part of my above post please.

I told you to remove your VarDir= setting in settings/override/site.ini.append.php entirely!

I told you to add VarDir=var/siteacessname setting to both admin and user siteaccesses site.ini.append.php this would be in these files:

settings/siteaccess/(usersiteacessname)/site.ini.append.php

settings/siteaccess/(adminsiteacessname)/site.ini.append.php

 

I hope this helps ...

 

Best wishes,

Cheers,

Heath

Wednesday 12 October 2011 8:42:56 pm

Adding a soft touch to the thread, trying to give you the "why", Peter :

any configuration directive placed in the global override for a configuration file (site.ini in our case) will override any value placed in the siteaccess configuration files. More on the siteaccesses in Greg's tutorial and in the online documentation.

One solution to your issue is to remove completely the 'VarDir' directive from the global override (settings/override/site.ini.append.php) and place it in both the front-end and back-end siteaccesses (ref post from Heath just above).

Let us know how things go,
Cheers, 

Thursday 13 October 2011 10:00:54 am

Aaah, I misunderstood that part, saying I should "not set" it. Thanks again!
About the overwriting - the procedure is known to me since I've set up a magento shop. But thanks for explaining!

Very kind of you of answering my questions! This is a very good forum!

 

Peter

expandshrink

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

36 542 Users on board!

Forums menu