Forums / Developer / Error in ezimagealiashandler.php on line 947

Error in ezimagealiashandler.php on line 947

Author Message

Pascal France

Wednesday 10 May 2006 11:24:09 am

Hi,

I use eZP 3.7.5 and when a user try to add an image in a gallery, after having clicked the "Send for publish" button, I get this error:

<b>Fatal error: Call to a member function on a non-object in /usr/local/www/ez_test3.7.5/kernel/classes/datatypes/ezimage/ezimagealiashandler.php on line 947
Fatal error: eZ publish did not finish its request

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

Warning: Invalid argument supplied for foreach() in /usr/local/www/ez_test3.7.5/kernel/common/eztemplatedesignresource.php on line 817

Notice: Undefined variable: matchFileArray in /usr/local/www/ez_test3.7.5/kernel/common/eztemplatedesignresource.php on line 896

Warning: array_keys(): The first argument should be an array in /usr/local/www/ez_test3.7.5/kernel/common/eztemplatedesignresource.php on line 484

Warning: Invalid argument supplied for foreach() in /usr/local/www/ez_test3.7.5/kernel/common/eztemplatedesignresource.php on line 484

Warning: Invalid argument supplied for foreach() in /usr/local/www/ez_test3.7.5/kernel/common/eztemplatedesignresource.php on line 817

Notice: Undefined variable: matchFileArray in /usr/local/www/ez_test3.7.5/kernel/common/eztemplatedesignresource.php on line 896</b>

I get this too:

Timing:  	May 10 2006 20:13:53

Module start 'content'

Warning: ezi18n 	May 10 2006 20:13:53

No translation for file(translation.ts) in context(lib/template): 'The maximum nesting level of 40 has been reached.
The execution is stopped to avoid infinite recursion.' with comment()

Error: eZDebug::writeFile 	May 10 2006 20:13:53

Cannot open log file 'var/log/warning.log' for writing
The web server must be allowed to modify the file.
File logging for 'var/log/warning.log' is disabled.

Error: eZDebug::writeFile 	May 10 2006 20:13:53

Cannot open log file 'var/log/error.log' for writing
The web server must be allowed to modify the file.
File logging for 'var/log/error.log' is disabled.

Error: eZINI 	May 10 2006 20:13:53

Undefined group: 'ExtensionSettings'

Error: eZINI 	May 10 2006 20:13:53

Undefined group: 'ExtensionSettings'

Error: 	May 10 2006 20:13:53

Could not open file 'var/plain/cache/override/override_1663624609.php' for writing, perhaps wrong permissions

Error: eZPHPCreator::store 	May 10 2006 20:13:53

Failed to open file 'var/plain/cache/override/override_1663624609.php'

Error: eZTemplateDesignResource::createOverrideCache 	May 10 2006 20:13:53

Could not write template override cache file, check permissions in var/plain/cache/override/.
Running eZ publish without this cache will have a performance impact.

Error: eZINI 	May 10 2006 20:13:53

Undefined group: 'ExtensionSettings'

Warning: eZTemplate 	May 10 2006 20:13:53

No template could be loaded for "setup/debug_toolbar.tpl" using resource "design"

But I set the permissions of all eZP files with the "User" and "Group" directive values of my apache2.conf.
How is it possible some files can't be accessed or opened ?

This error didn't exist in 3.7.2

Regards

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Pascal France

Wednesday 10 May 2006 11:48:08 am

Hi,

I tried to replace the 3.7.5 ezimagealiashandler.php file by the 3.7.2 ezimagealiashandler.php and it works fine.

But the first file weighs 72,499 Ko while the second weighs only 67,723 Ko so I don't think it's a nice thing to replace the file.

Regards

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Kristof Coomans

Wednesday 10 May 2006 11:09:45 pm

Hi Pascal

Maybe it's related to this bug: http://ez.no/community/bugs/fatal_error_ezimagealiashandler_php

Do you get the same error on all images?

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Pascal France

Thursday 11 May 2006 12:24:02 am

Hi Kristof,

Yes, it's the same bug.
I can upload .gif and .png images but not .jpg images.

I'm running Debian, PHP 4.4.2 and as I told, all works fine with the 3.7.2 ezimagealiashandler.php file.

Has this bug been fixed in 3.7.6 or 3.8 ?

Cordially

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Pascal France

Thursday 11 May 2006 11:43:54 pm

Hi,

Can I have some informations about this problem ?

I tried both 3.7.5 ezimagealiashandler.php file and 3.7.6 (downloaded in pubsvn) without success.

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Kristof Coomans

Friday 12 May 2006 12:17:15 am

The bug has been reopened because other people still had the same problem. So it's not fully fixed yet.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Łukasz Serwatka

Friday 12 May 2006 12:26:22 am

@Pascal:
Could you provide image which you try to upload? It could help track the issue, you can fill up new bug and example that attached file is related to and generates error. Also phpinfo dump.

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

Pascal France

Friday 12 May 2006 2:07:51 am

Hi Lukasz,

I've never filled up a bug niether reopened one.
And what do do you mean by "phpinfo dump" ? Should I found somewhere a dump file ?

You can fing my .jpg images here:
http://www.linuxorable.net/temp/image/

I don't know if this can help you, but I have a from scratch 3.7.5 installation I use to do tests and you can do all tests you need here:

http://www.linuxorable.net/ez_test3.7.5/index.php/plain/test_gallery

The debug output is set and anonymous users can upload images.

Cordially

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

André R.

Friday 12 May 2006 3:19:09 am

pascal, this is php info:

http://no2.php.net/manual/en/function.phpinfo.php

they probably want to take a look on how your php setup is.

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

Pascal France

Friday 12 May 2006 3:51:24 am

Hi André,

Ok. But can I plublish here the output of phpinfo() ? Isn't it unsafe ?

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

eZ debug

Timing: Jan 19 2025 01:06:48
Script start
Timing: Jan 19 2025 01:06:48
Module start 'content'
Timing: Jan 19 2025 01:06:49
Module end 'content'
Timing: Jan 19 2025 01:06:49
Script end

Main resources:

Total runtime0.9167 sec
Peak memory usage4,096.0000 KB
Database Queries219

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0080 590.2031180.8125
Module start 'content' 0.00800.7584 771.0156726.6953
Module end 'content' 0.76640.1502 1,497.7109348.4297
Script end 0.9166  1,846.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00470.5145210.0002
Check MTime0.00180.2011210.0001
Mysql Total
Database connection0.00170.185010.0017
Mysqli_queries0.811088.47042190.0037
Looping result0.00250.27182170.0000
Template Total0.876895.620.4384
Template load0.00220.244020.0011
Template processing0.874595.398820.4373
Template load and register function0.00030.029810.0003
states
state_id_array0.00100.106110.0010
state_identifier_array0.00140.152520.0007
Override
Cache load0.00200.2216720.0000
Sytem overhead
Fetch class attribute can translate value0.00170.190550.0003
Fetch class attribute name0.00100.1095130.0001
XML
Image XML parsing0.00200.218150.0004
class_abstraction
Instantiating content class attribute0.00000.0029140.0000
General
dbfile0.00780.8532420.0002
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
10content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
15content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 38
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs