Moderate form will not submit

interface907 - January 2, 2009 - 00:54
Project:abuse
Version:6.x-1.x-dev
Component:User interface
Category:support request
Priority:normal
Assigned:BTMash
Status:needs review
Description

None of the buttons on the moderate form are clickable for me. I am trying to review my first abuse reports and when I click on Allow, Remove or any of the buttons, nothing happens. I have tried in Firefox, IE, and Safari. It is the same in all of them. I have disabled the FCKEditor for that screen. I am running Drupal 6.2 and have the latest version of the abuse module, dated 2008-Nov-05. Am I missing something obvious?

#1

BTMash - January 12, 2009 - 18:37
Assigned to:Anonymous» BTMash
Status:active» postponed (maintainer needs more info)

I'm going to remove the jquery functionality to see what is going on. If that fixes it, then that might be the best solution for now...

#2

rmjiv - February 10, 2009 - 18:48

I have a similar problem. If I navigate off the form page I eventually get the 'Invalid user account - content cannot be allowed' error message. The content that was flagged was created by the Anonymous user (uid 0). I've traced my problem to this code block (lines 938-942 of abuse.module):

function _abuse_allow($type, $oid) {
  $object = _abuse_load($type, $oid);
  $account = user_load(array('uid' => $object->uid, 'status' => 1));
  if ($account->uid) {
    // Re-Save the node so it can get indexed if not already done so and any other important functionality is carried out by being published

The test of
  if ($account->uid)
fails since $account->uid is zero. Changing line 941 to:
  if ( ($account->uid) || ($account->uid === "0") ) {
seems to fix the problem. I'll see about rolling a patch as soon as I get a chance.

#3

rmjiv - February 11, 2009 - 17:54
Status:postponed (maintainer needs more info)» needs review

Patch attached

EDIT: don't use patch. Use patch in comment 4.

AttachmentSize
abuse-353314.patch 642 bytes

#4

rmjiv - February 11, 2009 - 17:53

Changed patch. Previous patch required status of anonymous user to be 1, which is not the expected value.

AttachmentSize
abuse-353314-4.patch 712 bytes

#5

meet.h.thakkar - March 12, 2009 - 19:42

I am still in problem ..I applied the patch manually by understanding the patch file ..Is it okay with patch ???

#6

Heilong - March 13, 2009 - 10:39

I'm facing the same problem. Applied the patch as described but not working.
Any ideas ?

#7

rmjiv - March 14, 2009 - 00:27

If you're not getting the error message that I described in comment #2, the patch isn't going to solve your problem. There is some other problem that the patch doesn't address.

If you are getting that error message and you applied the patch (and it applied correctly), then I don't know what the problem is. Are you getting any messages?

#8

Heilong - March 16, 2009 - 02:17

No error messages are displayed.

#9

meet.h.thakkar - March 17, 2009 - 13:54

same here no error are displayed ... if any one got the answer than please post it over here ... thank you in advance

#10

Neo-Alpha - March 20, 2009 - 09:45

Hi, did anyone found a solution for this problem? I am new to Drupal and i tried to review to code of the module, but i did not find the solution till now ...

#11

Heilong - May 8, 2009 - 09:04

Also need it in my project,
Did anyone found something ?
Thanks,

#12

ronni4453 - May 18, 2009 - 01:30

I was having the same issue where the links would not work and the form would not submit. The strange thing was, the issue only came up on production and not on local.

Temporary Fix:
/abuse/abuse.js

Line: 20

Replace:
url: Drupal.base_url + 'admin/abuse/moderate/content/js',

with :

url: Drupal.base_url + '?q=admin/abuse/moderate/content/js',

Hope that works.

 
 

Drupal is a registered trademark of Dries Buytaert.