Edit: @wolfflow previous page title was breaking D.O. FP:
Fatal error: Unsupported operand types in /home/sitemedia/public/html/includes/common.inc on line 1445
I started getting the error after I transferred my site to my web host. I only get it when I go admin/build/menus and try to open primary links or a menu I created by myself.
The line 1445 in the commin.inc files goes:
$options += array(
'attributes' => array(),
'html' => FALSE,
);
If I comment it out I get the same error but different line number. The code goes:
$options += array(
'fragment' => '',
'query' => '',
'absolute' => FALSE,
'alias' => FALSE,
'prefix' => ''
);
If I comment this one out as well, I stop receiving the fatal error. However, I'm not sure what these codes do, so I guess I can't just comment them out.
I would really appreciated if someone who knows enough about php and Drupal could help me here. In my own computer, where I don't have this problem at all, I'm using Apache/2.2.6 (Win32) mod_ssl/2.2.6 OpenSSL/0.9.8g PHP/5.2.5
My webhost has php 5.2.6, and Apache/2.0.59 (Unix).
Thanks in advance.
Comments
Same here, the problem is
Same here, the problem is with the "+" operand, you should use "array_merge" instead:
BTW, this issue is happening
BTW, this issue is happening to me in system.module, line #635, I think several modules and themes will rise this error. I'm running in 5.2.6 also (Mosso.com)
Thanks! I'll test that. Am I
Thanks! I'll test that. Am I wrong if I say that this seems to be a Drupal core issue..?
--
http://www.sitemedia.fi
http://webgallup.com
Combination bug
It might be a combination of modules causing this. We enabled search404 and it was working fine until (I think) a D6.6 upgrade.
debug_print_stacktrace()suggests it's happening when the site is trying to build breadcrumbs and confirm the active breadcrumb.In some situations
l()receives a NULL as its third parameter, and "+=" can't cope with that. Usingarray_merge()is better but still generates a warning. Suggest instead inserting a line into common.inc at around 1444:--
J-P Stacey, software gardener, Magnetic Phield
Similar solution here:
Similar solution here: http://drupal.org/node/308437
--
J-P Stacey, software gardener, Magnetic Phield
Fantastico
I have gotten the same error after I installed by using Fantastico from my web host. It set up all the database tables collation to latin1_swedish, instead of utf8_general I need. After I entered Unicode characters, I just kept getting a lot of errors including the one you've mentioned. I am not sure how to change all my tables to utf8_general, so what I did was to install it again by using the install script included in the Drupal package instead of Fantastico, and set up my database to collation utf8_general.
url() function parameters changed between drupal versions
for the url() function (http://api.drupal.org/api/function/url), the parameters have changed between drupal versions.
i was looking at the old one which had options not in an array but just in the function parameters.
the new one puts the options in one associative array in the second parameter of the function.
so the error generates when you try to merge the array with non-array.