I have a content type with an Image field, nothing out of the ordinary except it does have Unlimited values.

When I create a view, I set the filters to be "Node: Type = Photo album" and "Node: Published or admin". Sort is "Node: Post date desc". Existing field is: "Node: Title"

When I click the + button to add a new field, I select "Field" and then "Fields: field_photos"

When I click "Add" I get an error msg:
"An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: http://mysite.com/admin/structure/views/ajax/add-item/photos/default/field
StatusText: Internal Server Error"

Upgraded from the 12/17/2010 build to the 12/31/2010, and still get the same error.

CommentFileSizeAuthor
photos-view.png59.76 KBpuddyglum

Comments

puddyglum’s picture

If I refresh the page after I get the error message, the field shows up under Fields, but then I get a different error when it tries to Preview:

"An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /admin/structure/views/ajax/preview/photos?render=overlay
StatusText: Service unavailable (with message)
ResponseText: PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'field_data_field_thumbnail.entity_type' in 'field list': SELECT COUNT(*) AS expression
FROM
(SELECT node.title AS node_title, node.nid AS nid, node.language AS node_language, field_data_field_thumbnail.entity_id AS field_data_field_thumbnail_entity_id, field_data_field_thumbnail.entity_type AS field_data_field_thumbnail_entity_type, field_data_field_thumbnail.delta AS field_data_field_thumbnail_delta, field_data_field_thumbnail.language AS field_data_field_thumbnail_language, field_data_field_thumbnail.field_thumbnail_fid AS field_data_field_thumbnail_field_thumbnail_fid, field_data_field_thumbnail.field_thumbnail_alt AS field_data_field_thumbnail_field_thumbnail_alt, field_data_field_thumbnail.field_thumbnail_title AS field_data_field_thumbnail_field_thumbnail_title, field_data_field_thumbnail.revision_id AS field_data_field_thumbnail_revision_id, field_data_field_thumbnail.bundle AS field_data_field_thumbnail_bundle, node.created AS node_created, 1 AS expression
FROM
{node} node
LEFT JOIN {field_data_field_thumbnail} field_data_field_thumbnail ON node.nid = field_data_field_thumbnail.entity_id AND (field_data_field_thumbnail.entity_type = :views_join_condition_0 AND field_data_field_thumbnail.deleted = :views_join_condition_1)
WHERE (( (node.status = 1 OR (node.uid = 1 AND 1 <> 0 AND 1 = 1) OR 1 = 1) AND (node.type IN (:db_condition_placeholder_0)) ))) subquery; Array
(
[:db_condition_placeholder_0] => photo_album
[:views_join_condition_0] => node
[:views_join_condition_1] => 0
)
in views_plugin_pager->execute_count_query() (line 141 of /home/drupal/www/drupaldev/sites/all/modules/views/plugins/views_plugin_pager.inc)."

bojanz’s picture

Status: Active » Fixed

You need to use the latest version of D7 (RC4 or -dev) and the latest version of ctools (-dev, not alpha1)

puddyglum’s picture

Yep, that fixed it. Thanks bojanz!

Status: Fixed » Closed (fixed)
Issue tags: -field image 500 internal server error

Automatically closed -- issue fixed for 2 weeks with no activity.