Hi,
I'm unable to login to setup.php theres no errors it just keeps giong back to setup.php login site.
I have set up the DB and a user name and pass in the zp-config.php (and retried with at new user/pass, still no go)
.htaccess also set up
RewriteBase /zenphoto
Is there more?
Comments
Ok, on index.php i get this error
MySQL Query ( SELECT *, (date + 0) AS date FROM zenalbums WHERE `folder`='test' LIMIT 1; ) Failed. Error: Table 'GrithZen.zenalbums' doesn't exist
I oploaded one folder 'test' with one picture in it, they all have permissions 777
Might be a problem with cookies or the login script... are you sure you have the right admin_user and admin_pass in zp-config.php? Those are the ones you use to log in to setup.
setup.php didnt work
changed permissions on album and cache
setup.php didnt work
deleted test album
setup.php didn't work
I'm sure i have the right admin and pass tried several different.
why won't it work, it makes no sense!
a friend of mine has it working.
thanks for the help!!!
$conf['mod_rewrite'] = false;
Set up the database connection, changed the attributes and ran zen/setup.php.
A login form showed up, so I entered the admin/1234 and got back to the login form. And again and again. When I enter something else, it says "There was an error logging in."
No tables created in the database, no other error.
The index.php shows empty gallery.
The server runs on Windows.
Can anybody help? I am desperately looking for a nice and simple gallery.
Attempt to login to setup.php but entering the correct user/password (as per $conf['adminuser'] and $conf['adminpass'] in zp-config.php) just takes me back to the login form again without displaying an error. Entering incorrect user/password gives me the error "There was an error logging in.
Check your username and password and try again."
I'm on a Windows machine with IIS and also have mod_rewrite off ($conf['mod_rewrite'] = false;)
I see that Somebum was able to login from another machine which I'll try, but shouldn't have to...
Has anyone resolved this without logging in from a different machine?
Thanks. In the meantime, where might I download previous versions of zenphoto?
Try deleting your cookies first? Sorry for this.. :-/
thanks for the link. Based on the previous comments, I definitely deleted my cookies when retrying the login... but no luck. Going to /zen/setup.php didn't seem to work for me either. I've yet to try logging in from a different machine, but would rather not have to resort to that.
Sounds like you're aware of the 1.0.3 cookie issues - is there any timetable on a new version with a fix to this?
For now, I'll see if I can get 1.0.2b up and running. Thanks again!
I have zenphoto running fine on a LAMP server, so I'm guessing maybe Windows/IIS could have a role in this issue...
Can I get a phpinfo() output from you perhaps?
-------------------------------------------------------
Edit: Thought of something we could try. Have you looked at the WEBPATH variable at the bottom of zp-config.php? Try setting that manually.
======================================================================================
setcookie + header Location + IIS 5 = Trouble
It took me a long time to figure out what was causing a missing cookie in one system while it worked perfectly in another...
See this one: http://support.microsoft.com/kb/q176113/
In short, this WILL NEVER WORK IN IIS 5:
<?php
header("Pragma: no-cache");
header('Location: http://www.example.com/');
setcookie('AA','1',0,'/');
setcookie('BB','2',time() + 24 * 3600,'/');
?>
You will ONLY get the Location Header, everything else will be "cut out" by IIS 5 CGI implementation.
Solutions:
1- Migrate to Apache/IIS6/Whatever
2- Use a Non Parsed Header Script (nph-*.php)
3- Try with header('Refresh: 0; $URL');
======================================================================================
This is in fact what zenphoto is doing: `setcookie` followed by `header("Location: ...");` redirect.
In fact, the redirect is usually not used, and you can delete that line safely to set your cookie better, with the possible downside of having to navigate a little more.
It's line 31 in `auth_zp.php`:
`header("Location: " . FULLWEBPATH . $redirect);`
Just comment it out (put `//` before it) or delete it and it should work.
I will work on a long-term solution for this in the next version if that works. Let me know! Thanks!
Edit: Also if you want (and know how) try replacing that line with:
`header('Refresh: 0; ' . FULLWEBPATH . $redirect);`
And tell me what happens. Thanks again!
Out of curiosity, did you mention a specific solution in the past? If so I apologize for not catching it.
Are there any other issues or fixes I should be aware of? Thanks for keeping current!
You can see the output of phpinfo here: http://tinyurl.com/y2t2pt (output page is hosted on a different server)
Thanks for all your help
The image problem might be with windows permissions on the cache directory. PHP running in IIS takes account of those for file operations. I'm not sure how you would change them. But it does look like you have the GD library installed, based on your phpinfo.
One way you can find out is to load the image URL directly in your browser. In firefox, right click a (broken) image and select "View Image". You'll then get to see the errors.
Based on your phpinfo, I've found the site and your zenphoto installation (I apologize for going behind your back) and that is indeed the problem. Somehow you need to set write/modify permissions for the IIS user on the /cache directory, I'm not sure how you do it exactly...
Trisweb, I removed the phpinfo page in the tinyurl link just to be safe - if you need to see it again, I'd be happy to re-post it. Thanks again for your guidance...