On Drupal 6.x (HEAD), with a PosgreSQL install, PHP 5.2, Apache 2

Tried to run all of the available tests - after much churning fails with a WSOD with the message:

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

This is function url, and I've seen this before when calling url() or l() with options that are either not set or are not an array().

Note - this may be because I don't have the image module installed.

When I re-load the page, the following dsm messages appear:


    * !SimpleTest test node! simpletest_yphkKzeulI has been deleted.
    * simpletest_OYAY has been deleted.
    * simpletest_QSrxMOGi has been deleted.
    * simpletest_sLYM has been deleted.
    * simpletest_FcUp has been deleted.
    * The directory files/pictures has been created.
    * simpletest_YEnK has been deleted.
    * simpletest_S8MC has been deleted.
    * simpletest_C_GC has been deleted.
    * The directory files/images has been created.
    * The directory files/images/temp has been created.
CommentFileSizeAuthor
#3 image_module.test_.patch594 bytesdrunken monkey
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drunken monkey’s picture

I got the same error (although it was line 1229, still the first instruction in url()), with the same Drupal, PHP and Apache versions, and MySQL 5.0.
At my system, the image module is installed, though.

drunken monkey’s picture

The source seems to be the image module test. In the HEAD version of "tests/image_module.test" is the following in line 96:

"$this->drupalGet(url("node/$node->nid", NULL, NULL, TRUE));"

After fixing this, the tests ran smoothly.

drunken monkey’s picture

Status: Active » Reviewed & tested by the community
FileSize
594 bytes

OK, I made a patch out of the above fix.
Please apply.

Rok Žlender’s picture

Status: Reviewed & tested by the community » Fixed

Committed thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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