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

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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: Exponential did not finish its request

The execution of Exponential 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