I will explain my situation. I was using abuse module, the previous version. I just upgraded to version 28-03-08, and now, if I try to remove posts using the "delete button" that is in every comment, I just receive the error:

Fatal error: Cannot use object of type stdClass as array in /.../drupal/sites/all/modules/abuse/abuse.module on line 369

The comment is deleted, but if it has some replies, only the coment is deleted (with the previous version of abuse module, all was ok, there was no error and we could delete the comment and all its replies at once, so Im sure that its something related to latest version of abuse module).

Thanks for your great work coder, this is a must have module.

CommentFileSizeAuthor
#3 abuse.module.255972.patch945 bytesjaydub

Comments

DNM-1’s picture

Title: Cannot remove post without using abuse module » error when deleting comments

I get this same issue

I get this when I try to delete a comment. It deletes the comment but gives this error instead of the confirm screen...

Fatal error: Cannot use object of type stdClass as array in /home/*/public_html/*/sites/all/modules/abuse/abuse.module on line 369

mods installed are:
Drupal 5.7
abuse 5.x-1.0-beta
CAPTCHA 5.x-3.1
Fivestar 5.x-1.12
Panels 5.x-2.0-beta3
Pathauto 5.x-2.2
Token 5.x-1.11
Update Status 5.x-2.2
User Stats 5.x-1.0-beta3
Views 5.x-1.6
Voting API 5.x-1.6

not sure which one might of caused it cause I just installed abuse last.

btmash’s picture

Assigned: Unassigned » btmash

I've not looked at the 5.x branch of abuse in a long time - I'll make some time for it this week to try and figure out what exactly what might be causing the issue.

jaydub’s picture

Status: Active » Needs review
StatusFileSize
new945 bytes

please try out this patch

unicorn84’s picture

Status: Needs review » Fixed

all ok now, thanks a lot jaydub.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

MGParisi’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)

Has this been implimented? Sorry to re-open, but is it in the dev version? is the dev version stable? If its stable, why dont we have a 1.0 version (no Beta). Only the first question matters!

Edit: I have upgraded to dev and then disabled this add on. I have been getting the "Validation error, please try again. If this error persists, please contact the site administrator". And no the module does not include the patch or the patch does not fix the delete a comment issue.

MGParisi’s picture

Status: Postponed (maintainer needs more info) » Reviewed & tested by the community

This patch has not been applied to the Dev Version of Abuse!

roychri’s picture

Status: Reviewed & tested by the community » Fixed

This patch has been commited to the DRUPAL-5 branch.

http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/abuse/abuse...

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

quiquee’s picture

The patch works, thanks!