(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

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 19 2025 04:26:03
Script start
Timing: Jan 19 2025 04:26:03
Module start 'layout'
Timing: Jan 19 2025 04:26:03
Module start 'content'
Timing: Jan 19 2025 04:26:04
Module end 'content'
Timing: Jan 19 2025 04:26:04
Script end

Main resources:

Total runtime0.9239 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 589.2891152.6406
Module start 'layout' 0.00610.0031 741.929739.4922
Module start 'content' 0.00920.9134 781.4219625.4375
Module end 'content' 0.92260.0013 1,406.859416.1250
Script end 0.9239  1,422.9844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3592160.0002
Check MTime0.00140.1469160.0001
Mysql Total
Database connection0.00060.067010.0006
Mysqli_queries0.855192.5494680.0126
Looping result0.00060.0662660.0000
Template Total0.889096.220.4445
Template load0.00220.233620.0011
Template processing0.886895.980920.4434
Template load and register function0.00010.012710.0001
states
state_id_array0.00080.081710.0008
state_identifier_array0.00190.206720.0010
Override
Cache load0.00190.2062440.0000
Sytem overhead
Fetch class attribute can translate value0.00080.089130.0003
Fetch class attribute name0.00110.118690.0001
XML
Image XML parsing0.00160.167830.0005
class_abstraction
Instantiating content class attribute0.00000.0023120.0000
General
dbfile0.00130.1460300.0000
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs