Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After upgrading to Mollom 7.x-2.0, running update.php, cron and clearing all caches, I still get this message, "The configured Mollom API keys are invalid." I have checked, and everything is the same on my account with Mollom, and public and private keys are entered correctly on my site. After reading forum posts (which are old) I tried disabling Views and Mollom, deleting and re-installing Mollom 7.x-2.0 and enabling (with Views still disabled), and still no solution.
Comments
Comment #1
couturier CreditAttribution: couturier commentedTo follow up, this is the error message I'm getting:
(Update: deleted this when issue was resolved)
Comment #2
sunI just tried your API keys on a testing site myself and they were validated successfully.
Are you sure that your site/server is able to make outbound HTTP requests to rest.mollom.com? There might be a firewall or proxy in between that blocks the requests?
Comment #3
couturier CreditAttribution: couturier commentedThe Mollom keys showed validation after several days with no further action required. I did email my hosting provider to ask about any firewall issues but did not receive a reply. They are Drupal-specialized hosts that contribute to Drupal core and run many sites with Mollom, so I sort of doubt that would have been the problem. In the meantime, I gained new appreciation for all that Mollom does. I had to temporarily shut down several portions of my site, due to a flood of spam, until Mollom started working again. Mollom's filtering power is great! Thanks for looking at this, sun. Just for the record, here are further comments that I received from Mollom staff:
Mar 27 08:25 pm (CEST):
I don't see any statistics from your site since the 24th; I'll raise this issue and point out the d.o. node number to the backend engineers.
Mar 27 10:18 pm (CEST):
This seems to be an system or environment issue - let's continue to discuss it on http://drupal.org/node/1497404
Comment #4
jonloh CreditAttribution: jonloh commentedI'm still having this weird Error 401, and it has been quite a few weeks already that my site is having this problem.
We are hosting sites for our clients which got no problem with Mollom, just our main site :(
Comment #5
couturier CreditAttribution: couturier commentedYou might want to use the contact form directly on the Mollom website. Refer to the URL of this issue on Drupal.org so that tech support can see the details of your error and help you. You can also change the status of this issue to "active" if you like.
Comment #6
couturier CreditAttribution: couturier commentedOkay, as of this morning just after I logged in, the Mollom API keys switched over to showing invalid again. That's two of us--jonloh and myself--who are actively facing this issue, so I'm switching the status back to active. I wonder what's causing this?
My error:
Comment #7
Junni CreditAttribution: Junni commentedSame issue here!
Comment #8
couturier CreditAttribution: couturier commentedAs of this morning, my Mollom keys are showing valid again. So, the first time this happened it took 5 days to clear up, and now the second time it has taken 6 days. Everything seems to have resolved on its own without intervention from either my host server or Mollom engineers. The problems started when I upgraded to version 7.x-2.0, so I'm wondering if it has something to do with the upgrade. Anyway, I am moving this issue back to fixed again.
Comment #9
sunIf it magically resolved itself, then it's likely caused by #1533456: False-negative client/key validation status if check happens when Mollom service is down
Comment #10
jonloh CreditAttribution: jonloh commentedReported to Mollom and basically sun got back to me regarding this issue, and basically my issue was because the server ran out of sync with the world-wide clock.
To settle this, I've to basically run the
ntpdate
command (For CentOS) and the keys resolve fine and Mollom is running perfectly now. If you do not have SSH access, request your hosting to look into this then.Thanks sun! :)
Comment #11
couturier CreditAttribution: couturier commentedYes, that would make sense according to the issue sun cited which says, "If the Mollom service happens to be down and the Drupal module's client/key validation happens to be triggered during that time-frame, a bogus result is stored and sticks." My invalid key status was being triggered when I was logged into my site doing things that affected Mollom. I hope the patch will be good going forward for 7.x-2.0. Thanks for your help, sun.
Comment #12
Anonymous (not verified) CreditAttribution: Anonymous commentedI'm getting this error with Invalid API Keys (I replaced the key value with "[obscured by me]" text below, but it did contain the key from mollom):
There's also the message
The Mollom servers could not be contacted. Please make sure that your web server can make outgoing HTTP requests.
on the settings page. Does all this mean that I need to speak to my hosting provider or is this smth else?Comment #13
sunseems pretty clear to me (and different to the previous cases) - your client does not seem to be able to communicate with mollom.com, which points to a firewall that blocks outgoing requests. So yes, talk to your hosting provider.
Comment #15
cmejo CreditAttribution: cmejo commentedI can confirm #10 worked for me as well.
Comment #16
marthinal CreditAttribution: marthinal commentedFixed after executed "ntpd -q"
Thanks!
Comment #17
Elijah LynnJust an FYI, this is happening to me only when I select testing mode. If I had previously added keys and also hit testing mode it deletes the keys I had.