Forums / Developer / error when inserting an image in the xml block

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

eZ debug

Timing: Jan 18 2025 02:55:41
Script start
Timing: Jan 18 2025 02:55:41
Module start 'content'
Timing: Jan 18 2025 02:55:42
Module end 'content'
Timing: Jan 18 2025 02:55:42
Script end

Main resources:

Total runtime1.5708 sec
Peak memory usage4,096.0000 KB
Database Queries201

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 591.6953180.8125
Module start 'content' 0.00791.4266 772.5078629.7344
Module end 'content' 1.43450.1363 1,402.2422337.3672
Script end 1.5707  1,739.6094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.2521210.0002
Check MTime0.00140.0906210.0001
Mysql Total
Database connection0.00080.053010.0008
Mysqli_queries1.468393.47462010.0073
Looping result0.00190.12291990.0000
Template Total1.541398.120.7707
Template load0.00240.151420.0012
Template processing1.538997.970720.7695
Template load and register function0.00020.015310.0002
states
state_id_array0.00110.067010.0011
state_identifier_array0.00080.048920.0004
Override
Cache load0.00200.1271300.0001
Sytem overhead
Fetch class attribute can translate value0.00170.110850.0003
Fetch class attribute name0.00120.077060.0002
XML
Image XML parsing0.00440.278150.0009
class_abstraction
Instantiating content class attribute0.00000.000760.0000
General
dbfile0.02691.7113350.0008
String conversion0.00000.000630.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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