Get error message after posting a comment

benkenney - March 3, 2008 - 23:08
Project:Comment Notify
Version:5.x-1.5
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

I get this error msg after posting a comment:

": Object of class stdClass could not be converted to string in /var/www/vhosts/thewatt.com/httpdocs/sites/all/modules/comment_notify/comment_notify.module on line 272."

The comment still gets posted. I guess I shouldn't be using dev.

#1

greggles - March 4, 2008 - 12:59
Status:active» active (needs more info)

I believe this was fixed in 5.x-1.4.

Which version is this? Please either use a 5.x-1.4 or include the $id: line from the top of the comment_notify.module when reporting the issue.

#2

benkenney - March 4, 2008 - 14:48

It's for Drupal 5.6, comment_notify v 5.x-1.x-dev (March 2008). I'm now using 5.x-1.4 and I don't get this error anymore.

#3

greggles - March 4, 2008 - 16:47
Status:active (needs more info)» closed

Great to hear that it's fixed now.

#4

romand - March 13, 2008 - 19:20
Version:5.x-1.x-dev» 5.x-1.5
Status:closed» active

Active on comment_notify-5.x-1.5, Drupal 5.7:
___
recoverable fatal error: Object of class stdClass could not be converted to string in /home/uadromco/public_html/sites/all/modules/comment_notify/comment_notify.module on line 279.
___

Update: comment_notify-5.x-1.4 work fine.

#5

greggles - March 13, 2008 - 22:20
Status:active» patch (code needs review)

This was a slightly different bug (I think) but quite similar.

Can you test the attached patch? I think it was a typo in the fix I made for #219677: Missing use of db_prefix

AttachmentSize
comment_notify-object_to_string_error-229574-5.patch981 bytes

#6

greggles - March 13, 2008 - 22:23

Just for the record, it was an accidental commit during fixing that other issue. Whoops.

#7

romand - March 16, 2008 - 11:13
Status:patch (code needs review)» patch (reviewed & tested by the community)

patch #5 from @greggles fix problem.
Thank you!

#8

greggles - March 19, 2008 - 02:26
Status:patch (reviewed & tested by the community)» fixed

Great - fixed and I'll roll a new release.

#9

Anonymous (not verified) - April 2, 2008 - 02:33
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.