error when inserting an image in the xml block

Author Message

Jacks JNK

Wednesday 21 January 2009 6:09:03 am

Hi,

I have a problem when I inserted a picture in my XML block , in fact, if I add an existing object there is no problem, but if I add a new object, specifically a picture, I have this error :

Fatal error: Call to a member function insertSimpleString() on a non-object in /var/www/mysite/deve/kernel/classes/ezcontentupload.php on line 675
Fatal error: eZ Publish did not finish its request

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

my debug is desabled

Skype : jacks_ngala

Ɓukasz Serwatka

Monday 26 January 2009 12:28:42 am

Hi,

I'm suspecting some inconsistency. You can track this issue by injecting PHP function debug_print_backtrace() and analyze the output step-by-step.

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

Fabio Piovesan

Monday 07 September 2009 7:06:40 am

Hi,

I've the same problem with eZ 4.1.3:

I know that isn't a bug because ez is in Multisite configuration and I haven't troubles with others admin's sites, but I'm unable to find what's the difference that causes issues. When I enable debug the only relevant errors that I can find are:

[ Sep 07 2009 15:58:02 ] [88.37.114.218] Timing Point: Module start 'content'
[ Sep 07 2009 15:58:02 ] [88.37.114.218] PHP: E_NOTICE:
Undefined variable: objectName in /my_path_to_website/kernel/content/upload.php on line 78
[ Sep 07 2009 15:58:02 ] [88.37.114.218] eZContentUpload::detectLocations:
Matched assignment for upload :'image;media/images'
[ Sep 07 2009 15:58:02 ] [88.37.114.218] PHP: E_NOTICE:
Undefined index: name in /my_path_to_website/kernel/classes/ezcontentupload.php on line 670

Does anyone know how to fix this?

Thanks.

Franck Grenier

Thursday 26 August 2010 7:02:10 am

Hello,

the post is a bit old but the solution is quite tricky.

I had the same error on image upload through the RTE, in XML bloc, because I changed the identifier of the 'Title' attribute in the image class.

By default, it must be 'name'. You can change this setting in upload.ini or set the identifier back to 'name'.

Developer at Open Wide

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 18 2025 10:32:48
Script start
Timing: Jan 18 2025 10:32:48
Module start 'layout'
Timing: Jan 18 2025 10:32:48
Module start 'content'
Timing: Jan 18 2025 10:32:49
Module end 'content'
Timing: Jan 18 2025 10:32:49
Script end

Main resources:

Total runtime0.9000 sec
Peak memory usage4,096.0000 KB
Database Queries64

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 588.0469152.6406
Module start 'layout' 0.00610.0054 740.687539.4766
Module start 'content' 0.01150.8869 780.1641624.6406
Module end 'content' 0.89840.0015 1,404.804712.1250
Script end 0.8999  1,416.9297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4037160.0002
Check MTime0.00160.1747160.0001
Mysql Total
Database connection0.00100.110610.0010
Mysqli_queries0.839393.2547640.0131
Looping result0.00070.0822620.0000
Template Total0.861395.720.4306
Template load0.00250.279020.0013
Template processing0.858795.417720.4294
Template load and register function0.00010.016510.0001
states
state_id_array0.00160.180510.0016
state_identifier_array0.00150.172220.0008
Override
Cache load0.00220.2424300.0001
Sytem overhead
Fetch class attribute can translate value0.00080.084640.0002
Fetch class attribute name0.00190.215860.0003
XML
Image XML parsing0.00310.344840.0008
class_abstraction
Instantiating content class attribute0.00000.001260.0000
General
dbfile0.00250.2827240.0001
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
2content/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
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs