Object of class stdClass could not be converted to string PHP Error

CompShack - April 8, 2008 - 05:17
Project:Related links
Version:5.x-2.1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I keep seeing this PHP error in my Recent log entries, do you know what is causing it? Thanks for your support.

Object of class stdClass could not be converted to string in /home/content/c/o/m/compshack/html/sites/all/modules/relatedlinks/relatedlinks.module on line 1134.

#1

mrothroc - April 10, 2008 - 04:25

I have the same issue. This error shows when I attempt to access the node the first time. Subsequent views don't show the error.

#2

berlinonline2 - May 2, 2008 - 13:54

I had exact the same issue. This error is php 5.2 specific. After changing line 1134 in relatedlinks.module with the code mentioned in the following comment http://drupal.org/node/133099#comment-536396 everthing works fine.

For the programmer of this module: Here are some more infos of the changes in php 5.2 http://drupal.org/node/98393
Hope this helps.

 
 

Drupal is a registered trademark of Dries Buytaert.