Log in problem

This is my second site. Added logoff plugin with no issues on the first site. This site having a problem. I installed the plugin and enabled the form. I set an album up with a guest ID and password. I get a message saying the user name and password is incorrect when trying to log in to this album from the home page. If I click on the album and use the log in area that comes up on that page I can log in ok. For testing I put this up:

http://www.davidgrahamlocations.com/clients/index.php

Try logging in with user name wolf and password wolf. Doesn't work. Now click on the wolf album. Log in with same info wolf and wolf and it works. Any thoughts??

Thanks!

Comments

  • That is really strange. There is a define in the front of function-basic.php for `DEBUG_LOGIN`. Please change this to `true` and try this again. This will creat a debug log that will tell us (I hope) what is going on.
  • Ok done! And I am glad it isn't me losing it...lol...thanks for your help!
  • Where do I find the debug log? Nevermind I found it...what should I do with all the info?
  • Probably have to post it here for analysis.
  • OK pasted below. I tried logging in with the wolf info before getting this log.

    Zenphoto v1.2.8[4881]
    zp_getCookie(zenphoto_ssl)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(zenphoto_auth)::album_session=0; SESSION[]=, COOKIE=236e110b31dde2e9edf45b8d1ecd7715
    Backtrace: checkAuthorization(236e110b31dde2e9edf45b8d1ecd7715)
    checkAuthorization called
    from require_once (auth_zp.php [52])
    from require_once (functions.php [43])
    from require_once (template-functions.php [10])
    from index.php [14]
    checkAuthorization: admins => (
    2 => ( id => 2, user => admin, pass => 236e110b31dde2e9edf45b8d1ecd7715,
    name => Lisa Raymond, email => lisa@lisaraymond.com, rights => 81790,
    custom_data => , valid => 1, group => ),
    3 => ( id => 3, user => david graham, pass => da8eba3b24b49925495b49ab1149fbbc,
    name => David Graham, email => client email, rights => 80764,
    custom_data => , valid => 1, group => ),
    )
    checkAuthorization: checking: 2
    checkAuthorization: match
    zp_getCookie(dynamic_locale)::album_session=0; SESSION[]=, COOKIE=
    zp_handle_password: $authType=zp_gallery_auth; $check_auth=; $check_user=;
    zp_getCookie(zenphoto_last_album)::album_session=0; SESSION[]=, COOKIE=
    zp_setCookie(zenphoto_image_search_params, , 1262866697, /clients)::album_session=0
    zp_getCookie(viewer_size_image_saved)::album_session=0; SESSION[]=, COOKIE=
    Zenphoto v1.2.8[4881]
    zp_getCookie(zenphoto_ssl)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(zenphoto_auth)::album_session=0; SESSION[]=, COOKIE=236e110b31dde2e9edf45b8d1ecd7715
    Backtrace: checkAuthorization(236e110b31dde2e9edf45b8d1ecd7715)
    checkAuthorization called
    from require_once (auth_zp.php [52])
    from require_once (functions.php [43])
    from require_once (template-functions.php [10])
    from index.php [14]
    checkAuthorization: admins => (
    2 => ( id => 2, user => admin, pass => 236e110b31dde2e9edf45b8d1ecd7715,
    name => Lisa Raymond, email => lisa@lisaraymond.com, rights => 81790,
    custom_data => , valid => 1, group => ),
    3 => ( id => 3, user => david graham, pass => da8eba3b24b49925495b49ab1149fbbc,
    name => David Graham, email => client email, rights => 80764,
    custom_data => , valid => 1, group => ),
    )
    checkAuthorization: checking: 2
    checkAuthorization: match
    zp_getCookie(dynamic_locale)::album_session=0; SESSION[]=, COOKIE=
    zp_handle_password: $authType=zp_gallery_auth; $check_auth=; $check_user=;
    zp_getCookie(viewer_size_image_saved)::album_session=0; SESSION[]=, COOKIE=
    Zenphoto v1.2.8[4881]
    zp_getCookie(zenphoto_ssl)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(zenphoto_auth)::album_session=0; SESSION[]=, COOKIE=236e110b31dde2e9edf45b8d1ecd7715
    Backtrace: checkAuthorization(236e110b31dde2e9edf45b8d1ecd7715)
    checkAuthorization called
    from require_once (auth_zp.php [52])
    from require_once (functions.php [43])
    from require_once (template-functions.php [10])
    from index.php [14]
    checkAuthorization: admins => (
    2 => ( id => 2, user => admin, pass => 236e110b31dde2e9edf45b8d1ecd7715,
    name => Lisa Raymond, email => lisa@lisaraymond.com, rights => 81790,
    custom_data => , valid => 1, group => ),
    3 => ( id => 3, user => david graham, pass => da8eba3b24b49925495b49ab1149fbbc,
    name => David Graham, email => client email, rights => 80764,
    custom_data => , valid => 1, group => ),
    )
    checkAuthorization: checking: 2
    checkAuthorization: match
    zp_getCookie(dynamic_locale)::album_session=0; SESSION[]=, COOKIE=
    zp_handle_password: $authType=zp_gallery_auth; $check_auth=; $check_user=;
    zp_getCookie(zenphoto_last_album)::album_session=0; SESSION[]=, COOKIE=
    zp_setCookie(zenphoto_image_search_params, , 1262866702, /clients)::album_session=0
    zp_setCookie(zenphoto_auth, , 1262866702, /clients)::album_session=0
    Zenphoto v1.2.8[4881]
    zp_getCookie(zenphoto_ssl)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(zenphoto_auth)::album_session=0; SESSION[]=, COOKIE=
    Backtrace: checkAuthorization()
    checkAuthorization called
    from require_once (auth_zp.php [52])
    from require_once (functions.php [43])
    from require_once (template-functions.php [10])
    from index.php [14]
    checkAuthorization: admins => (
    2 => ( id => 2, user => admin, pass => 236e110b31dde2e9edf45b8d1ecd7715,
    name => Lisa Raymond, email => lisa@lisaraymond.com, rights => 81790,
    custom_data => , valid => 1, group => ),
    3 => ( id => 3, user => david graham, pass => da8eba3b24b49925495b49ab1149fbbc,
    name => David Graham, email => client email, rights => 80764,
    custom_data => , valid => 1, group => ),
    )
    zp_setCookie(zenphoto_auth, , 1262866703, /clients)::album_session=0
    zp_setCookie(zenphoto_ssl, , 1262866703, /clients)::album_session=0
    zp_getCookie(dynamic_locale)::album_session=0; SESSION[]=, COOKIE=
    zp_handle_password: $authType=zp_gallery_auth; $check_auth=; $check_user=;
    zp_getCookie(zenphoto_last_album)::album_session=0; SESSION[]=, COOKIE=
    zp_setCookie(zenphoto_image_search_params, , 1262866703, /clients)::album_session=0
    zp_getCookie(viewer_size_image_saved)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(zp_album_auth_6)::album_session=0; SESSION[]=, COOKIE=
    Zenphoto v1.2.8[4881]
    zp_getCookie(zenphoto_ssl)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(zenphoto_auth)::album_session=0; SESSION[]=, COOKIE=
    Backtrace: checkAuthorization()
    checkAuthorization called
    from require_once (auth_zp.php [52])
    from require_once (functions.php [43])
    from require_once (template-functions.php [10])
    from index.php [14]
    checkAuthorization: admins => (
    2 => ( id => 2, user => admin, pass => 236e110b31dde2e9edf45b8d1ecd7715,
    name => Lisa Raymond, email => lisa@lisaraymond.com, rights => 81790,
    custom_data => , valid => 1, group => ),
    3 => ( id => 3, user => david graham, pass => da8eba3b24b49925495b49ab1149fbbc,
    name => David Graham, email => client email, rights => 80764,
    custom_data => , valid => 1, group => ),
    )
    zp_setCookie(zenphoto_auth, , 1262866703, /clients)::album_session=0
    zp_setCookie(zenphoto_ssl, , 1262866703, /clients)::album_session=0
    zp_getCookie(dynamic_locale)::album_session=0; SESSION[]=, COOKIE=
    zp_handle_password: $authType=zp_gallery_auth; $check_auth=; $check_user=;
    zp_getCookie(viewer_size_image_saved)::album_session=0; SESSION[]=, COOKIE=
    Zenphoto v1.2.8[4881]
    zp_getCookie(zenphoto_ssl)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(zenphoto_auth)::album_session=0; SESSION[]=, COOKIE=
    Backtrace: checkAuthorization()
    checkAuthorization called
    from require_once (auth_zp.php [52])
    from require_once (functions.php [43])
    from require_once (template-functions.php [10])
    from index.php [14]
    checkAuthorization: admins => (
    2 => ( id => 2, user => admin, pass => 236e110b31dde2e9edf45b8d1ecd7715,
    name => Lisa Raymond, email => lisa@lisaraymond.com, rights => 81790,
    custom_data => , valid => 1, group => ),
    3 => ( id => 3, user => david graham, pass => da8eba3b24b49925495b49ab1149fbbc,
    name => David Graham, email => client email, rights => 80764,
    custom_data => , valid => 1, group => ),
    )
    zp_setCookie(zenphoto_auth, , 1262866711, /clients)::album_session=0
    zp_setCookie(zenphoto_ssl, , 1262866711, /clients)::album_session=0
    zp_getCookie(dynamic_locale)::album_session=0; SESSION[]=, COOKIE=
    zp_handle_password: $authType=zp_gallery_auth; $check_auth=; $check_user=;
    zp_handle_password: $post_user=wolf; $post_pass=wolf; $auth=280a3fca42fc65b9331191be8c0e092e;
    zp_handle_password: invalid credentials
    zp_setCookie(zp_gallery_auth, , 1262866711, /clients)::album_session=0
    zp_getCookie(zenphoto_last_album)::album_session=0; SESSION[]=, COOKIE=
    zp_setCookie(zenphoto_image_search_params, , 1262866711, /clients)::album_session=0
    zp_getCookie(viewer_size_image_saved)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(zp_album_auth_6)::album_session=0; SESSION[]=, COOKIE=
    Zenphoto v1.2.8[4881]
    zp_getCookie(zenphoto_ssl)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(zenphoto_auth)::album_session=0; SESSION[]=, COOKIE=
    Backtrace: checkAuthorization()
    checkAuthorization called
    from require_once (auth_zp.php [52])
    from require_once (functions.php [43])
    from require_once (template-functions.php [10])
    from index.php [14]
    checkAuthorization: admins => (
    2 => ( id => 2, user => admin, pass => 236e110b31dde2e9edf45b8d1ecd7715,
    name => Lisa Raymond, email => lisa@lisaraymond.com, rights => 81790,
    custom_data => , valid => 1, group => ),
    3 => ( id => 3, user => david graham, pass => da8eba3b24b49925495b49ab1149fbbc,
    name => David Graham, email => client email, rights => 80764,
    custom_data => , valid => 1, group => ),
    )
    zp_setCookie(zenphoto_auth, , 1262866711, /clients)::album_session=0
    zp_setCookie(zenphoto_ssl, , 1262866711, /clients)::album_session=0
    zp_getCookie(dynamic_locale)::album_session=0; SESSION[]=, COOKIE=
    zp_handle_password: $authType=zp_gallery_auth; $check_auth=; $check_user=;
    zp_getCookie(viewer_size_image_saved)::album_session=0; SESSION[]=, COOKIE=
    Zenphoto v1.2.8[4881]
    zp_getCookie(zenphoto_ssl)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(zenphoto_auth)::album_session=0; SESSION[]=, COOKIE=
    Backtrace: checkAuthorization()
    checkAuthorization called
    from require_once (auth_zp.php [52])
    from require_once (functions.php [43])
    from require_once (template-functions.php [10])
    from index.php [14]
    checkAuthorization: admins => (
    2 => ( id => 2, user => admin, pass => 236e110b31dde2e9edf45b8d1ecd7715,
    name => Lisa Raymond, email => lisa@lisaraymond.com, rights => 81790,
    custom_data => , valid => 1, group => ),
    3 => ( id => 3, user => david graham, pass => da8eba3b24b49925495b49ab1149fbbc,
    name => David Graham, email => client email, rights => 80764,
    custom_data => , valid => 1, group => ),
    )
    zp_setCookie(zenphoto_auth, , 1262866944, /clients)::album_session=0
    zp_setCookie(zenphoto_ssl, , 1262866944, /clients)::album_session=0
    zp_getCookie(dynamic_locale)::album_session=0; SESSION[]=, COOKIE=
    zp_handle_password: $authType=zp_gallery_auth; $check_auth=; $check_user=;
    zp_getCookie(zenphoto_last_album)::album_session=0; SESSION[]=, COOKIE=
    zp_setCookie(zenphoto_image_search_params, , 1262866944, /clients)::album_session=0
    zp_getCookie(viewer_size_image_saved)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(zp_album_auth_6)::album_session=0; SESSION[]=, COOKIE=
    Zenphoto v1.2.8[4881]
    zp_getCookie(zenphoto_ssl)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(zenphoto_auth)::album_session=0; SESSION[]=, COOKIE=
    Backtrace: checkAuthorization()
    checkAuthorization called
    from require_once (auth_zp.php [52])
    from require_once (functions.php [43])
    from require_once (template-functions.php [10])
    from index.php [14]
    checkAuthorization: admins => (
    2 => ( id => 2, user => admin, pass => 236e110b31dde2e9edf45b8d1ecd7715,
    name => Lisa Raymond, email => lisa@lisaraymond.com, rights => 81790,
    custom_data => , valid => 1, group => ),
    3 => ( id => 3, user => david graham, pass => da8eba3b24b49925495b49ab1149fbbc,
    name => David Graham, email => client email, rights => 80764,
    custom_data => , valid => 1, group => ),
    )
    zp_setCookie(zenphoto_auth, , 1262866946, /clients)::album_session=0
    zp_setCookie(zenphoto_ssl, , 1262866946, /clients)::album_session=0
    zp_getCookie(dynamic_locale)::album_session=0; SESSION[]=, COOKIE=
    zp_handle_password: $authType=zp_gallery_auth; $check_auth=; $check_user=;
    zp_getCookie(viewer_size_image_saved)::album_session=0; SESSION[]=, COOKIE=
    Zenphoto v1.2.8[4881]
    zp_getCookie(zenphoto_ssl)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(zenphoto_auth)::album_session=0; SESSION[]=, COOKIE=
    Backtrace: checkAuthorization()
    checkAuthorization called
    from require_once (auth_zp.php [52])
    from require_once (functions.php [43])
    from require_once (template-functions.php [10])
    from index.php [14]
    checkAuthorization: admins => (
    2 => ( id => 2, user => admin, pass => 236e110b31dde2e9edf45b8d1ecd7715,
    name => Lisa Raymond, email => lisa@lisaraymond.com, rights => 81790,
    custom_data => , valid => 1, group => ),
    3 => ( id => 3, user => david graham, pass => da8eba3b24b49925495b49ab1149fbbc,
    name => David Graham, email => client email, rights => 80764,
    custom_data => , valid => 1, group => ),
    )
    zp_setCookie(zenphoto_auth, , 1262866952, /clients)::album_session=0
    zp_setCookie(zenphoto_ssl, , 1262866952, /clients)::album_session=0
    zp_getCookie(dynamic_locale)::album_session=0; SESSION[]=, COOKIE=
    zp_handle_password: $authType=zp_gallery_auth; $check_auth=; $check_user=;
    zp_handle_password: $post_user=admin; $post_pass=oiCU_812; $auth=236e110b31dde2e9edf45b8d1ecd7715;
    Backtrace: checkAuthorization(236e110b31dde2e9edf45b8d1ecd7715)
    checkAuthorization called
    from checkLogon (lib-auth.php [323])
    from zp_handle_password (functions.php [1860])
    from require_once (controller.php [46])
    from index.php [23]
    checkAuthorization: admins => (
    2 => ( id => 2, user => admin, pass => 236e110b31dde2e9edf45b8d1ecd7715,
    name => Lisa Raymond, email => lisa@lisaraymond.com, rights => 81790,
    custom_data => , valid => 1, group => ),
    3 => ( id => 3, user => david graham, pass => da8eba3b24b49925495b49ab1149fbbc,
    name => David Graham, email => client email, rights => 80764,
    custom_data => , valid => 1, group => ),
    )
    checkAuthorization: checking: 2
    checkAuthorization: match
    zp_setCookie(zenphoto_auth, 236e110b31dde2e9edf45b8d1ecd7715, 1268418952, /clients)::album_session=0
    Zenphoto v1.2.8[4881]
    zp_getCookie(zenphoto_ssl)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(zenphoto_auth)::album_session=0; SESSION[]=, COOKIE=236e110b31dde2e9edf45b8d1ecd7715
    Backtrace: checkAuthorization(236e110b31dde2e9edf45b8d1ecd7715)
    checkAuthorization called
    from require_once (auth_zp.php [52])
    from require_once (functions.php [43])
    from require_once (template-functions.php [10])
    from index.php [14]
    checkAuthorization: admins => (
    2 => ( id => 2, user => admin, pass => 236e110b31dde2e9edf45b8d1ecd7715,
    name => Lisa Raymond, email => lisa@lisaraymond.com, rights => 81790,
    custom_data => , valid => 1, group => ),
    3 => ( id => 3, user => david graham, pass => da8eba3b24b49925495b49ab1149fbbc,
    name => David Graham, email => client email, rights => 80764,
    custom_data => , valid => 1, group => ),
    )
    checkAuthorization: checking: 2
    checkAuthorization: match
    zp_getCookie(dynamic_locale)::album_session=0; SESSION[]=, COOKIE=
    zp_handle_password: $authType=zp_gallery_auth; $check_auth=; $check_user=;
    zp_getCookie(zenphoto_last_album)::album_session=0; SESSION[]=, COOKIE=
    zp_setCookie(zenphoto_image_search_params, , 1262866953, /clients)::album_session=0
    zp_getCookie(viewer_size_image_saved)::album_session=0; SESSION[]=, COOKIE=
    Zenphoto v1.2.8[4881]
    zp_getCookie(zenphoto_ssl)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(zenphoto_auth)::album_session=0; SESSION[]=, COOKIE=236e110b31dde2e9edf45b8d1ecd7715
    Backtrace: checkAuthorization(236e110b31dde2e9edf45b8d1ecd7715)
    checkAuthorization called
    from require_once (auth_zp.php [52])
    from require_once (functions.php [43])
    from require_once (template-functions.php [10])
    from index.php [14]
    checkAuthorization: admins => (
    2 => ( id => 2, user => admin, pass => 236e110b31dde2e9edf45b8d1ecd7715,
    name => Lisa Raymond, email => lisa@lisaraymond.com, rights => 81790,
    custom_data => , valid => 1, group => ),
    3 => ( id => 3, user => david graham, pass => da8eba3b24b49925495b49ab1149fbbc,
    name => David Graham, email => client email, rights => 80764,
    custom_data => , valid => 1, group => ),
    )
    checkAuthorization: checking: 2
    checkAuthorization: match
    zp_getCookie(dynamic_locale)::album_session=0; SESSION[]=, COOKIE=
    zp_handle_password: $authType=zp_gallery_auth; $check_auth=; $check_user=;
    zp_getCookie(viewer_size_image_saved)::album_session=0; SESSION[]=, COOKIE=
  • This is indicating that there is a gallery user/password different from wolf/wolf. Could you also get the log for when you successfully log in to the album then go back and visit the index page? If there is a different gallery password, then that part does not make sense,so maybe the log will tell us something.

    Delete the old log before you do that test.
  • There are 2 admins for the site. Myself and David. Then he needs to be able to password protect each album for a client. OK I deleted to debug log. Then I went to the site and tried logging in as wolf/wolf. Below is what the new log says:

    Zenphoto v1.2.8[4881]
    zp_getCookie(zenphoto_ssl)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(zenphoto_auth)::album_session=0; SESSION[]=, COOKIE=
    Backtrace: checkAuthorization()
    checkAuthorization called
    from require_once (auth_zp.php [52])
    from require_once (functions.php [43])
    from require_once (template-functions.php [10])
    from index.php [14]
    checkAuthorization: admins => (
    2 => ( id => 2, user => admin, pass => 236e110b31dde2e9edf45b8d1ecd7715,
    name => Lisa Raymond, email => lisa@lisaraymond.com, rights => 81790,
    custom_data => , valid => 1, group => ),
    3 => ( id => 3, user => david graham, pass => da8eba3b24b49925495b49ab1149fbbc,
    name => David Graham, email => client email, rights => 80764,
    custom_data => , valid => 1, group => ),
    )
    zp_setCookie(zenphoto_auth, , 1262882942, /clients)::album_session=0
    zp_setCookie(zenphoto_ssl, , 1262882942, /clients)::album_session=0
    zp_getCookie(dynamic_locale)::album_session=0; SESSION[]=, COOKIE=
    zp_handle_password: $authType=zp_gallery_auth; $check_auth=; $check_user=;
    zp_getCookie(zenphoto_last_album)::album_session=0; SESSION[]=, COOKIE=
    zp_setCookie(zenphoto_image_search_params, , 1262882942, /clients)::album_session=0
    zp_getCookie(viewer_size_image_saved)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(zp_album_auth_6)::album_session=0; SESSION[]=, COOKIE=
    Zenphoto v1.2.8[4881]
    zp_getCookie(zenphoto_ssl)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(zenphoto_auth)::album_session=0; SESSION[]=, COOKIE=
    Backtrace: checkAuthorization()
    checkAuthorization called
    from require_once (auth_zp.php [52])
    from require_once (functions.php [43])
    from require_once (template-functions.php [10])
    from index.php [14]
    checkAuthorization: admins => (
    2 => ( id => 2, user => admin, pass => 236e110b31dde2e9edf45b8d1ecd7715,
    name => Lisa Raymond, email => lisa@lisaraymond.com, rights => 81790,
    custom_data => , valid => 1, group => ),
    3 => ( id => 3, user => david graham, pass => da8eba3b24b49925495b49ab1149fbbc,
    name => David Graham, email => client email, rights => 80764,
    custom_data => , valid => 1, group => ),
    )
    zp_setCookie(zenphoto_auth, , 1262882943, /clients)::album_session=0
    zp_setCookie(zenphoto_ssl, , 1262882943, /clients)::album_session=0
    zp_getCookie(dynamic_locale)::album_session=0; SESSION[]=, COOKIE=
    zp_handle_password: $authType=zp_gallery_auth; $check_auth=; $check_user=;
    zp_getCookie(viewer_size_image_saved)::album_session=0; SESSION[]=, COOKIE=
    Zenphoto v1.2.8[4881]
    zp_getCookie(zenphoto_ssl)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(zenphoto_auth)::album_session=0; SESSION[]=, COOKIE=
    Backtrace: checkAuthorization()
    checkAuthorization called
    from require_once (auth_zp.php [52])
    from require_once (functions.php [43])
    from require_once (template-functions.php [10])
    from index.php [14]
    checkAuthorization: admins => (
    2 => ( id => 2, user => admin, pass => 236e110b31dde2e9edf45b8d1ecd7715,
    name => Lisa Raymond, email => lisa@lisaraymond.com, rights => 81790,
    custom_data => , valid => 1, group => ),
    3 => ( id => 3, user => david graham, pass => da8eba3b24b49925495b49ab1149fbbc,
    name => David Graham, email => client email, rights => 80764,
    custom_data => , valid => 1, group => ),
    )
    zp_setCookie(zenphoto_auth, , 1262882957, /clients)::album_session=0
    zp_setCookie(zenphoto_ssl, , 1262882957, /clients)::album_session=0
    zp_getCookie(dynamic_locale)::album_session=0; SESSION[]=, COOKIE=
    zp_handle_password: $authType=zp_gallery_auth; $check_auth=; $check_user=;
    zp_handle_password: $post_user=wolf; $post_pass=wolf; $auth=280a3fca42fc65b9331191be8c0e092e;
    zp_handle_password: invalid credentials
    zp_setCookie(zp_gallery_auth, , 1262882957, /clients)::album_session=0
    zp_getCookie(zenphoto_last_album)::album_session=0; SESSION[]=, COOKIE=
    zp_setCookie(zenphoto_image_search_params, , 1262882957, /clients)::album_session=0
    zp_getCookie(viewer_size_image_saved)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(zp_album_auth_6)::album_session=0; SESSION[]=, COOKIE=
    Zenphoto v1.2.8[4881]
    zp_getCookie(zenphoto_ssl)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(zenphoto_auth)::album_session=0; SESSION[]=, COOKIE=
    Backtrace: checkAuthorization()
    checkAuthorization called
    from require_once (auth_zp.php [52])
    from require_once (functions.php [43])
    from require_once (template-functions.php [10])
    from index.php [14]
    checkAuthorization: admins => (
    2 => ( id => 2, user => admin, pass => 236e110b31dde2e9edf45b8d1ecd7715,
    name => Lisa Raymond, email => lisa@lisaraymond.com, rights => 81790,
    custom_data => , valid => 1, group => ),
    3 => ( id => 3, user => david graham, pass => da8eba3b24b49925495b49ab1149fbbc,
    name => David Graham, email => client email, rights => 80764,
    custom_data => , valid => 1, group => ),
    )
    zp_setCookie(zenphoto_auth, , 1262882957, /clients)::album_session=0
    zp_setCookie(zenphoto_ssl, , 1262882957, /clients)::album_session=0
    zp_getCookie(dynamic_locale)::album_session=0; SESSION[]=, COOKIE=
    zp_handle_password: $authType=zp_gallery_auth; $check_auth=; $check_user=;
    zp_getCookie(viewer_size_image_saved)::album_session=0; SESSION[]=, COOKIE=
  • I guess I was not clear. I need you to actually log in to the album with wolf/wolf. Once you have logged in, return the the gallery index page. I need to be able to see the output from both of those to see what things look like when everything works.
  • ah ok sorry so I am deleting the log, click on the wolf image then log in on that page...gotcha. Be right back with that!
  • OK here you go:

    Zenphoto v1.2.8[4881]
    zp_getCookie(zenphoto_ssl)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(zenphoto_auth)::album_session=0; SESSION[]=, COOKIE=236e110b31dde2e9edf45b8d1ecd7715
    Backtrace: checkAuthorization(236e110b31dde2e9edf45b8d1ecd7715)
    checkAuthorization called
    from require_once (auth_zp.php [52])
    from require_once (functions.php [43])
    from require_once (template-functions.php [10])
    from index.php [14]
    checkAuthorization: admins => (
    2 => ( id => 2, user => admin, pass => 236e110b31dde2e9edf45b8d1ecd7715,
    name => Lisa Raymond, email => lisa@lisaraymond.com, rights => 81790,
    custom_data => , valid => 1, group => ),
    3 => ( id => 3, user => david graham, pass => da8eba3b24b49925495b49ab1149fbbc,
    name => David Graham, email => davidgraham2@mac.com, rights => 80764,
    custom_data => , valid => 1, group => ),
    )
    checkAuthorization: checking: 2
    checkAuthorization: match
    zp_getCookie(dynamic_locale)::album_session=0; SESSION[]=, COOKIE=
    zp_handle_password: $authType=zp_gallery_auth; $check_auth=; $check_user=;
    zp_getCookie(zenphoto_last_album)::album_session=0; SESSION[]=, COOKIE=
    zp_setCookie(zenphoto_image_search_params, , 1262886067, /clients)::album_session=0
    zp_setCookie(zenphoto_auth, , 1262886067, /clients)::album_session=0
    Zenphoto v1.2.8[4881]
    zp_getCookie(zenphoto_ssl)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(zenphoto_auth)::album_session=0; SESSION[]=, COOKIE=
    Backtrace: checkAuthorization()
    checkAuthorization called
    from require_once (auth_zp.php [52])
    from require_once (functions.php [43])
    from require_once (template-functions.php [10])
    from index.php [14]
    checkAuthorization: admins => (
    2 => ( id => 2, user => admin, pass => 236e110b31dde2e9edf45b8d1ecd7715,
    name => Lisa Raymond, email => lisa@lisaraymond.com, rights => 81790,
    custom_data => , valid => 1, group => ),
    3 => ( id => 3, user => david graham, pass => da8eba3b24b49925495b49ab1149fbbc,
    name => David Graham, email => davidgraham2@mac.com, rights => 80764,
    custom_data => , valid => 1, group => ),
    )
    zp_setCookie(zenphoto_auth, , 1262886068, /clients)::album_session=0
    zp_setCookie(zenphoto_ssl, , 1262886068, /clients)::album_session=0
    zp_getCookie(dynamic_locale)::album_session=0; SESSION[]=, COOKIE=
    zp_handle_password: $authType=zp_gallery_auth; $check_auth=; $check_user=;
    zp_getCookie(zenphoto_last_album)::album_session=0; SESSION[]=, COOKIE=
    zp_setCookie(zenphoto_image_search_params, , 1262886068, /clients)::album_session=0
    zp_getCookie(viewer_size_image_saved)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(zp_album_auth_6)::album_session=0; SESSION[]=, COOKIE=
    Zenphoto v1.2.8[4881]
    zp_getCookie(zenphoto_ssl)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(zenphoto_auth)::album_session=0; SESSION[]=, COOKIE=
    Backtrace: checkAuthorization()
    checkAuthorization called
    from require_once (auth_zp.php [52])
    from require_once (functions.php [43])
    from require_once (template-functions.php [10])
    from index.php [14]
    checkAuthorization: admins => (
    2 => ( id => 2, user => admin, pass => 236e110b31dde2e9edf45b8d1ecd7715,
    name => Lisa Raymond, email => lisa@lisaraymond.com, rights => 81790,
    custom_data => , valid => 1, group => ),
    3 => ( id => 3, user => david graham, pass => da8eba3b24b49925495b49ab1149fbbc,
    name => David Graham, email => davidgraham2@mac.com, rights => 80764,
    custom_data => , valid => 1, group => ),
    )
    zp_setCookie(zenphoto_auth, , 1262886068, /clients)::album_session=0
    zp_setCookie(zenphoto_ssl, , 1262886068, /clients)::album_session=0
    zp_getCookie(dynamic_locale)::album_session=0; SESSION[]=, COOKIE=
    zp_handle_password: $authType=zp_gallery_auth; $check_auth=; $check_user=;
    zp_getCookie(viewer_size_image_saved)::album_session=0; SESSION[]=, COOKIE=
    Zenphoto v1.2.8[4881]
    zp_getCookie(zenphoto_ssl)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(zenphoto_auth)::album_session=0; SESSION[]=, COOKIE=
    Backtrace: checkAuthorization()
    checkAuthorization called
    from require_once (auth_zp.php [52])
    from require_once (functions.php [43])
    from require_once (template-functions.php [10])
    from index.php [14]
    checkAuthorization: admins => (
    2 => ( id => 2, user => admin, pass => 236e110b31dde2e9edf45b8d1ecd7715,
    name => Lisa Raymond, email => lisa@lisaraymond.com, rights => 81790,
    custom_data => , valid => 1, group => ),
    3 => ( id => 3, user => david graham, pass => da8eba3b24b49925495b49ab1149fbbc,
    name => David Graham, email => davidgraham2@mac.com, rights => 80764,
    custom_data => , valid => 1, group => ),
    )
    zp_setCookie(zenphoto_auth, , 1262886071, /clients)::album_session=0
    zp_setCookie(zenphoto_ssl, , 1262886071, /clients)::album_session=0
    zp_getCookie(dynamic_locale)::album_session=0; SESSION[]=, COOKIE=
    zp_handle_password: $authType=zp_album_auth_6; $check_auth=280a3fca42fc65b9331191be8c0e092e; $check_user=wolf;
    zp_getCookie(zp_album_auth_6)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(zenphoto_last_album)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(zenphoto_image_search_params)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(viewer_size_image_saved)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(zp_album_auth_6)::album_session=0; SESSION[]=, COOKIE=
    Zenphoto v1.2.8[4881]
    zp_getCookie(zenphoto_ssl)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(zenphoto_auth)::album_session=0; SESSION[]=, COOKIE=
    Backtrace: checkAuthorization()
    checkAuthorization called
    from require_once (auth_zp.php [52])
    from require_once (functions.php [43])
    from require_once (template-functions.php [10])
    from index.php [14]
    checkAuthorization: admins => (
    2 => ( id => 2, user => admin, pass => 236e110b31dde2e9edf45b8d1ecd7715,
    name => Lisa Raymond, email => lisa@lisaraymond.com, rights => 81790,
    custom_data => , valid => 1, group => ),
    3 => ( id => 3, user => david graham, pass => da8eba3b24b49925495b49ab1149fbbc,
    name => David Graham, email => davidgraham2@mac.com, rights => 80764,
    custom_data => , valid => 1, group => ),
    )
    zp_setCookie(zenphoto_auth, , 1262886078, /clients)::album_session=0
    zp_setCookie(zenphoto_ssl, , 1262886078, /clients)::album_session=0
    zp_getCookie(dynamic_locale)::album_session=0; SESSION[]=, COOKIE=
    zp_handle_password: $authType=zp_album_auth_6; $check_auth=280a3fca42fc65b9331191be8c0e092e; $check_user=wolf;
    zp_handle_password: $post_user=wolf; $post_pass=wolf; $auth=280a3fca42fc65b9331191be8c0e092e;
    zp_handle_password: valid credentials
    zp_setCookie(zp_album_auth_6, 280a3fca42fc65b9331191be8c0e092e, 1268438078, /clients)::album_session=0
    Zenphoto v1.2.8[4881]
    zp_getCookie(zenphoto_ssl)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(zenphoto_auth)::album_session=0; SESSION[]=, COOKIE=
    Backtrace: checkAuthorization()
    checkAuthorization called
    from require_once (auth_zp.php [52])
    from require_once (functions.php [43])
    from require_once (template-functions.php [10])
    from index.php [14]
    checkAuthorization: admins => (
    2 => ( id => 2, user => admin, pass => 236e110b31dde2e9edf45b8d1ecd7715,
    name => Lisa Raymond, email => lisa@lisaraymond.com, rights => 81790,
    custom_data => , valid => 1, group => ),
    3 => ( id => 3, user => david graham, pass => da8eba3b24b49925495b49ab1149fbbc,
    name => David Graham, email => davidgraham2@mac.com, rights => 80764,
    custom_data => , valid => 1, group => ),
    )
    zp_setCookie(zenphoto_auth, , 1262886079, /clients)::album_session=0
    zp_setCookie(zenphoto_ssl, , 1262886079, /clients)::album_session=0
    zp_getCookie(dynamic_locale)::album_session=0; SESSION[]=, COOKIE=
    zp_handle_password: $authType=zp_album_auth_6; $check_auth=280a3fca42fc65b9331191be8c0e092e; $check_user=wolf;
    zp_getCookie(zp_album_auth_6)::album_session=0; SESSION[]=, COOKIE=280a3fca42fc65b9331191be8c0e092e
    zp_handle_password: valid cookie
    zp_getCookie(zenphoto_last_album)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(zenphoto_image_search_params)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(viewer_size_image_saved)::album_session=0; SESSION[]=, COOKIE=
    zp_getCookie(zp_album_auth_6)::album_session=0; SESSION[]=, COOKIE=280a3fca42fc65b9331191be8c0e092e
  • Thanks for your patience. I now understand what is happening. (And feel pretty stupid for not realizing it in the first place.)

    But, let me make sure I have my facts correct:

    Your gallery itself is not password protected.
    Your album "wolf" is protected with a guest user/password=wolf/wolf.

    So, anyone can view the gallery index.php page.

    But you have also placed a login form on that page. There is the rub. Guest logins are context sensitive. For instance, a if a guest attempts to log on to the index page Zenphoto will have no clue as to what album he may later wish to view. The logon context for guests loggin in from index.php will be the gallery context and the guest user/password required would be the gallery guest user/password (which your gallery does not have.)

    It is not until the guest attempts to visit a particular album that we know which user/password to validate against. So when we log-on from "wolf" everything is fine. Once successfully validated, the logon is stored in a cookie. Now when we visit the gallery index we have valid credentials for the "wolf" album so we allow the thumbnail to be displayed.

    So, your optons are as follows (depending on what you want to accomplish)

    1. Remove the logon form from the gallery page. It is really not doing anything since everyone can view the gallery index anyway. Then guest users will need to validate when they visit protected albums.

    2. Have only a gallery wide guest user/password. This presumes that any guest should be able to view any album. Then the guest can log on anywhere. (If there is no album guest user/password the credential validation reverts to the gallery.)

    3. Instead of using the guest user/password for your visitors assign them zenphoto "admin" user passwords with the appropriate set of rights. The logon process first checks to see if the credentials presented are valid a zenphoto user. If so that user is logged on.
  • This is very odd because I have it working with the login form on another site...very confusing.

    OK so 2 questions on this

    1) If I remove the login form from the main page and the albums are unpublished (because they need to be not seen) how do they log in?

    2) How do I move the login form up higher on the default theme?? If I keep it on there.

    Thanks!
  • 1. They will login when they visit the album that is protected. That page will have a logon form. Anytime a guest attempts to visit an album which is password protected and they have not logged into that album, they will be given a password form regardless of this plugin.

    2. You can disable the form either by setting the plugin option or by passing a parameter in the call. The only reason for the form in your case is if you and your fellow admin want to logon from the gallery as oposed to visiting the URL <yoursite>/zenphoto/admin

    There is clearly some difference between the sites. Perhaps you have a gallery password setup on the other site.
  • Nope no gallery password on the other site. Baffling!

    But the problem is that all of the albums are unpublished so it just shows you a blank page with his logo when you go to it. No where for people to log in...

    Not disabling the form I just want to move it up higher on the page. With the albums being unpublished there's a big white space above the login box...
  • Sorry, misunderstod. Just move the funtion call to where you want the form.
Sign In or Register to comment.