I am getting the following when trying to upload a default picture (on a content type subject with the field field_picture):

admin/structure/types/manage/subject/fields/field_picture

I am getting the following. I used a picture which I successfully uploaded in a picture field. I just will not work as a default picture.

An AJAX HTTP request terminated abnormally.
Debugging information follows.
Path: /larsolesen_dk_build/file/ajax/field/settings/default_image/form-rYuyGg5GOyxRZspbZrO-D4RyubHkU6xsG1fbEcAOZ7k
StatusText: n/a
ResponseText: Fatal error: Cannot create references to/from string offsets nor overloaded objects in /home/lsolesen/workspace/larsolesen_dk_build/includes/common.inc on line 5939
Call Stack:
0.0002 72764 1. {main}() /home/lsolesen/workspace/larsolesen_dk_build/index.php:0
0.3325 16827128 2. menu_execute_active_handler() /home/lsolesen/workspace/larsolesen_dk_build/index.php:22
0.3351 16828220 3. call_user_func_array() /home/lsolesen/workspace/larsolesen_dk_build/includes/menu.inc:480
0.3352 16828824 4. file_ajax_upload() /home/lsolesen/workspace/larsolesen_dk_build/includes/menu.inc:0
0.3492 17404036 5. drupal_process_form() /home/lsolesen/workspace/larsolesen_dk_build/modules/file/file.module:261
0.4064 18843372 6. drupal_validate_form() /home/lsolesen/workspace/larsolesen_dk_build/includes/form.inc:751
0.4161 18854156 7. drupal_array_set_nested_value() /home/lsolesen/workspace/larsolesen_dk_build/includes/form.inc:1035
ReadyState: undefined

CommentFileSizeAuthor
#3 default.jpeg48.84 KBlsolesen

Comments

casey’s picture

Project: FieldEntity API » Drupal core
Version: » 7.x-dev
Component: Code » field system
montesq’s picture

Status: Active » Closed (cannot reproduce)

Dear lsolesen,

I've just tried to reproduce your issue with D7 HEAD, without any success.
Could you confirm it still fails on your side? Have you tried with another picture?
If yes, please give more details...

lsolesen’s picture

Title: Cannot upload default picture » Tried several pictures
Status: Closed (cannot reproduce) » Needs review
StatusFileSize
new48.84 KB

It still fails on my side. I tried several pictures. The attached picture was successfully uploaded as a image in the field, but not as a default image on the content type:

/admin/structure/types/manage/subject/fields/field_picture/field-settings

PHP 5.2.10-2ubuntu6.5 with Suhosin-Patch 0.9.7 (cli) (built: Sep 16 2010 20:04:48)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans

What additional info do you need?

moshe weitzman’s picture

Title: Tried several pictures » Cannot upload default Image (field api)
Status: Needs review » Active

' needs review' is only used when someone posts a patch that community should review.

Anonymous’s picture

Priority: Normal » Major

i can confirm this bug on a clean install of HEAD.

I get the following error:

An AJAX HTTP request terminated abnormally.
Debugging information follows.
Path: /file/ajax/field/settings/default_image/form-bfbFy609iwSSO5PXgJb11MXD6UCSX7ogUtWsvGz6G60
StatusText: n/a
ResponseText: Fatal error: Cannot create references to/from string offsets nor overloaded objects in /var/www/drupal/core/7/defaultimage/includes/common.inc on line 5969
ReadyState: undefined
swentel’s picture

Anonymous’s picture

Status: Active » Closed (duplicate)

yeah, they certainly seem the same, closing as duplicate. please reopen if it turns out to be different.