Forums / Developer / Changing the default var directory not picked .

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

eZ debug

Timing: Jan 18 2025 02:49:54
Script start
Timing: Jan 18 2025 02:49:54
Module start 'content'
Timing: Jan 18 2025 02:49:55
Module end 'content'
Timing: Jan 18 2025 02:49:55
Script end

Main resources:

Total runtime0.7652 sec
Peak memory usage4,096.0000 KB
Database Queries200

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 588.9609180.8203
Module start 'content' 0.00610.6312 769.7813576.6719
Module end 'content' 0.63730.1278 1,346.4531341.3672
Script end 0.7651  1,687.8203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.5482210.0002
Check MTime0.00160.2028210.0001
Mysql Total
Database connection0.00070.097210.0007
Mysqli_queries0.687489.83402000.0034
Looping result0.00230.30431980.0000
Template Total0.735896.220.3679
Template load0.00220.285420.0011
Template processing0.733695.875420.3668
Template load and register function0.00010.014410.0001
states
state_id_array0.00090.112510.0009
state_identifier_array0.00110.144720.0006
Override
Cache load0.00170.2262500.0000
Sytem overhead
Fetch class attribute can translate value0.00170.225930.0006
Fetch class attribute name0.00130.165370.0002
XML
Image XML parsing0.00110.138230.0004
class_abstraction
Instantiating content class attribute0.00000.0023100.0000
General
dbfile0.00240.3133340.0001
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs