The subject error is what I'm getting when test mode is enabled. This started happening all of a sudden. Meaning, everything was going fine and without any changes on my part, this error started appearing. I've refreshed the cache, ran cron, uninstalled completely and re-installed, removed the code completely and downloaded again. I've updated all modules. Still the error persists. Any clues?

Comments

amaria’s picture

Also, enabling test mode clears the access key fields. Why?

sun’s picture

Version: 7.x-2.0 » 7.x-2.x-dev
Status: Active » Needs review
StatusFileSize
new1.67 KB

If the API keys are empty when testing mode is enabled, then that basically means that your site/server was not able to create and retrieve new Testing API keys from dev.mollom.com.

Note that the testing mode works against different Mollom servers; all requests go to dev.mollom.com instead of rest.mollom.com.

Is it possible that you have a firewall that might block outgoing requests to dev.mollom.com?

Attached patch most probably does not resolve the problem, only prevents the PHP notices from happening.

sun’s picture

Version: 7.x-2.x-dev » 6.x-2.x-dev
StatusFileSize
new2.01 KB

Committed to 7.x-2.x.

sun’s picture

Version: 6.x-2.x-dev » 7.x-2.x-dev
Status: Needs review » Fixed

Thanks for reporting, reviewing, and testing! Committed to all branches.

A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.

Status: Fixed » Closed (fixed)

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

  • Commit 522b3c8 on 7.x-2.x, 8.x-2.x, fbajs, actions by sun:
    - #1551424 by sun: Fixed testing mode may unset API keys and save them.
    
    

  • Commit 522b3c8 on 7.x-2.x, 8.x-2.x, fbajs, actions by sun:
    - #1551424 by sun: Fixed testing mode may unset API keys and save them.