Can't login to newly installed zenphoto

I installed the second zenphoto on my site hosted on bluehost.com, using Simplescripts. I specified my own admin username and password when I installed, instead of letting the system generate an admin login. Yet when I tried to log in it keeps telling me my password is wrong. I then tried to reset it a number of times, yet nothing happens on the page, and I kept receiving notification emails that tell me the login information I created for myself. Please help, and thanks in advance!

Comments

  • Well, this happened to me before, I went into phpmyadmin and edited the database.. Passwords are stored in MD5 I believe, so you need to get a converter to change text to MD5...

    Here are some temporary passwords for you...
    Format is "password - md5"
    So, you pick one of the following and put the md5 in your database, and then enter your password on ur admin panel using ur existing username...

    80268 - c47b92d3a6bc404455085a89c8f59b06
    94275 - 7cb5094db418e5d34d83e283ccb48109
    53174 - 263a49ecce3f2840f74b6aa66f98ded4
    88536 - cc22a150c4bfeeec8eb68080e65d80d1
    36963 - ac957f861e66e00b823bd6d0ffcb603c
    85521 - c9311604a2221564bb09c9b89bdfc401
    40438 - 775895803f468b282a3abb73fe838503
    41327 - b05d4080611fca7960d66263f2b29fa5
    80421 - 1b751133c338dbcdea3f994535b45773
    18994 - efb61dd984183066a8815190a28bd956

    I am not zenphoto staff, This is just a suggestion, dont trust everything I say, just newb advice!
  • The latest nightly fixed the login problem for those with an uncompatible PHP-version. If however, you're in the middle of the upgrade you can't request a password reset. The solution is to hack ZP to allow you to log in and perform the upgrade. Then you can reset the password and continue on happily. :)

    In auth_zp.php change line 43:
    `zp_setcookie("zenphoto_auth", md5($post_user.$post_pass), time()+5184000, $cookiepath);`
    to:
    `zp_setcookie("zenphoto_auth", md5($post_pass), time()+5184000, $cookiepath);`

    In functions.php, the checkLogon($user, $pass) function. Change line 2077:
    `$md5 = md5($user.$pass);`
    to
    `$md5 = md5($pass);`

    Now - log into your database and set the admin password field to any of the checksums above and you'll be able to login with the corresponding number as password. As soon as the update is complete; undo the changes, log out and request a password reset.
  • Thanks for the replies! Since none of it worked, I eventually uninstalled and reinstalled the whole thing (now it's v1.2), and it still doesn't work (I did change the lines in the php files), nor can I find MD5 or anything for me change password with in the phpMYadmin.. I'm at my wit's end here, any help would be greatly appreciated again!
  • bump.
  • UPDATE:

    Now I uninstalled the gallery and try to do a fresh install by downloading the pack from zp website and install thru ftp. After everything is copied into the directory and setup.php activated, two fields have problems:

    1. PHP magic_quotes_gpc [is enabled] You should consider disabling magic_quotes_gpc.
    I followed the instruction, adding the line into the .htaccess file, but it simply breaks the setup process--nothing shows after I refresh the setup page. I have tried adding the line in and outside of the main lines, no difference.

    2.Could not connect to the MySQL server. Check the user, password, and database host in your zp-config.php file and try again.
    I specified my own username and password, and left 'host' as 'localhost'. Not sure about how to fill in name for database, so just put 'gallery' and the error prompt didn't include this part or prefix (zp_salyu). I checked zp-config.php, everything seems to be in order, yet the error remains.

    Please advise and help, thanks very much in advance!
  • acrylian Administrator, Developer
    1. If you don't need any support for none English languages like Asian ones you can ignore that for now.

    2. You need to know the db name and the db server name (host). Ask your ISP for that.
  • the magic_quotes can also be changed in the PHP.ini file. Many servers do not allow the change to be done in the .htccess file.
  • Thanks for the replies, and in response:

    1. I do, unfortunately, need to use Chinese and Japanese. The reason I tried to alter .htaccess and not using the other method is because I can't find php.ini file anywhere. I've looked through all the zenphoto folders, root folders under my domain, and am pretty sure it's not hidden anywhere. What do I do then? Do I create one?

    2. ISP as in the local company that provides me internet service, or the server that hosts my site (bluehost)? Bluehost in fact has a semi-automated installation method for zenphoto, and my fellow webmaster has succeeded in installing one through it, but I have had no luck (see first post).

    Thanks again!
  • acrylian Administrator, Developer
    1. You can't create a php.ini yourself, no all ISP provide access to that. Also it is not possible to change the magic quotes setting via .htaccess prior to Php 5.3 (info of my host). If you don't have access to the php.ini you need to ask your ISP to do that for you. Mine did without any problem.
  • PHP magic_quotes_gpc is not related to the charactersets. While it is recommended that the option be reset, it really is not a serious problem. If you can't get the option reset, don't worry about it.
  • Hi this is a fix for those that can't login to newly installed zenphoto by Simple Scripts on bluehost.
    Login to Bluehost and go to your PHPmyadmin and navigate to the database that you have for Zenphoto. In here you have to go to your zp_administrators. Go ahead and click on edit the admin that you have created for your zenphoto (that would be the pen icon on the same line as the admin entry). Here there should be an email field. Put the email that you want to use. Click on Go to save all changes. Now you can go to your Zenphoto admin login page again and now when you try to put in your login and pass you will get the error. But this time it will have a code that you can enter to email you a link to reset your password. Reset your password and viola! zenphoto works! Hope this helps. ^_^
  • staz Member
    I too am unable to login after just installing Zenphoto. I continue to get the following error:

    "There was an error logging in. Check your username and password and try again."

    I am positive I'm using the correct username/password because I just set it up five minutes earlier. I have also tried the username/password on PHPmyadmin and still the same results. This is very confusing and frustrating. Any ideas as to why I suddenly can't login after just setting up zenphoto? Or why there is no way to request a new username/password from the login page when all else fails?
    website: http://eye.brazenzen.org
  • No need to post multiple times.
Sign In or Register to comment.