I installed Zenphoto localhost. I can make most of it work, but some of the urls are wrong. The most obvious example is the admin link from the home page.
The home page is at
http://localhost/zen/The admin link at the bottom of the page resolves to
http://localhost/zen/admin/ , to reach the admin page manually the url is
http://localhost/zen/zen/admin.php, from there most things seem to operate well.
Comments
mod_rewrite is set to false.
/template-functions.php line 184
- printLink(WEBPATH.'/admin/', $text, $title, $class, $id);
+ printLink(WEBPATH.'/zenphoto/admin.php', $text, $title, $class, $id);
But if your not using mod_rewrite more needs to happen.
The bug has been reported.
Do you have a breakdown of what permissions for directories should be.
current .htaccess looks like this:
<IfModule mod_rewrite.c>
RewriteEngine On
# !!! Change this to the absolute path !!!
# RewriteBase
RewriteRule ^zen/(.*)$ - [L]
RewriteRule ^tests/(.*)$ - [L]
RewriteRule ^admin$ admin/ [R]
RewriteRule ^admin/?$ zen/admin.php [QSA,L]
RewriteRule ^admin/admin.css$ zen/admin.css [R,L]
RewriteRule ^admin/admin.js$ zen/admin.js [R,L]
RewriteRule ^page/([0-9]+)/?$ index.php?page=$1 [QSA,L]
RewriteRule ^([^/\.]+)/?$ index.php?album=$1 [QSA,L]
RewriteRule ^([^/\.]+)/page/([0-9]+)/?$ index.php?album=$1&page=$2 [QSA,L]
RewriteRule ^([^/\.]+)/image/(thumb|[0-9]{1,4})/([^/\\]+)$ zen/i.php?a=$1&i=$3&s=$2 [QSA,L]
RewriteRule ^([^/\.]+)/image/([^/\\]+)$ albums/$1/$2
RewriteRule ^([^/\.]+)/([^/\\]+)$ index.php?album=$1&image=$2 [QSA,L]
</IfModule>
Also, mod_rewrite *only* works with Apache. Looks like you've got IIS on localhost, so no dice. I'll get a bugfix out which fixes bugs when mod_rewrite is off.
http://codevillain.com
RewriteBase /
works in .htaccess
And it looks like fun so far, Thanks
The database image table looked like this , the extra rows are persistent as you upload more images, and the admin page returns 4 photos in the gallery when there is only one.
1- like already says :
/template-functions.php line 184
- printLink(WEBPATH.'/admin/', $text, $title, $class, $id);
+ printLink(WEBPATH.'/zenphoto/admin.php', $text, $title, $class, $id);
2- Search and replace all :
/admin/?
by /zen/admin.php?
in zen/admin.php