Forums / Install & configuration / ezimagealiashandler and moving the var directory

ezimagealiashandler and moving the var directory

Author Message

Greg McAvoy-Jensen

Saturday 31 May 2008 9:49:21 am

I've upgraded a site from 3.9.4 to 3.10.0 to 4.0.0. I had a problem getting caches cleared in 4.0, as my main public site had VarDir=var/eznewsletter_site. We're not using the newsletter yet, so I decided to consolidate the var directories into one regular var. I've cleaned the tables so there's no reference to "eznewsletter_site/" in the database. You can see the images in the admin interface now.

However, the site hangs when trying to access a template with a line like:
{content_view_gui view=billboard content_object=$node.object.data_map.billboard.content}
or
<img src={$node.object.data_map.billboard.content.data_map.image.content[billboard].full_path|ezroot} />
or even
{$node.object.data_map.billboard.content.data_map.image|attribute(show,2)} (but not {$node.object.data_map.billboard.content.data_map|attribute(show,2)}).

What might I need to fix?

In case it helps, in settings/override/site.ini.append.php I'm using:
[URLTranslator]
TransformationGroup=urlalias_compat

Does that affect images?

Many thanks!

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

Greg McAvoy-Jensen

Saturday 31 May 2008 6:29:29 pm

UPDATE

The problem remains after I've reverted to the 3.10.0 working version of the var directory (with var and var/eznewsletter_site) and database (upgraded for 4.0.0). I've got VarDir=var/eznewsletter_site in settings/override/site.ini.append.php.

Suggestions on where to look for a fix?

No errors appear in the logs when it hangs (I've asked WebDeal for server and php logs).

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

Greg McAvoy-Jensen

Monday 02 June 2008 1:24:32 am

Another update:

I've tried yet again going all the way back to 3.9.4 to 3.10.0 first. It runs fine on 3.10.0. Going to 3.10.0 I did not run bin/php/updateniceurls.php, as it's recommended that we wait until 4.0.0. However, the 3.10.0 upgrade check for the database has concerns:

To synchronize your database with the distribution setup, run the following SQL commands:
ALTER TABLE ezurlalias_ml DROP INDEX ezurlalias_ml_act_org;
ALTER TABLE ezurlalias_ml ADD INDEX ezurlalias_ml_act_org ( action, is_original );
ALTER TABLE ezurlalias_ml DROP INDEX ezurlalias_ml_action;
ALTER TABLE ezurlalias_ml ADD INDEX ezurlalias_ml_action ( action, id, link );
ALTER TABLE ezurlalias_ml DROP INDEX ezurlalias_ml_par_act_id_lnk;
ALTER TABLE ezurlalias_ml ADD INDEX ezurlalias_ml_par_act_id_lnk ( parent, action, id, link );
ALTER TABLE ezurlalias_ml DROP INDEX ezurlalias_ml_par_lnk_txt;
ALTER TABLE ezurlalias_ml ADD INDEX ezurlalias_ml_par_lnk_txt ( parent, link, text );
ALTER TABLE ezurlalias_ml DROP INDEX ezurlalias_ml_par_txt;
ALTER TABLE ezurlalias_ml ADD INDEX ezurlalias_ml_par_txt ( parent, text );
ALTER TABLE ezurlalias_ml DROP INDEX ezurlalias_ml_text;
ALTER TABLE ezurlalias_ml ADD INDEX ezurlalias_ml_text ( text, id, link );
ALTER TABLE ezurlalias_ml DROP INDEX ezurlalias_ml_text_lang;
ALTER TABLE ezurlalias_ml ADD INDEX ezurlalias_ml_text_lang ( text, lang_mask, parent );

I tried leaving this to 4.0.0 to handle.

In 4.0.0, first tried omitting updateniceurls.php; but the site runs with the same problem (, but /user/login works fine):

Fatal error: eZ Publish did not finish its request

The execution of eZ Publish was abruptly ended, the debug output is present below.

I then ran updateniceurls.php, but the problem remains.

I'll next try running the queries 3.10.0 recommended, but I welcome your suggestions. I'm running in circles.

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

Greg McAvoy-Jensen

Monday 02 June 2008 6:54:19 am

I should have also noted: in moving from 3.9.4 to 3.10.0, the database upgrade script was edited to eliminate the "from 3.9.1" and "3.9.3" snippets. However, It still generated an error--key already exists in this line: ALTER table ezsearch_word ADD KEY ezsearch_word_obj_count(object_count);

I deleted the line from my copy of the script, dropped the tables of the database and restored it was it was before running the script, and ran it again (cleanly this time).

Any idea why I could get that error going from 3.9.4 to 3.10.0? Is it a bug? Could the key have been put there by eznewsletter? Could this be a component of my current problem (see prior posts)?

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

eZ debug

Timing: Jan 19 2025 06:04:27
Script start
Timing: Jan 19 2025 06:04:27
Module start 'content'
Timing: Jan 19 2025 06:04:28
Module end 'content'
Timing: Jan 19 2025 06:04:28
Script end

Main resources:

Total runtime0.8831 sec
Peak memory usage4,096.0000 KB
Database Queries195

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 590.3203180.8047
Module start 'content' 0.00640.7275 771.1250535.3984
Module end 'content' 0.73390.1491 1,306.5234340.7188
Script end 0.8831  1,647.2422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.4953210.0002
Check MTime0.00150.1648210.0001
Mysql Total
Database connection0.00080.086910.0008
Mysqli_queries0.774287.66381950.0040
Looping result0.00230.26021930.0000
Template Total0.843995.620.4219
Template load0.00240.271520.0012
Template processing0.841595.282820.4207
Template load and register function0.00020.025810.0002
states
state_id_array0.00150.171210.0015
state_identifier_array0.00160.179020.0008
Override
Cache load0.00200.2220390.0001
Sytem overhead
Fetch class attribute can translate value0.00100.112320.0005
Fetch class attribute name0.00110.119550.0002
XML
Image XML parsing0.00941.066820.0047
class_abstraction
Instantiating content class attribute0.00000.001980.0000
General
dbfile0.03013.4092290.0010
String conversion0.00000.000630.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs