Hi,
I just downloaded 1.1.2 and attempted to install it (my first ever installation of ZenPhoto) and I'm having a very hard time of it.
I unzipped and copied everything into mydomain.com/zenphoto. I edited the config to my database info, added a prefix and commented out the external album folder.
I ran Setup and it seemed to work fine (tables were added to the DB).
I changed .htaccess in the Zenphoto folder:
#### !!! Change this to the web path (eg:
http://www.yourwebsite.com/photos --> /photos) !!!
RewriteBase /zenphoto
####
I can access the admin backoffice, I turned ModRewrite on, but there was very little to change. Everything in the Admin office seems to work well.
And thats where everything seems to stop working well. When I look at a gallery, it doesn't actually use any theme (I've tried a few). So for instance I click on 'Browse your gallery" from the admin page: it takes me to
http://www.mydomain.com.au/zenphoto/ which has no design whatsoever (default text only).
If i then click on one of my galleries, it takes me to
http://www.mydomain.com.au/Gallery/ which is not where it is (which may just be the rewrite, but...) and it gives me a "Not Found
The requested URL /gallery/ was not found on this server." error message.
If I manually insert Zenphoto/ into the URL:
http://www.mydomain.com.au/ZenPhoto/Gallery/ it seems to work and I see the thumbnailed gallery. But then if I click on one of the thumbnails, I get:
"Zenphoto Error: the requested object was not found. Please go back and try again."
And so on. It seems to be having a lot of trouble keeping in the right folder. Another error I got had to do with not being able to find the theme path/folder/filename.
Have I installed it wrong, or is this another bug with the recent upgrade?
Comments
http://www.tdmskp.com.au/zenphoto/
and here is the corrected album:
http://www.tdmskp.com.au/zenphoto/Serendipity/
You say you "I edited the config to my database info, added a prefix and commented out the external album folder."
What exactly did you do? No change is necessary for the external album folder if your installation is standard.
Please reset mod_rewrite and see how things behave. Also, please post your .htaccess file.
How do you mean reset mod_rewrite? In the admin panel? Or in the .htaccess file?
I unticked modrewrite in the admin panel, saved, then reticked it...No Change.
Found a new symptom too: ON the admin Overview page, if I click 'Refresh Database', it adds something like 50 new albums. Apparently I have 9500+ albums...... (so clearly something else is adding albums too, I haven't clicked that button that many time.)
.htAccess
My root directory .htaccess is short and sweet:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^tdmskp.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.tdmskp.com$
RewriteRule ^(.*)$ http://www.tdmskp.com.au [R=301,L]
The zenphoto directory htaccess is completely unchanged except for the line posted previously, which I copied pasted from the document. I don't see how I can attach documents to these posts, but if you want me to copy paste the entire document in here I will do it as a whole post.
reset mod_rewrite from the admin options panel. Once you have reset it, try your album. It really sounds like problems with mod_rewrite and your configuration.
.htaccess now says:
# htaccess file for zenphoto
# NOTE: Change the RewriteBase below to the absolute path to your zenphoto directory.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^tdmskp.com$ [OR]
RewriteCond %{HTTP_HOST}
^www.tdmskp.com$
RewriteRule ^(.*)$ http://www.tdmskp.com.au [R=301,L]
#### !!! Change this to the web path (eg: http://www.yourwebsite.com/photos --> /photos)
!!!
RewriteBase /zenphoto
####
RewriteRule ^admin/?$ zp-core/admin.php [R,L]
...etc as default.
I turned modrewrite off and saved and on and saved several times via admin panel, no change.
`// define('WEBPATH', '/zenphoto');`
Uncomment it, and leave the '/zenphoto' setting, as that happens to be correct for you.
See if that makes things right. It seems to me that the URL isn't being detected correctly.
(To Stephen: this may be a bug. It looks like the path is detected correctly on the album page (images are loaded, theme styles work) but not on the index page. Not sure why... ex: http://www.tdmskp.com.au/zenphoto/index.php?album=Grand+Canyon )
Aegist:
Can you list out the files that are in the zenphoto folder?
In case you are still interested in knowing sbillard, the zenphoto folder has:
.htaccess (I separated them again, I am pretty sure you can have multiples no problem),
index.php,
rss.php,
rss-comments.php,
install.txt and
license.txt
As well as the 4 normal folders.
But as far as I can see, everything is working fine now. Now I just need to figure out how it all works so that I can interface it with the rest of my Site LOL. Hard work for a non-programmer.
Thanks very much for all of your help.