I just installed zenphoto 1.2.7 on a new local PC. At the end of the installation I was requested to set the admin user and password, which I did, but then when I got the login screen and entered the admin user and password I got this error:
---------
Not Found
The requested URL /zenphoto/C:\wamp\www\zenphoto\zp-core\admin-users.php was not found on this server.
---------
The address in the browser reads:
http://localhost:8080/zenphoto/C:\wamp\Cwww\zenphoto\zp-core\admin.phpThe strange thing is that in spite of the above errors, I do get logged in, and I can use the admin interface. After the login errors if I enter the correct URL as below, I can used the admin interface ok.
http://localhost:8080/zenphoto/zp-core/admin.phpAfter I log out and try to log in I get the same errors as above but I still get logged in.
In the admin options I the mod_rewrite is disabled, even though I have it enabled in Apache and there is an .htaccess file in zp-core
Obviously, the error comes from the URL which somehow gets this string inserted: C:\wamp\www\zenphoto.
Now, why does this string get inserted and how can I correct this error?
I am stumped, I have previously installed zenphoto on XP and Vista, this is a new install on Windows 7 PC.
Comments
The .htaccess file is set up as follows, I only changed the RewriteBase:
--------------------
#### !!! Change this to the web path (eg: http://www.yourwebsite.com/photos --> /photos) !!!
RewriteBase http://localhost:8080/zenphoto
####
RewriteRule ^admin/?$ zp-core/admin.php [R,L]
----------------------
http://www.zenphoto.org/support/topic.php?id=6552
After replacing the code as in the above post, I can now login ok.
Would it be possible to fix this problem in the zenphoto release so that we do not have to manually update the distribution files?
The other rewrite path is one I only tried among other things to see if I can get rid of the inserted local path.
What fixes it is the code change indicated in the forum post above.