Thanks a lot to all programmers for making the new version possible. Could someone all theme authors please also update their theme descriptions to indicate whether or not the themes are 1.1.2 compatible?
I encountered one problem: mod_rewrite does not work for me any more, though it's enabled on the server. Does anyone know why this could be the case?
This is the message I get:
"Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [clipped] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log."
It did work before the upgrade. I did not change the line in the new .htaccess file because the path to my zenphoto installation did not change. Do I have to edit any other file?
Claudia, to use mod rewrite you have to edit htaccess to tell zenphoto your gallery folder. Then you have to go into the admin options tab and turn mod rewrite on.
`Warning: getimagesize() [function.getimagesize]: Read error! in /home/glassham/public_html/gallery/zp-core/functions.php on line 830
Warning: Cannot modify header information - headers already sent by (output started at /home/glassham/public_html/gallery/zp-core/functions.php:830) in /home/glassham/public_html/gallery/zp-core/refresh-metadata.php on line 21
Warning: Cannot modify header information - headers already sent by (output started at /home/glassham/public_html/gallery/zp-core/functions.php:830) in /home/glassham/public_html/gallery/zp-core/admin-functions.php on line 48`
First seen in 1.1.1, later spotted in 1.1.2. A bug or just me?
The folder that zenphoto installs in has changed from 'zen' to 'zp-core'. This means that you do have to change the .htaccess file references to 'zen' as per the example that comes with the release.
Were you running any of the community builds before the upgrade? It is possible that you have duplicate entries in you options table, which are not allowed now. The easiest fix is to drop the options table and run upgrade.php again.
I got the same message as BertSimons. Was upgrading from 1.1.1 and did no modifications of any sort. Everything seems to work, though and the admin page shows version number as 1.1.2.
sbillard, I used the .htaccess file that came with the release and didn't change anything since in my installation, zenphoto is installed in the subfolder /zenphoto, exactly as in the example file. In other words, I used the example file without any changes and turned on mod_rewrite in the admin options. It still doesn't work.
Do the admin options override the zp-config file, by the way?
BertSimons - That error is OK, nothing to worry about. It was trying to insert default options entries but they already exist. We'll have this fixed in future upgrades.
David_1cog - Can you please submit a Trac ticket with that info if you haven't already?
That applies to everyone actually, for all bug reports:
Can you post your .htaccess file? Also the one from the prior installation if you still have it. Given that things work with mod_rewrite reset all things point to a problem in the .htaccess file.
I tried doing a full new install with a default database. I get this while running setup:
Zenphoto Error MySQL Query ( SELECT `name`, `value` FROM `options` ) Failed. Error: Table 'psychobo_gallery.options' doesn't exist It looks like your zenphoto tables haven't been created. You may need to run the setup script.
I am unable to recreate this problem on zenphoto 1.1.2. Please do the following:
1. delete all copies of zenphoto on your computer 2. download zenphoto 1.1.2 3. delete the folder zp-core on your server 4. upload the files from zenphoto 1.1.2 5. run ...zp-core/setup.php
sbillard: It works with my gallery now, I did have a mistake in my htaccess file, was just a bit slow to realize I had pointed the subdomain directly to the zenphoto folder ... Thanks anyway for your help.
Had GD issues with Zenphoto at www.taborlodge.ie - This clients Host company mentioned that this domain is hosted at an older server so they set up a new test area at www2.taborlodge.ie on a newer server. This resolved the GD issue, but more issues arose around - mod_rewrite and Htaccess.
The host company then sent me this email:
Hi Aidan,
It took a while to find this but eventually we traced it to something to do with mod_rewrite. I have removed the .htaccess file in the zenphoto folder and renamed it to htaccess so that it does not try to perform any rewrite actions and the page loads now. Some others had this issue too I think, from reading here:
#### !!! If you install the zen core in a folder other than 'zp-core' you must change the following lines 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>
Aidan, Zenphoto does not require .htaccess to run properly -- just go into the options and uncheck the mod_rewrite box and everything will work fine.
If you really want the rewritten-URLs then make sure your RewriteBase in .htaccess is set to the correct directory name... that's the only thing I can think of...
Edit: Looks like you've got it working. Open a new thread if you need more help. Thanks!
Comments
I encountered one problem: mod_rewrite does not work for me any more, though it's enabled on the server. Does anyone know why this could be the case?
This is the message I get:
"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [clipped] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log."
It did work before the upgrade. I did not change the line in the new .htaccess file because the path to my zenphoto installation did not change. Do I have to edit any other file?
Zenphoto Error
MySQL Query ( INSERT INTO `options` (`name`, `value`) VALUES ('gallery_title', 'Gallery'); ) Failed. Error: Duplicate entry 'gallery_title' for key 2
Warning: Cannot modify header information - headers already sent by (output started at /home/glassham/public_html/gallery/zp-core/functions.php:830) in /home/glassham/public_html/gallery/zp-core/refresh-metadata.php on line 21
Warning: Cannot modify header information - headers already sent by (output started at /home/glassham/public_html/gallery/zp-core/functions.php:830) in /home/glassham/public_html/gallery/zp-core/admin-functions.php on line 48`
First seen in 1.1.1, later spotted in 1.1.2. A bug or just me?
Is it a new installation or upgrade? if upgrade, from what version
Did you modify any of the core files?
The folder that zenphoto installs in has changed from 'zen' to 'zp-core'. This means that you do have to change the .htaccess file references to 'zen' as per the example that comes with the release.
Were you running any of the community builds before the upgrade? It is possible that you have duplicate entries in you options table, which are not allowed now. The easiest fix is to drop the options table and run upgrade.php again.
Thanks.
Do the admin options override the zp-config file, by the way?
David_1cog - Can you please submit a Trac ticket with that info if you haven't already?
That applies to everyone actually, for all bug reports:
http://zenphoto.org/trac/newticket
Create an account if you don't have one. Thanks!
Yes, it works with mod_rewrite turned off. That's the way I'm running it at the moment. This is my gallery if you want to check.
Can you post your .htaccess file? Also the one from the prior installation if you still have it. Given that things work with mod_rewrite reset all things point to a problem in the .htaccess file.
Zenphoto Error
MySQL Query ( SELECT `name`, `value` FROM `options` ) Failed. Error: Table 'psychobo_gallery.options' doesn't exist
It looks like your zenphoto tables haven't been created. You may need to run the setup script.
Please check that you have uploaded zenphoto version 1.1.2 where this problem has been corrected.
I dropped the options table and upgraded again.. it worked :b
cheers
1. delete all copies of zenphoto on your computer
2. download zenphoto 1.1.2
3. delete the folder zp-core on your server
4. upload the files from zenphoto 1.1.2
5. run ...zp-core/setup.php
It works with my gallery now, I did have a mistake in my htaccess file, was just a bit slow to realize I had pointed the subdomain directly to the zenphoto folder ... Thanks anyway for your help.
Glad to know things are straightened out.
Had GD issues with Zenphoto at www.taborlodge.ie - This clients Host company mentioned that this domain is hosted at an older server so they set up a new test area at www2.taborlodge.ie on a newer server. This resolved the GD issue, but more issues arose around - mod_rewrite and Htaccess.
The host company then sent me this email:
Hi Aidan,
It took a while to find this but eventually we traced it to something to do with mod_rewrite. I have removed the .htaccess file in the zenphoto folder and renamed it to htaccess so that it does not try to perform any rewrite actions and the page loads now. Some others had this issue too I think, from reading here:
== ( This is THIS thread ) ==
http://www.zenphoto.org/support/topic.php?id=1868
You might post a ticket with Zen and include a copy of the htaccess file and ask if there is an issue,
Thanks Anthony
Here is the content of that HTACCESS file mentioned in the email:
# 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.yourwebsite.com/photos --> /photos) !!!
RewriteBase /zenphoto
####
RewriteRule ^admin/?$ zp-core/admin.php [R,L]
RewriteRule ^search/?$ index.php?p=search [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]
#### !!! If you install the zen core in a folder other than 'zp-core' you must change the following lines
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>
Any ideas?
Cheers
Aidan
www.netactivesolutions.net
If you really want the rewritten-URLs then make sure your RewriteBase in .htaccess is set to the correct directory name... that's the only thing I can think of...
Edit: Looks like you've got it working. Open a new thread if you need more help. Thanks!