Forums / Developer / (eZ 3.5.1) HELP - hideous show-stopper image alias bug

(eZ 3.5.1) HELP - hideous show-stopper image alias bug

Author Message

Craig Hirsch

Wednesday 06 April 2005 11:14:15 pm

I am aware of the bug filed for this issue at

http://www.ez.no/community/bugs/call_to_undefined_function_storedata

but I am having a more severe problem. I am working with a brand-new install of 3.5.1 on Win/Apache(latest)/PHP(latest). When I turn on template compile for my user site, I get the dreaded error that has been noted in the bug report:

Fatal error: Call to undefined function: storedata() in c:\appserv\www\cms\ezpublish\kernel\classes\datatypes\ezimage\ezimagealiashandler.php on line 1203
Fatal error: eZ publish did not finish its request

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

The strange thing is that this has nothing to do with any of my template code. I can modify my user site's pagelayout.tpl to nothing more than "hello world" and I still get this error. I can also remove all custom image aliases from my image.ini.append and still get this error.

Please help, this is driving me crazy! Using var_dump at line 1203 ezimagealiashandler.php (in the storeDOMTree function), I can see that the failure is at the VERY FIRST run of this function. What makes the FIRST call to this function, and for which image alias?

Below I enclose the entire output of eZ when template compile is enabled, my site's homepage url is loaded with pagelayout.tpl set to "hello world," and var_dump($contentObjectAttribute) is inserted before $contentObjectAttribute->storeData(); in ezimagealiashandler.php.

Suggestions as to how to troubleshoot and fix are most appreciated. Thank you!

--
chirsch{AT}gmail{d.t}com

Ɓukasz Serwatka

Thursday 07 April 2005 2:53:20 am

Hi Craig,

Try manualy delete all cache files under var/cache and var/(prefix)/cache be cerful and don`t delete storage dir.

This should help.

Try also change to change the template code from:

{$node.object.data_map.image.content[original].url}

into

{$node.data_map.image.content[original].url}

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Craig Hirsch

Thursday 07 April 2005 4:33:09 am

The thing is, this seems to be happening without any of my template code even being processed. The error happens seemingly very early in script execution.

I'm also not using the following anywhere, that I can tell:

{$node.object.data_map.image.content[original].url}

Unless this is present in eZ's default Standard design?

Also, I've tried clearing the cache manually many times, with no result. Any further ideas?

--
chirsch{AT}gmail{d.t}com

Craig Hirsch

Thursday 07 April 2005 4:36:20 am

Also, in my testing I've changed the entire contents of my pagelayout.tpl template to "hello world," and I still get this error when template compile is on. Doesn't this rule out the problem being with any of my created templates?

--
chirsch{AT}gmail{d.t}com

Craig Hirsch

Thursday 07 April 2005 4:42:17 am

I've looked further and

{$node.object.data_map.image.content[original].url}

is present nowhere in my design directory. Also, clearing my cache manually as you suggest does not help.

I think what I am seeing is related to, but not the same as, the problem other people have experienced. Any thoughts as to how this error could be occurring given all of this?

Thanks,
--Craig

--
chirsch{AT}gmail{d.t}com

Lex 007

Friday 22 April 2005 5:54:10 am

I've got the same problem, did you fix it ?

thx

EDIT : nevermind, for me {$node.data_map.image.content[original].url} worked

eZ debug

Timing: Jan 20 2025 01:02:26
Script start
Timing: Jan 20 2025 01:02:26
Module start 'content'
Timing: Jan 20 2025 01:02:27
Module end 'content'
Timing: Jan 20 2025 01:02:28
Script end

Main resources:

Total runtime1.2896 sec
Peak memory usage4,096.0000 KB
Database Queries205

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 589.1016180.8125
Module start 'content' 0.00561.1575 769.9141630.5313
Module end 'content' 1.16300.1265 1,400.4453341.0547
Script end 1.2895  1,741.5000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.3528210.0002
Check MTime0.00160.1221210.0001
Mysql Total
Database connection0.00070.053510.0007
Mysqli_queries1.200093.05232050.0059
Looping result0.00220.16792030.0000
Template Total1.260697.820.6303
Template load0.00200.151920.0010
Template processing1.258697.601920.6293
Template load and register function0.00040.027310.0004
states
state_id_array0.00150.115110.0015
state_identifier_array0.00160.124620.0008
Override
Cache load0.00170.1288440.0000
Sytem overhead
Fetch class attribute can translate value0.00120.093940.0003
Fetch class attribute name0.00100.079990.0001
XML
Image XML parsing0.00450.345340.0011
class_abstraction
Instantiating content class attribute0.00000.0018120.0000
General
dbfile0.00830.6440410.0002
String conversion0.00000.000430.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
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs