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