Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No captcha in comments section #47

Open
Saur0o0n opened this issue Feb 15, 2017 · 3 comments
Open

No captcha in comments section #47

Saur0o0n opened this issue Feb 15, 2017 · 3 comments
Labels

Comments

@Saur0o0n
Copy link

Hi,

I've just tried to use captcha plugins (both crypto and easy captcha) - both fails to work for comments in Bootstrap theme. They do work for registration.
In bootstrap default theme, captcha div simply does not appear in comment section (or anywhere in source code).
I'm currently migrating from menalto gallery - so I'm quite fresh in Piwigo :). Perhaps it's easy to fix, but I have just started and not everything is clear to me.

@Philio
Copy link
Owner

Philio commented Feb 16, 2017

I'll have a look at the internals of these plugins and see if I can figure out what's going on!

@Philio Philio added the bug label Feb 16, 2017
@CharlesButcher
Copy link

+1 please! Bootstrap Default is by far the nicest Piwigo theme I've found, so it's a pity it doesn't work with captchas.

From my tiny knowledge of PHP I suspect this might be fixed by output buffering. The errors I get with the PHP Captcha plugin are:

Notice: Undefined index: captcha_code in /home/.../gallery/plugins/phpcaptchapiwigo/include/picture.inc.php on line 30

and:

Warning: Cannot modify header information - headers already sent by (output started at .../plugins/phpcaptchapiwigo/include/picture.inc.php:27) in .../gallery/include/functions_html.inc.php on line 486

Warning: Cannot modify header information - headers already sent by (output started at .../plugins/phpcaptchapiwigo/include/picture.inc.php:27) in .../gallery/include/page_header.php on line 101

Line 30 in "picture.inc.php" referred to above is: $postvalue = $_POST['captcha_code'];. So would it be possible to add output buffering somewhere in the template? The problem seems to be unique to Bootstrap Default, and it occurs with three different captcha plugins I've tried. So it doesn't appear to be the fault of either the plugins or of Piwigo more generally.

@tekstrand
Copy link

Any thoughts here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants