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.

eZ debug

Timing: Jan 30 2025 19:52:07
Script start
Timing: Jan 30 2025 19:52:07
Module start 'layout'
Timing: Jan 30 2025 19:52:07
Module start 'content'
Timing: Jan 30 2025 19:52:07
Module end 'content'
Timing: Jan 30 2025 19:52:07
Script end

Main resources:

Total runtime0.0256 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 588.2656151.2266
Module start 'layout' 0.00610.0055 739.4922220.7266
Module start 'content' 0.01150.0124 960.21881,005.8516
Module end 'content' 0.02400.0016 1,966.070337.9766
Script end 0.0256  2,004.0469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002810.7953140.0002
Check MTime0.00114.2647140.0001
Mysql Total
Database connection0.00072.835710.0007
Mysqli_queries0.004718.277430.0016
Looping result0.00000.074510.0000
Template Total0.00114.410.0011
Template load0.00093.357910.0009
Template processing0.00031.062210.0003
Override
Cache load0.00062.213810.0006
General
dbfile0.00031.096780.0000
String conversion0.00000.040040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs