Captcha problem (confirmation code never match) Captcha problem (confirmation code never match)
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Captcha problem (confirmation code never match)

Started by nyemaster, July 04, 2010, 02:58:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nyemaster

After following an existing thread about this same subject, I have discovered that my situation is somewhat different.
My PHP is 5.2.8, and I am using GD2

If I turn on CAPTCHA the normal user can never logon. In my previous 1.4 version of Coppermine I never had this issue.
Could you start out by showing me how to turn on debug, so I can go over some of the basics?

From there I will post whatever you need.
Currently the site has CAPTCHA OFF so it can be used.
http://www.myveap.com

Thanks.

Dave

nyemaster

#1
Figured out how to turn on the debug and logging. Here is the output from trying to register someone with Captcha turned on.


Debug Output: show / hide Select All
USER:
------------------
Array
(
   [ID] => c696f2606554c6fa1a31d1668f9152d7
   [lang] => english
   [liv] => Array
       (
           [0] => 174
           [1] => 173
           [2] => 48
           [3] => 14
           [4] => 11
       )

   [liv_a] => Array
       (
           [0] => 1
       )

   [am] => 1
)

==========================
USER DATA:
------------------
Array
(
   [user_id] => 0
   [user_name] => Guest
   [groups] => Array
       (
           [0] => 3
       )

   [group_quota] => 0
   [can_rate_pictures] => 1
   [can_send_ecards] => 0
   [can_post_comments] => 0
   [can_upload_pictures] => 0
   [can_create_albums] => 0
   [pub_upl_need_approval] => 1
   [priv_upl_need_approval] => 1
   [access_level] => 3
   [disk_max] => 0
   [disk_min] => 0
   [has_admin_access] => 0
   [group_name] => Guests
   [can_see_all_albums] => 0
   [group_id] => 3
   [allowed_albums] => Array
       (
       )

)

==========================
Queries:
------------------
Array
(
   [0] => SELECT name, value FROM cpg15x_config [include/init.inc.php:178] (7 ms)
   [1] => SELECT * FROM cpg15x_plugins ORDER BY priority [include/plugin_api.inc.php:54] (2 ms)
   [2] => SELECT user_id, time FROM `coppermine`.cpg15x_sessions WHERE session_id = '1ee80b00e94cdc937ce76e65257ebe52' [bridge/coppermine.inc.php:264] (1 ms)
   [3] => SELECT user_id, user_password FROM `coppermine`.cpg15x_users WHERE user_id = 0 [bridge/coppermine.inc.php:276] (1 ms)
   [4] => SELECT MAX(group_quota) AS disk_max, MIN(group_quota) AS disk_min, MAX(can_rate_pictures) AS can_rate_pictures, MAX(can_send_ecards) AS can_send_ecards, MAX(can_post_comments) AS can_post_comments, MAX(can_upload_pictures) AS can_upload_pictures, MAX(can_create_albums) AS can_create_albums, MAX(has_admin_access) AS has_admin_access, MAX(access_level) AS access_level, MIN(pub_upl_need_approval) AS pub_upl_need_approval, MIN( priv_upl_need_approval) AS  priv_upl_need_approval FROM cpg15x_usergroups WHERE group_id in (3) [bridge/udb_base.inc.php:321] (2 ms)
   [5] => SELECT group_name FROM  cpg15x_usergroups WHERE group_id= 3 [bridge/udb_base.inc.php:325] (2 ms)
   [6] => UPDATE `coppermine`.cpg15x_sessions SET time = UNIX_TIMESTAMP() WHERE session_id = '1ee80b00e94cdc937ce76e65257ebe52' [bridge/coppermine.inc.php:321] (3 ms)
   [7] => SELECT aid FROM cpg15x_albums WHERE moderator_group IN (3) [include/init.inc.php:268] (1 ms)
   [8] => SELECT lang_id FROM cpg15x_languages WHERE enabled='YES' [include/init.inc.php:326] (2 ms)
   [9] => SELECT null FROM cpg15x_banned WHERE ('24.242.181.230' LIKE ip_addr ) AND brute_force=0 LIMIT 1 [include/init.inc.php:456] (1 ms)
   [10] => SELECT aid FROM cpg15x_albums WHERE (1  AND visibility != 0 AND visibility != 10000 AND visibility NOT IN (3)) [include/functions.inc.php:960] (1 ms)
   [11] => SELECT null FROM cpg15x_users WHERE user_name = 'nye' [register.php:488] (1 ms)
   [12] => SELECT null FROM cpg15x_banned WHERE user_name = 'nye' AND brute_force = 0 LIMIT 1 [register.php:533] (1 ms)
   [13] => SELECT null FROM cpg15x_banned WHERE email = 'dreamer@hot.rr.com' AND brute_force = 0 LIMIT 1 [register.php:541] (1 ms)
   [14] => SELECT null FROM cpg15x_users WHERE user_email = 'dreamer@hot.rr.com' [register.php:565] (1 ms)
)

==========================
GET :
------------------
Array
(
)

==========================
POST :
------------------
Array
(
   [username] => DELETED
   [password] => DELETED
   [password_verification] => DELETED
   [email] => DELETED
   [user_profile1] =>
   [user_profile2] =>
   [user_profile3] =>
   [user_profile4] =>
   [user_profile6] =>
   [agree] => 1
   [confirmCode] => mxux
   [submit] => Submit registration
)

==========================
COOKIE :
------------------
Array
(
   [73c5dbf9d049b06af53dcf41807f247a] => ca8713ca91b6eb7ae7547f6fbde05830
   [coppermine_data] => YTozOntzOjI6IklEIjtzOjMyOiIyMzBiNzg0ZGQxMGJmNTMzZGNkMDk2YzNhODI2MjFiZiI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJlbmdsaXNoIjt9
   [cpg15x_data] => YTo1OntzOjI6IklEIjtzOjMyOiJjNjk2ZjI2MDY1NTRjNmZhMWEzMWQxNjY4ZjkxNTJkNyI7czo0OiJsYW5nIjtzOjc6ImVuZ2xpc2giO3M6MzoibGl2IjthOjU6e2k6MDtzOjM6IjE3NCI7aToxO3M6MzoiMTczIjtpOjI7czoyOiI0OCI7aTozO3M6MjoiMTQiO2k6NDtzOjI6IjExIjt9czo1OiJsaXZfYSI7YToxOntpOjA7aToxO31zOjI6ImFtIjtpOjE7fQ==
   [af4742b8f419c21646801b63166a8566] => b9b2462223e06644a4717ac3e7f87f6c
   [e671d7ef70b0c41c5a563a39a8bb6b4c] => 7989c318cb2a443e9816a68e1cd5d0e2
)

==========================
                 
Notices  
/include/captcha.inc.php
•Notice line 221: Undefined index: php_captcha

/register.php
•Notice line 285: Undefined offset: 5

papukaija

You should *not* post the debug information unless requested as said in the documentation.

Quote from: nyemaster on July 04, 2010, 02:58:23 AM
Currently the site has CAPTCHA OFF so it can be used.

That's very useful if you need help with it. You should also post login details for a test account (not an admin account) and enable again the captcha.

Quote from: nyemaster on July 04, 2010, 02:58:23 AM
Could you start out by showing me how to turn on debug
Sorry, only one issue per thread.

nyemaster

Sorry for the debug info. I didn't realize it was attached when I sent it.
The problem exists when anyone tries to register. I will turn on the captcha during reqistration so you can see what is going on.
Thanks.

http://www.myveap.com

nyemaster

An update - After re-enabling the captcha feature for registration, it seems to work! Don't know what i did...
sigh

See if it works for you.

Thanks
Dave

Αndré


Joachim Müller

Quote from: nyemaster on July 04, 2010, 02:58:23 AMCould you start out by showing me how to turn on debug, so I can go over some of the basics?
Quote from: nyemaster on July 04, 2010, 05:10:46 AMFigured out how to turn on the debug and logging.
I guess you read that up in the docs... (turning on debug mode: http://documentation.coppermine-gallery.net/en/configuration.htm#debug_mode; enabling logging: http://documentation.coppermine-gallery.net/en/configuration.htm#admin_logging_log_mode).

Quote from: nyemaster on July 06, 2010, 04:55:31 AMAfter re-enabling the captcha feature for registration, it seems to work!
Please reolve this thread then as per http://forum.coppermine-gallery.net/index.php/topic,55415.msg270631.html#msg270631

Quote from: Αndré on July 06, 2010, 11:06:26 AM
Actual link to your gallery is http://sagod.com/myveap/cpg1410/
[off topic]
...the folder name hasn't been chosen wisely. Take a look at http://documentation.coppermine-gallery.net/en/export.htm#moving
If you need help with that, start a new thread.
[/off topic]