Changing the default var directory not picked .

Author Message

Romeo Antony

Wednesday 15 December 2010 12:17:41 am

Hi ,

I do not why it is still not working. Spent a lot of time. But cannot figure it out. Please help.

default ezp var directory is ---- var/ezflow

It is working fine.

But If I change the var dir to var/mysite

It is not picked up by ezp.

Cleared the whole cache, I have enabled the debug , showing error as

Error: eZImageManager::createImageAlias

The reference alias original file var/ezflow_site/storage/images/folder1/w/242-1-eng-GB/w.jpg does not exist

var directory settings is enabled in global override

Also webserver has the write permission to var directory.

Custom var directory is not picked up.

Any ideas,

even after clear the cache why ez debug shows , var directory as the default one(not the custom var dir that i have in global override/site.ini)

Any ideas.?

André R.

Wednesday 15 December 2010 12:30:34 am

Basically the dir is saved in some cases, one of them is ezimage and probably ezfile datatypes, so if you want to change VarDir on an existing site, then you need to do some sql magic as well to update existing paths.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Romeo Antony

Wednesday 15 December 2010 12:36:29 am

Thank you for your reply Andre.

I am trying to load a var direcotry , (backup , contain lot of images and files) from existing site.

But, existing images and files is not been picked up. But the images and files I have added right after changing the var directory is exactly picked up.

Any work around to change the sql , to pick the path of images and files , of existing var directory.

most of the images and files been used by ezfile and ezimage datatype. So that means it is stored in the db some cases. So I should change the path in sql file.

It is very hard to find out all exiting path and change to custom var directory path.

Any easy workaround.

I think , if I have extsing ezp var directory is

var/mysite

, then copy the var/mysite into a new site to its var dir located in

var/mysite_new

It will not work in some cases, like images and files used by ezfile and ezimage datatype. Isn't.

Any ideas to get it back

Romeo Antony

Wednesday 15 December 2010 4:30:35 am

Thanks a lot Andre. I got it .

in ezcontentobject_attribute table ,all the objects that published with images and files placed.

In each record I have found (fifth column) location of var dir where that images and files present.

So I have to change the dir to my var dir localtion and also need to copy the storage to custom var directory.

Regards

ROmeo

André R.

Wednesday 15 December 2010 5:59:55 am

Correct.

Didn't answer your prev reply as it wasn't clear what you asked for and what was statements (use "?" after questions to avoid confusion ;) ), so glad you found it.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.