common.inc file brings up unsupported operand types fatal error

fuquam - October 3, 2009 - 23:01

Most things are working fine after upgrading from D5 to D6 but a few pages are giving me this error

Fatal error: Unsupported operand types in /home3/site/public_html/includes/common.inc on line 1582

I've seen a few posts from D5 but nothing recent and nothing with the same line. Any thoughts?
Thanks.

I'm also having the same

Macarro - October 15, 2009 - 09:04

I'm also having the same problem. It seems to be caused by different problems. For example when I use a non-existent URL instead of Error 404 page I get fatal error in line 1582.

...help Drupal grow, whatever you do matters.

Unsupported operand types in /includes/common.inc on line 1582

schichtarbeiter - October 17, 2009 - 08:46

Hello,
I am having the same issue here, but not after an update. I am just using Drupal 6.

Fatal error: Unsupported operand types in *myserver*/includes/common.inc on line 1582

It happens while using the nodecomment module. When I drop the node-comment.tpl.php into the theme folder or any other node-mytype.tpl.php file, there's that error, when I try surf to any node. When I delete those node-mytype.tpl.php files from the theme folder again, the error is no more...

are you guys also using the nodecomment module?

rgds,

Recent Blocks

WildBill - October 17, 2009 - 12:48

Hi guys - my site was running fine in D6 until I installed the Recent Blocks module and activated one of the blocks. Then I suddenly got the same error you're listing above. Connected?

I'm not using the recent

fuquam - October 19, 2009 - 15:05

I'm not using the recent blocks module or the node comments module. This problem happens when I try to go to a "page" that was created when the site was on D5. Other pages work fine.

I'm not using the recent

fuquam - October 19, 2009 - 16:42

I'm not using the recent blocks module or the node comments module. This problem happens when I try to go to a "page" that was created when the site was on D5. Other pages work fine.

I just tried recreating the

fuquam - October 19, 2009 - 17:05

I just tried recreating the page that gives me the error. It was a "book" page. I deleted it and tried recreating it but the error is still there.

same problem. I get the

oppie - October 19, 2009 - 15:24

same problem. I get the message when previewing a node, in which I added a freefield tag. Saving the node gives no problem, but when previewing I get this error???

Web Developer at Dutch Open Projects

Which Version

schichtarbeiter - October 20, 2009 - 09:46

So let's see which version of Drupal we use, for me seems that it is a problem connected to the way the core handles certain modules...

I use Drupal core 6.14

PS. here's somebody else that had that problem with a RC og Drupal 6: http://drupal.org/node/607286 (Any pro has an idea?)

core 6.14. The bit of code

fuquam - October 20, 2009 - 22:35

core 6.14. The bit of code the error refers to deals with the link structure. I'm guessing that when I upgraded from D5 to D6 some link alias got messed up somehow

1572    * @return
1573     *   an HTML string containing a link to the given path.
1574     */
1575    function l($text, $path, $options = array()) {
1576      global $language;
1577
1578      // Merge in defaults.
1579      $options += array(
1580          'attributes' => array(),
1581          'html' => FALSE,
1582       );

I found this which might help. http://justinhileman.info/articles/unsupported-operand-types-in-drupal-6x

Same Error: was caused by /Menu Icons/ module.

paljsingh - November 5, 2009 - 22:14

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

I'm using drupal 6.14, and recently installed menu-icons-6.x.2-0, and got the same error (only when accessing the homepage of my site, all other pager appeared fine.)
Disabling the menu-icons module restored everything back to normal.

-Jitender Pal Singh.

Did you disable and uninstall

fuquam - November 5, 2009 - 23:12

Did you disable and uninstall the menu icons module? Make sure its wiped from your database and then reinstall it. I know the menu icons module works fine because I use it. I think the error is caused by the module path getting screwed up in the database. Make sure all system modules are in the /modules directory and other modules are in the /sites/all/modules directory. If the error comes up check the path in the database. I got rid of that error after removing all non system modules and reinstalling them. Really I just needed to check the path to in the DB.

 
 

Drupal is a registered trademark of Dries Buytaert.