I used plupload to upload a few photos to my first gallery. The descriptions all had ".jpg" at the end, so I deleted them. When I hit Save, I got the first attached screenshot, reading thusly:

An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?id=99&op=do StatusText: Service unavailable (with message) ResponseText:

I get the same thing if I only change a single photo, if I do a different kind of change like a rotation, or anything.

The error page it links to is completely unhelpful; see the second attached screenshot.

The error log on the server knows nothing of any of this.

What's going on?

Comments

lanny heidbreder’s picture

Version: 7.x-1.0-beta3 » 7.x-1.x-dev

This happens on the latest dev version as well.

lanny heidbreder’s picture

Title: Saving any changes on "Manage Items" page fails with HTTP 500 error » Conflict with Node Gallery module? Possibly more
Project: Node Gallery » Weight
Version: 7.x-1.x-dev » 7.x-2.0

I couldn't even edit the titles of the Gallery Item nodes if I went to individual ones. But I did finally look at Drupal's log, where every time I had tried to change a Gallery Item node, I got this error:

> PDOException: SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'weight' at row 1: INSERT INTO {weight_weights} (entity_id, entity_type, weight) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array ( [:db_insert_placeholder_0] => 493 [:db_insert_placeholder_1] => node [:db_insert_placeholder_2] => ) in _weight_set_weight() (line 434 of /var/www/vhosts/whiteriver/httpdocs/sites/all/modules/weight/weight.module).

So, it was a conflict with the Weight module. I went to both of Node Gallery's content types and resaved their settings. This convinced them that Weight was indeed turned off on both of them, and now everything works swimmingly.

Moving this to Weight's queue. Perhaps this happens with any module that adds content types without the user visiting the Content Type settings screen?

davisben’s picture

This looks like the same error from #1922808: Incorrect integer value: '' for column 'weight' at row 1. Could you try the latest 7.x-2.x?

lanny heidbreder’s picture

Well, the first time I fixed this problem I didn't need to, but when I took the new content type live it happened again and the old fix didn't work. Upgrading to 7.x-2.x-dev did work. Thanks!

lanny heidbreder’s picture

Status: Active » Closed (fixed)