![]() |
|
Can't log in, but it's recognize user/password - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Can't log in, but it's recognize user/password (/thread-9047.html) Pages:
1
2
|
Can't log in, but it's recognize user/password - choobek - 2011-09-06 Hi! At first I want say Thank You for all programmers who made this gallery. It's very useful and easy to use. Let's go to the problem. I made a new gallery and wanted to put it on server. On other servers or local, everything was all right but on that server, logging in seems to doesn't work. When I put some uncorrect login/password I get the message that password it's incorrect - so It's fine. But when I put correct information and click Log in, the site is refreshing and address in web browser is http://exampleaddress.com/zenphoto/zp-core/admin.php# with this "#" at the end. I can't open admin panel. I even don't know if I'm logged in but I think I'm not because Admin Toolbox on the main site is still hidden. I saw few topics with the same problem but they weren't solved. I tried to reinstall all package and fill it with my theme, sql database, photos and cached photos(thumbs). I tried to install fresh nightly builds. It didn't solve the problem. The difference between that server and others (where everything was all right) is that I had to uncomment and change this line in zp-config.php:
because the links, imgs, even css didn't work. I don't know if this is connected with my problem. Defining SERVERPATH is still commented. Please, help! Can't log in, but it's recognize user/password - sbillard - 2011-09-06 What happens if you use the same link without the crosshatch? Also, is the link you quote the actual link shown or just an example as the text might indicate? Can't log in, but it's recognize user/password - choobek - 2011-09-07 Crosshatch is showing when I put correct or also incorrect login/password. If pass is wrong, it's throwing out error that pass is wrong. If pass is correct it's refreshing the page. The link http://exampleaddress.com/zenphoto/zp-core/admin.php# is of course example. True link is http://interplaza.com/www/grodzisko/zp-core/admin.php# Can't log in, but it's recognize user/password - acrylian - 2011-09-07 The "www" in your link is really weird. Normally that "www" directory is only used internally for the web root on a server. Besides that the url does not even work for me. The only that works is the interplaza one. Can't log in, but it's recognize user/password - choobek - 2011-09-08 Hi, I had been analyzing the code and I found that function zp_loggedin is never true. The box with error about wrong login/pass is not depend of zp_loggedin's true or false.. Interesting thing is that when I run setup it's throwing me error: `Perhaps there was a problem with the upload. You should check the following files: zp-core/admin.php zp-core/setup.php zp-core/setup/setup-functions.php zp-core/setup/setup-option-defaults.php zp-core/setup/setup-primitive.php zp-core/setup/setup-sqlform.php zp-core/setup/setup.css zp-core/setup/setup_permissions_changer.php zp-core/setup/setup_set-mod_rewrite.php zp-core/setup/setup_themeOptions.php` I did a little mess with versions of zenphoto when I was building this gallery but also I tried to replace this files from all the versions I used. There is still an error and the second one about version of PHP on server. It's PHP 5.2.17. Is it problem? Maybe now you can help me? I was trying to go further through the code but I stucked in auth_zp.php file.. Maybe with the server is sth wrong? On other everything is all right. Can't log in, but it's recognize user/password - sbillard - 2011-09-08 If you did indeed mix versions of the script files things are not likely to work. The Setup error is in indication that this MIGHT be the case, but really all setup can do is check the file times of the scripts to see if they are consistent, so maybe it is also the case that the files are correct but their last modification date is different from the rest of the install. Your best bet would be to delete all the files and reupload from the original source. There is a plugin that loggs security access to a security log in your zp-data folder. Check to see if that log exists. If so it will tell you more about the logins. I doubt the PHP version is a problem, but we do only test with version 5.3. Anyway, if it were there would be some error message which will indicate what the problem is. The most likely source of your problem would be how cookies are handled. If your server is not handling cookies for some reason you will not be able to login. There is also a define in globas-definitions.php for Can't log in, but it's recognize user/password - choobek - 2011-09-09 I checked security logs and I found that if the log/pass is correct, the log is for example like this:
Like everything was all right. I changed DEBUG_LOGIN to true and didn't see any debug_log.txt. I checked the attribute, secure rights for zp-core folder and it's 777. Why debug_login isn't showing? Can't log in, but it's recognize user/password - sbillard - 2011-09-09 The debug log will be in the zp-data folder. Can't log in, but it's recognize user/password - choobek - 2011-09-10 I checked in every folder and I didn't find a debug log. In zp-data folder is only setup_log.txt and security_log.txt Can't log in, but it's recognize user/password - sbillard - 2011-09-10 Be sure you have actually updated the script on your server with that changed script. Then be sure you do attempt to login. If you have done both these there will be a debug log. Can't log in, but it's recognize user/password - yogal - 2011-09-17 Hi, I'd like to say that I have the EXACT same issue. I updated my Zenphoto to the newest version 1.4.1.3 (my previous one was old by 12 releases). The update went swiftly, as a result I was automatically logged in. But as soon as I logged out, I was not able to log back in. The symptoms are exactly the same, as choobek said. Correct password does nothing besides appending '#' to the URL. Wrong password displays error message as it should. After reading this topic I thought that maybe something wrong went with the update, files not overwritten ? Etc. So I made a fresh install in /zenphoto directory. At the setup screen I entered DB details (DB is the previous one but after updating) and then copied /albums from the old gallery. As I result of fresh install I was automatically logged in. Everything worked correctly. My previous gallery was inside /gallery directory so I deleted it, renamed /zenphoto to /gallery, changed the RewriteBase from /zenphoto to /gallery and also changed the define('WEBPATH', '/zenphoto'); to define('WEBPATH', '/galeria'); in zp-config.php file. It worked correctly, paths were correct (for static files) etc. But the login problem returned. Heres the login debug log I got after (I think) 1 login attempt: ` zp_setCookie(zenphoto_auth, f817cf8f8c17d164f6655c57e2609e50, , )::album_session=0 Oddly enough I tried running setup.php again, reuploaded that file and /setup folder to /zp-core and re-ran the setup. I was logged in as a result! But only for one session. Consecutive tries resulted in the same failure... Maybe the problem lies within database ? Thanks in advance! Regards, Can't log in, but it's recognize user/password - acrylian - 2011-09-17 My collegue will surely respond later. Can't log in, but it's recognize user/password - sbillard - 2011-09-17 This log indicates that the login cookie is not set after the login. As to why that would be, I have no clue. But if the cookie is not present then the user is not logged in. In the case of a login to the back-end (admin pages) there should be both a cookie and a session variable. That is not the case in the logs above. Perhaps a guess it that the cookie base is not working correctly when you have set the WEBPATH define. Any chance you can make an install that does not require you setting the define? Can't log in, but it's recognize user/password - yogal - 2011-09-18 Hi, thanks for the response. I created a local installation (nginx server) with the database imported. I did not need to set the Webpath define. Everything worked well, but I am not sure if that is the only cause. I then commented out the define inside zp-config.php file on my production server. This didn't help. I saw the paths getting messed up but login was still inaccessible. Is there anything else that setting the Webpath define changes ? That I should revert ? Because it really seems like that is the issue here. I need the define because I have my paths set up like that:
Without it, paths are like that: example.com/zp-core/... , without the /gallery/ part. Thanks in advance. Regards, Can't log in, but it's recognize user/password - sbillard - 2011-09-18 The path thing was a longshot. Is "subdir" accessable from the WEB? That is can you access the gallery via I think perhaps the key here is the sessions not being set. Is there anything in the configuration that prohibits sessions? Can't log in, but it's recognize user/password - sbillard - 2011-09-18 Well, I have found a problem with the back-end sessions. (Which no one will see if cookies are working.) You should try the nightly build that will be made tonight. If login on the back-end works with that you will probably have to enable "gallery sessions" on the gallery option tab for your site to work. Before you do that, repeat the debug experiment above on the new install. I have added some debug that MIGHT give us a clue on the cookies. Be sure to delete your debug-log.txt file before the test to get rid of the old data. Can't log in, but it's recognize user/password - yogal - 2011-09-21 Hi! I finally got to try as you've advised. I downloaded the nightly (zenphoto-2011-09-19-trunk.tar.gz) and updated my production install. It works great now! With or without 'defined webpath'. Heres the debug_log without enabling Gallery Sessions and with Webpath define COMMENTED OUT: ` zp_setCookie(zenphoto_auth, f817cf8f8c17d164f6655c57e2609e50, 5184000, /galeria)::album_session=0; SESSION=045ca17b747fbae006bfdc90f8b1327f Thanks for your support! Regards, Can't log in, but it's recognize user/password - sbillard - 2011-09-21 Thanks for the above. It does seem that cookies are not working on this site. All the data you provided is as we would expect, so I have no idea why the cookies do not get preserved. Sometimes there are browser configurations that do not store and retrieve cookies, but I would not expect that to be site dependent. (But who knows, maybe your browser does not "trust" the new site.) Cookies are used for more than just user login. They are involved in searches and guest user passwords among other things. If you enable Can't log in, but it's recognize user/password - Birch - 2011-10-04 Hi there. I just did an install of Zenphoto. I've been searching through all sorts of light cms applications that could focus on photsharing for a family site. Can't log in, but it's recognize user/password - acrylian - 2011-10-04 So what do you have your site set to: Cookies or sessions? If neither work for you contact your host. |