I recently upgraded my D5 installation to D6. The integration has gone well and Gallery is working. All of the images display, the theme is integrated, and I can access/modify all of the settings. The one problem I have is when trying to add or edit a node (whether or not a Gallery image is involved is irrelevant).

When adding/editing any node type, Drupal crashes and presents this message:

Fatal error: Unsupported operand types in /home//public_html/includes/common.inc on line 1265

This same error occurs when I attempt to edit an input format as well.

I have isolated this to Gallery. When I disable the Gallery module, node functionality returns.

Versions:

* Gallery2.3s nightly build from February 14th
* Gallery 6.x-1.x-dev (2008-Feb-19)
* Drupal 6.0

Thanks for any insight you can provide.

CommentFileSizeAuthor
#9 gallery_url_bug.patch1.02 KBkiz_0987
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

profix898’s picture

I just tried on my dev install and adding/editing nodes works fine for me. Do you have any additional modules installed? Does it make any difference if you disable GalleryMenu and/or URL Rewrite?

ja_ro_no’s picture

I tried the following:

1. Disable GalleryMenu - no impact on issue
2. Disable Gallery URL rewrite - no impact

profix898’s picture

Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

I still cant reproduce and nobody else reported this problem.

ja_ro_no’s picture

Is there any additional information I can give you or something I can try? I've looked at common.inc but not being a developer don't know what to make of it. Any assistance is appreciated.

seeayegee’s picture

"I've looked at common.inc but not being a developer don't know what to make of it."

I'm having the same problem with Gallery 2.3 & Drupal 6. That line in 'common.inc' is 'function url'. So something is calling that function incorrectly?

Disabling the Gallery modules fixes this problem for me also.

Anonymous’s picture

This happens when you add the gallery filter to any other filter ... same problem and can't remove the filter without going through the database. Blah.

Fatal error: Unsupported operand types in /var/www/includes/common.inc on line 1265

Anonymous’s picture

Priority: Normal » Critical
profix898’s picture

Status: Postponed (maintainer needs more info) » Fixed

Thanks for the pointer, boydjd! After enabling the G2 filter I was able to reproduce the problem. I simply missed to update a url() call to the new D6 syntax on the help page for G2 filter. Bugfix committed.

kiz_0987’s picture

Status: Fixed » Needs review
FileSize
1.02 KB

A similar Unsupported operand types error can be produced on install due to bad url args. Patch included to fix.

profix898’s picture

Status: Needs review » Fixed

Thanks. Hope, I didnt miss more of them ...

Anonymous’s picture

Status: Fixed » Closed (fixed)

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