forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: matheso on December 29, 2014, 04:57:15 am

Title: Can't register new user -- keeps saying "The confirmation code didn't match"
Post by: matheso on December 29, 2014, 04:57:15 am
I can't make an account, because I keep getting the error shown in the screenshot below. The code is very clear, and I've tried with caps and without.
Username/passwords and email is fine.

What gives?

Title: Re: Can't register new user -- keeps saying "The confirmation code didn't match"
Post by: matheso on December 29, 2014, 04:58:37 am
The code above is clearly SNDBU but that didn't work
Title: Re: Can't register new user -- keeps saying "The confirmation code didn't match"
Post by: allvip on December 29, 2014, 01:02:22 pm
You have included jquery twice on your pages:

jQuery v1.11.0:

Code: [Select]
<script type="text/javascript" src="http://taskbasket.net/gallery/themes/matheso/js/jquery.js"></script>

The jquery update plugin that you installed adds jQuery v1.11.1 to all pages. If you use jquery plugins like fancybox or other pugins you may want to use, you do not need to include jquery.
On the facybox plugin page says to include jquery first, but you already have query on all your pages.

Without the jquery update plugin installed, coppermine adds by default to all pages jquery-1.3.2 (is in the js folder of your gallery). I told you to install jquery update plugin to replace 1.3.2 with 1.11.1 because masonry works much better with jquery 1.11.1.
All other jquery plugins should work fine with jquery 1.11.1.

You can NEVER include 2 versions of jquery on the same page. It creates a jquery conflict and many thing could stop working like create new album, rating stars, filmstrip.
Title: Re: Can't register new user -- keeps saying "The confirmation code didn't match"
Post by: allvip on December 29, 2014, 02:02:53 pm
Anyway, if you notice in the future that users register, but never upload, comment or activate their account, those are boots, that managed to pass your coppermine captcha.

More advance captcha:   reCAPTCHA plugin http://forum.coppermine-gallery.net/index.php/topic,57439.0.html (http://forum.coppermine-gallery.net/index.php/topic,57439.0.html)

reCAPTCHA is made by Google so first you have to go here: https://www.google.com/recaptcha/intro/index.html (https://www.google.com/recaptcha/intro/index.html) to subscribe your website and get the keys.

If you don't want to use the plugin, then follow the steps on how to add it to your website.
The plugin uses the old version of reCAPTCHA, Google made it more advanced.

Another captcha plugin:  Problem Solving CAPTCHA plugin for cpg1.5.x http://forum.coppermine-gallery.net/index.php/topic,76723.0.html (http://forum.coppermine-gallery.net/index.php/topic,76723.0.html). Is text, not image captcha (see attachment captcha)
Title: Re: Can't register new user -- keeps saying "The confirmation code didn't match"
Post by: Αndré on December 29, 2014, 08:39:07 pm
Please post a link to your gallery, so we can test ourselves.
Title: Re: Re: Can't register new user -- keeps saying "The confirmation code didn't match"
Post by: allvip on December 29, 2014, 09:04:27 pm
Please post a link to your gallery, so we can test ourselves.

He posted the link in another topic taskbasket.net/gallery/ (http://taskbasket.net/gallery/)
He removed the extra jquery.
Title: Re: Can't register new user -- keeps saying "The confirmation code didn't match"
Post by: Αndré on December 29, 2014, 09:15:01 pm
I don't think that jQuery is responsible for that issue in any way, but I could be wrong. If I remember correctly the captcha is stored in a PHP session, so this must be supported/enabled by your browser server. Unfortunately I currently cannot test this myself with the computer I'm sitting on.
Title: Re: Can't register new user -- keeps saying "The confirmation code didn't match"
Post by: allvip on December 29, 2014, 09:29:20 pm
Not working.
I test it even with the curve theme: http://taskbasket.net/gallery/index.php?theme=curve (http://taskbasket.net/gallery/index.php?theme=curve).
I forgot I can change theme.
Title: Re: Can't register new user -- keeps saying "The confirmation code didn't match"
Post by: Αndré on December 29, 2014, 09:32:58 pm
Sorry, I just fixed the typo in my above post (and I also tested with the curve theme ;)).
Title: Re: Can't register new user -- keeps saying "The confirmation code didn't match"
Post by: matheso on December 29, 2014, 09:55:21 pm
I've removed the jquery like you said, and it's still not working -- it seems you both have realized this.

I'll likely implement Google's reCAPTCHA when my site's ready to go, but I don't want to run into this problem.

@Αndré :  You said it could be a PHP issue, how do I test if this is the problem??

Thanks
Title: Re: Can't register new user -- keeps saying "The confirmation code didn't match"
Post by: Αndré on December 29, 2014, 10:17:56 pm
Have a look at http://taskbasket.net/gallery/phpinfo.php and search for the section "session". Honeslty, I don't know what exactly needs to be set so the captcha will work, but you'd need to find at least the line
Code: [Select]
Session Support enabled
Title: Re: Can't register new user -- keeps saying "The confirmation code didn't match"
Post by: matheso on December 30, 2014, 12:39:24 am
My session result says:

Quote
Session Support   enabled
Registered save handlers   files user sqlite
Registered serializer handlers   php php_binary wddx

Not sure what this means... or why it would not allow captchas to work. I'll try Google's version