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: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 ![]()
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
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 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
You must be logged in to post messages in this topic!