This also appears to be an issue in the l( ) function as someone else wrote but I do not have a custom theme. I am using Garland and receiving this issue with my first user only so far. (It may happen with any moderator.) I am using Diff and Revisions-Fu. If I turn off the other two I still receive this error. I am using the very latest (Oct-14) release. I'm relatively new to getting under the hood of Drupal so I'm not exactly sure how to go about finding this error.

Thanks
Gil

Comments

rdeboer’s picture

Hi Gil,
Can you please tell us a bit more about the conditions under which the error occurs, i.e. what are the clicks leading up to it?
Are you logged-in as admin or normal user etc...
What do you mean by "If I turn off the other two" ?
Thanks,
Rik

gwink’s picture

Hi Rik,

Thanks for the response. This occurs when I click the "revisions" tab only with the moderator user. I did do the fix that Steve suggested in http://drupal.org/node/497492. I changed the revisioning.module
As such:

(-) $themed_links[] = theme('menu_item_link', $link);
(+) $themed_links[] = l($link['title'], $link['href']);

I didn't think it was the same issue because I am using the Garland theme at the moment but apparently this change fixed the issue. Could this be a Drupal 6.14 issue?

What I meant by the other two is that I have turned off some of the other revisioning modules but that doesn't make a difference.

Thanks,

Gil

rdeboer’s picture

I'll look into it a bit more. Just wonder why this hasn't been reported before, i.e. is it my module or your set-up?
Rik

gwink’s picture

Apologies for the delay. I am not sure what the issue is but hopefully you can repeat and solve. :)

rdeboer’s picture

Hi Gil,
Is this still an issue or did you figure it out? Does it happen with Garland only?
Rik

finex’s picture

I'm having the same error using advanced profile kit module: when I access to the user profile page the webserver log prints:

PHP Fatal error:  Unsupported operand types in /var/www/mysite/includes/common.inc on line 1582
rdeboer’s picture

Status: Active » Postponed (maintainer needs more info)

Sorry guys, I've just spent a couple of hours reproducing this but can't.

To establish a common base-line can you please install the latest (i.e. December '09 at the time of writing) versions of both Module Grants and Revisioning. Then we can start debugging from there.
You don't have to enable the new Module Grants Monitor (bundled with Module Grants), nor do you have to enable Smart menus,Smart tabs.

I assume you were on core 6.14 when this happened to you? Let us know if you you switched to 6.15.

Gil, after you have upgraded, please indicate which version of Diff you are using when this happens (new versions of div and official have recently become available) and also whether the problem exists when Diff isn't enabled.

FiNex, the Advanced Profile Kit can operate in various configurations (e.g with Views, Panels etc.). I tried to reproduce your problem using:
o APK 6.x-1.0-beta2 (official release)
o CCK (official release, with minimum number of submodules enabled and uprofile.full.export loaded via the Import tab)
o Content Profile (official release 6.x-1.0-beta4)
Is this the setup you've used?

When I go to /user/uid for a user other than uid=1, I'm not getting your fatal error on line 1582, although I do get the browser hanging until eventually (in Firefox) it says: Firefox has detected that the server is redirecting the request for this address in a way that will never complete.. However, this seems to be an issue with APK and/or Content Profile, as it continues to happen when both Module Grants and Revisioning are uninstalled.

finex’s picture

Thanks RdeBoer for the ping... I've solved updating all the modules to the latests versions available of drupal core and modules and I've had to disable one module (icon menu if I remember well)... now all seems working :-)

rdeboer’s picture

Great FiNeX... I'm glad.
By the way, why did you have to disable this one (icon menu) module? Did it prevent something from working?

finex’s picture

@RdeBoer: I've read somewhere in the bug tracker that it could cause the error I've had ( http://drupal.org/node/621964#comment-2399894 ). I don't know if the problem was solved disabling that module or updating the others :-)

rdeboer’s picture

Status: Postponed (maintainer needs more info) » Fixed
msikkema’s picture

Status: Fixed » Active

I'm having the same error whit Firefox using advanced profile kit module: when I access to the user profile page the webserver log prints:

Fatal error: Unsupported operand types in /home/web-sites/sikkie.nl/www/includes/common.inc on line 1582

And in internet explorer its working normal.

rdeboer’s picture

See comment #7.... When you uninstall first Revisioning followed by Module Grants does the problem persist?
If so, then it should be logged against one of the other modules.

andraeray’s picture

I am also getting the same common.inc on line 1582 error.

I am using Advanced profile kit. The error comes in both IE and firefox whenever I type in a profile that does not exist.

For example typing it website.com/user/2 or website.com/user/12999.

Instead of 404 page not found, I get the common.inc error

Im using drupal 6.14

rdeboer’s picture

Title: Unsupported operand types in common.inc on line 1582 » Unsupported operand types in common.inc on line 1582, when used with Advanced Profile Kit
Version: 6.x-2.x-dev » 6.x-3.4

So Draez, are you saying that there's no problem as long as you don't try to go to non-existing profiles?
And are we talking Module Grants and Revisioning 6.x-3.4 ?

andraeray’s picture

Correct RdeBoer

Im not sure what module would cause this to happen, but i do have APK.

rdeboer’s picture

Status: Active » Closed (cannot reproduce)

Closing, no activity for 15 months. Versions quoted are no longer relevant.