I'm getting this error with a brand new install of 1.1
Notice: Constant ZENFOLDER already defined in /xxxx/xxxx/pictures.jameshoulston.co.uk/user/htdocs/zp-core/functions.php on line 2
Any suggestions on how to solve it? I was also getting a similar one with Constant DEBUG but cleared that by putting error_reporting(E_ALL ^ E_NOTICE); in functions.php
Thanks,
James.
Pictures with nationalized filenames not shown.
Then I try to upload file with nationalized filename (cyrillic for ex.) it shows ok while link to it looks like this - gallery/zp-core/i.php?a=test&i=%D1%82%D0%B5%D1%81%D1%82.jpg&s=thumb
But when I reload the page link changed to gallery/cache/test/тõÑÂт.jpg_h550.jpg and picture not show, gives the error: Zenphoto Error: the requested object (album=cache/test/тõÑÂт.jpg_h550.jpg: image=) was not found. Please go back and try again.
Server is Centos 5 with locale UTF8.
jayray999: It is possible that you have not run the upgrade.php program to add all the new colums to the database tables. date is a column new to the 1.1 release.
maxtel: Please enter a ticket into Trac. We will need to figure out what is going on. If possible, attache the image which is causing the problem to the ticket.
jhoulston: You can try to change line 2 of functions.php to read:
if (!defined('ZENFOLDER')) { define('ZENFOLDER'. 'zp-core'); }
This should work, but since I don't get the error, I cannot confirm it does. Please let us know.
maxtel: I might be wrong but I think this is normal server behaviour. Servers generally don't allow any special characters in filenames to my knowledge.
If you need cyrillic characters to be shown in zenphoto you can rename it in the admin after uploading a file with a name without any special characters.
maxtel: I am not a server expert, but I never encountered any webspace that allows you to use special characters in filenames or folders (and would love to use my german "umlaute" like üäö). For me that is common internet knowledge. It may be possible to configurate it differently though.
That you can see them via ftp(?) on your server is probably because you view from you local computer system. My Mac allows several characters in filenames that Windows not does like questionmarks for example and I can of course upload them with all special characters, but they don't work.
Please try calling your picture directly with the browser without zenphoto. I would be surprised if that works. I just tested it with an html datei on my host and it doesn't.
If I am wrong, I gladly extend my knowledge!
Alright, glad to hear it's solved. I found out that it's indeed configurable, but it seems to be generally more secure not to use special characters.
Keep in mind that older browsers don't work with these special names not matter what your server is set up.
Maybe you could post a link to the page with the image?
acrylian:
http://www.bronetemkina.ru/gallery/index.php?album=--5&page=2
the image is first top image at the 4th column