I must be doing something dumb, as this seems basic:
New install of phpList 3.3.1. Created a subscription page.
Installed the common and recaptcha plugins. The phpinfo, config.php and php session actions appear and work.
Common plugin is 3.6.5+20170811, reCaptcha is 1.3.0+20170609 PHP is 5.6.30
Configured the site keys (public and secret). These keys work in another area of this site.
Left the method the default (http wrapper).
Edited the subscription page. Checked “Include reCaptcha in the subscribe page”, left color light, size normal.
Save changes.
Go to the subscription page. There is no trace of reCaptcha. Not the script in the HEAD nor the DIV in the body. Checked with view source & firebug.
I made other changes to the subscription page; they show up. So it’s not cached.
I tried putting the script and div tags in manually; I can get the “i’m not a robot” captcha to appear, but the solution isn’t acknowledged.
I tried the CURL method; no change.
Any clues?
Many thanks.
Update:
I read the plugin code, but no reason jumps out:
No HTML is returned if:
displaySubscriptionChoice finds recaptcha_include is empty (it is 1 in the database)
or
activate() found the keys aren’t entered (Confirmed in the database that both are present)
Otherwise, the HTML should be added. But it’s not.
So we must conclude that either ‘activate’ or 'displaySubscriptionChoice’
is not being called.
Why that might be is beyond me.