Download & Extend

Configuration page blank

Project:Mollom
Version:7.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

Hi
I have been have the 7.x-2.3 version for a while & this seems to work without incident.
I however wanted to change some settings & when I tried to go to the configuration page (/admin/config/content/mollom), it is BLANK. I have not had any blank errors for many months & in fact have memory set at 200MB, which I think is more than sufficient for this VERY low traffic site.

On the reports & some other pages, I have AT TIMES got this error message: Warning: array_merge(): Argument #2 is not an array in mollom_form_info() (line 919 of /home8/woof/public_html/abc/default/modules/mollom/mollom.module). I have not been having such messages before.

I tried to upgrade to the latest dev version, but this has not helped.
All my modules are up-to-date. To help fight spam, I also have captcha & honey pot, which have helped considerably reduce spam submissions.

Mollom is available on a couple of forms, though.

How do I get of these ugly errors? It surely must be possible to access the configuration page ...

Thank you in advance

Comments

#1

Version:7.x-2.3» 7.x-2.x-dev
Component:User interface» Code
Status:active» needs review

Can you try attached patch?

AttachmentSizeStatusTest resultOperations
mollom.form-info-error.1.patch986 bytesIdlePASSED: [[SimpleTest]]: [MySQL] 4,730 pass(es).View details | Re-test

#2

Hi

Thank you for the response.

I tried to do the patching but got stuck, although this is not the first time to use a patch.

I got a bit mixed up by this bit:

diff --git a/mollom.module b/mollom.module
index 715d7b9..4a31aa2 100644
--- a/mollom.module
+++ b/mollom.module
@@ -916,7 +916,17 @@ function mollom_form_info($form_id, $module, $form_list = NULL) {
   }

Exactly what did I have to do with the current mollom module script I had (7.x-2.3)?

I otherwise understood the last bit, below "// Any information in hook_mollom_form_info() overrides the list info."

Where I replaced that piece of code
-  $form_info = array_merge($form_info, module_invoke($module, 'mollom_form_info', $form_id));
with the lines beginning with "+".

I also tried "7.x-2.3+2-dev of 2012-Nov-14", (which I now have) but still have the blank page at /admin/config/content/mollom

Thank you & kind regards

#3

Status:needs review» postponed (maintainer needs more info)

Sorry for the delay. I've committed the patch in #1, so there should be a new development snapshot in ~24 hours (tomorrow).

Could you try once again after updating to that tomorrow?

Note that the committed patch will only fix the blank page; it does not fix the underlying problem, which seems to be that a form that was previously protected does no longer exist in your system. It should, however, allow you to remove the bogus/stale form protection.

#4

Version:7.x-2.x-dev» 6.x-2.x-dev
Status:postponed (maintainer needs more info)» needs review
AttachmentSizeStatusTest resultOperations
0001-1833262-by-sun-Fixed-mollom_form_info-does-not-log-s.patch1.26 KBIdlePASSED: [[SimpleTest]]: [MySQL] 4,158 pass(es).View details | Re-test

#5

Version:6.x-2.x-dev» 7.x-2.x-dev
Status:needs review» postponed (maintainer needs more info)

Oh. Apparently, we did not backport #1352012: Feedback options appear for every entity bundle, even when not protected, so this patch makes no sense for D6 right now.

#6

Status:postponed (maintainer needs more info)» closed (duplicate)

I've reverted the commit from #1.

This generally sounds like a duplicate of #804466: Deleted forms of other modules are not cleaned up

nobody click here