I installed zenphoto 1.1.4 using the highslide theme and experience problems in regards to the display of subalbums and images.
It works fine with regular albums like this one:
http://www.deceitful-tranquillity.de/gallery/work-in-progress/but subalbums are displayed like this:
http://www.deceitful-tranquillity.de/gallery/miscellaneous/roses/the same happens when you try to get to the second page in this album
http://www.deceitful-tranquillity.de/gallery/miscellaneous/http://www.deceitful-tranquillity.de/gallery/miscellaneous/page/2/When I tried the default theme pictures wouldn't be displayed at all.
I'd be glad for some advise to solve that problem.
Thank you!
Comments
And when I try to display a picture in full size in the default theme I get a page with this message: "Zenphoto Error: the requested object was not found. Please go back and try again." instead of the picture being displayed.
Have you modified the theme? Looking at the source for the "miscellaneous" album, you have this path structure:
"/gallery/themes/highslide/styles/dark.css"
This suggest you have installed Zenphoto into the "gallery" directory such that there is "gallery/themes", "gallery/zp-core", "gallery/albums", etc.
But when I go into the "roses" sub-album, I find this path referenced:
"/gallery/miscellaneous/themes/highslide/styles/dark.css"
So either the theme has a bug that needs to be fixed by its maintainer, or you have modified it in some way that has broken it.
In regard to the default theme, what errors do you get in your server log? It should show the pictures.
`////////////////////////////////////////////////////////////////////////////////
// Path Overrides
////////////////////////////////////////////////////////////////////////////////
// Uncomment the following two lines ONLY IF YOU'RE HAVING PROBLEMS,
// like "file not found" or "not readable" errors.
// These allow you to override Zenphoto's detection of the correct paths
// on your server, which might work better on some setups.
////////////////////////////////////////////////////////////////////////////////
// define('WEBPATH', '/zenphoto');
// define('SERVERPATH', '/full/server/path/to/zenphoto');`
Try changeing thse to what your site requires. On some installations the zenphoto detection does not work correctly. In the first devine, `zenphoto` should be `gallery` You will have to figure out the correct setting for the second define.
I changed in both devines "zenphoto" to "gallery" and since subalbums still weren't working after that, I also disabled mod_rewrite. Since then subalbums are working fine and pictures are displayed correct in default, highslide and smooth theme.
Thank you very much!
Andrea
http://gallery.macsplaceonline.com/home-renovation-projects/ <<works
http://gallery.macsplaceonline.com/home-renovation-projects/kitchen-floor/ <<doesnt work
I have made no changes to the theme, as I'm just using the base one. The install I downloaded this weekend did not include an .htaccess file (other than the lighttpd on - which I dont know how to get running) so I used another I found on the boards here:
# htaccess file for zenphoto
# NOTE: Change the RewriteBase below to the absolute path to your zenphoto directory.
<IfModule mod_rewrite.c>
RewriteEngine On
# !!! Change this to the web path (eg: http://www.example.com/photos --> /photos) !!!
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f [NC,OR]
RewriteCond %{REQUEST_FILENAME} -d [NC]
RewriteRule ^.*$ - [R,L]
RewriteRule ^admin/?$ zen/admin.php [R,L]
RewriteRule ^page/([0-9]+)/?$ index.php?page=$1 [L,QSA]
RewriteRule ^page/([A-Za-z0-9\-_]+)/?$ index.php?p=$1 [L,QSA]
RewriteRule ^([^/]+)/?$ index.php?album=$1 [L,QSA]
RewriteRule ^([^/]+)/page/([0-9]+)/?$ index.php?album=$1&page=$2 [L,QSA]
RewriteRule ^([^/]+)/image/(thumb|[0-9]{1,4})/([^/\\]+)$ zen/i.php?a=$1&i=$3&s=$2 [L,QSA]
RewriteRule ^([^/]+)/image/([^/\\]+)$ albums/$1/$2 [L]
RewriteRule ^([^/]+)/([^/\\]+)$ index.php?album=$1&image=$2 [L,QSA]
</IfModule>
Perhaps this is an older version of the .htaccess file, and doesn't account for sub-albums??
Any help here is greatly appreciated... I absolutely love this photo package... smokes c@ppermine hands down, and is so much like Wordpress it's not funny. (which is a really good thing)
EDIT: and yes, the system works fine with mod_rewrite disabled in the admin
EDIT: whoops.. nevermind... found some tools for viewing hidden files... thanks for the link
I downloaded a tweak from the site you provided in order to view, modify and upload the .htaccess file provided with the install, but the sub-album is still broken. It "loses" reference to the CSS file, the images as well as the links for some reason.
http://gallery.macsplaceonline.com/home-renovation-projects/ <<works
http://gallery.macsplaceonline.com/home-renovation-projects/kitchen-island/ <<doesn't work
when you are in the sub-album pages, like kitchen-island, the links at the top are also wrong, as it doubles up on the sub-album name:
`
`
So I guess I will have to disable the mod rewrite, although a more user friendly naming feature. Below is the .htaccess file that was included with the installer I downloaded over the weekend, for reference:
# htaccess file version 1.1.4.0
# Update the above and the define in setup.php when you make changes to the rewrite rules!
# NOTE: Change the RewriteBase below to the absolute path to your zenphoto directory. (Or let setup.php do it for you!)
<IfModule mod_rewrite.c>
RewriteEngine On
#### !!! Change this to the web path (eg: http://www.yourwebsite.com/photos --> /photos) !!!
RewriteBase /
####
RewriteRule ^admin/?$ zp-core/admin.php [R,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [R,L]
RewriteRule index\.php$ index.php [L,QSA]
RewriteRule ^page/([0-9]+)/?$ index.php?page=$1 [L,QSA]
RewriteRule ^page/([A-Za-z0-9\-_]+)/?$ index.php?p=$1 [L,QSA]
RewriteRule ^(.*)/page/([0-9]+)/?$ index.php?album=$1&page=$2 [L,QSA]
#### Rewrite rule addtion for search
RewriteRule ^page/([A-Za-z0-9\-_]+)/fields([0-9]+)/(.*)/([0-9]+)/?$ index.php?p=$1&searchfields=$2&words=$3&page=$4 [L,QSA]
RewriteRule ^page/([A-Za-z0-9\-_]+)/fields([0-9]+)/(.*)/?$ index.php?p=$1&searchfields=$2&words=$3 [L,QSA]
RewriteRule ^page/([A-Za-z0-9\-_]+)/archive/(.*)/([0-9]+)/?$ index.php?p=$1&date=$2&page=$3 [L,QSA]
RewriteRule ^page/([A-Za-z0-9\-_]+)/archive/(.*)/?$ index.php?p=$1&date=$2 [L,QSA]
RewriteRule ^page/([A-Za-z0-9\-_]+)/tags/(.*)/([0-9]+)/?$ index.php?p=$1&searchfields=4&words=$2&page=$3 [L,QSA]
RewriteRule ^page/([A-Za-z0-9\-_]+)/tags/(.*)/?$ index.php?p=$1&searchfields=4&words=$2 [L,QSA]
RewriteRule ^page/([A-Za-z0-9\-_]+)/(.*)/([0-9]+)/?$ index.php?p=$1&words=$2&page=$3 [L,QSA]
RewriteRule ^page/([A-Za-z0-9\-_]+)/(.*)/?$ index.php?p=$1&words=$2 [L,QSA]
RewriteRule ^(.*)/image/(thumb|[0-9]{1,4})/([^/\\]+)$ zp-core/i.php?a=$1&i=$3&s=$2 [L,QSA]
RewriteRule ^(.*)/image/([^/\\]+)$ zp-core/i.php?a=$1&i=$2 [L,QSA]
####
# Catch-all - everything else gets handled in PHP for compatibility.
RewriteRule ^(.*)/?$ index.php?album=$1 [L,QSA]
</IfModule>
Maybe we should really consider putting the file into the package so that even OS X user can see it.
As for the missing CSS, I guess you probably have a problem with the subdomain you are using. Please take a look here if that helps:
http://www.zenphoto.org/support/topic.php?id=2176&replies=5
http://www.zenphoto.org/support/topic.php?id=1843&replies=21
And after looking at the articles you posted about subdomains, I do not believe this is my problem, as this site is not just redirect with a subdirectory inside macsplaceonline.com. (i.e. macsplaceonline.com/gallery) It is basically it's own account, with it's own directory below the root. (just as macsplaceonline.com has) Again... it has something to do with the mod_rewrite rules in the .htaccess, as the package works fine without the mod_rewrite enabled. I will do some research and see what I can come up with.
EDIT: The problem was not in the .htaccess or the mod_rewrite, but in the config file. I uncommented out the 2 lines @ 53 & 54, and placed the proper paths into those lines, and now things seem to work fine as far as sub-albums + mod_rewrite.
Now my problem is viewing the individual images inside any album with mod_rewrite enabled, where I now get:
Zenphoto Error: the requested object was not found. Please go back and try again.
With mod_rewrite disabled, things work just fine. So I guess I will search for this new error in the forums...