Commet Error Warning

andrefadyl's picture
andrefadyl
Thu, 11/19/2015 - 03:43
#1
Commet Error Warning

Everytime I run Cron.

There is an error on Comment 

  • Notice: Undefined variable: key in comment_prepare_thread() (line 901 of /home/domain/public_html/beta/modules/comment/comment.module).

  • Warning: Creating default object from empty value in comment_prepare_thread() (line 901 of /home/domain/public_html/beta/modules/comment/comment.module).

I tried deleting all sample comments and updating core. The error is still there. Please help how to fix it. Thanks.


Best Regards, 

Andre 

phuonght's picture
phuonght
Thu, 11/19/2015 - 05:54

Hi,

We will check and reply ASAP :)

phuonght's picture
phuonght
Thu, 11/19/2015 - 21:33

Could you send uss your site url, admin account and FTP account? We would like to have a check on your site. 

Please remember to check "Private message" for security reason.

antoniodltm's picture
antoniodltm
Tue, 05/24/2016 - 11:40

In your database:

SELECT * FROM `comment` WHERE uid NOT IN (SELECT uid FROM users)

"If you are having this error because it cant find the user accounts in the UID column then you can (a) delete the comment(s) or (b) keep them and just update them to point at a valid User Profile."

UPDATE `comment` SET uid = 0 WHERE uid NOT IN (SELECT uid FROM users)

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.