ZenphotoCMS Forum
Zenphoto 1.1 Bug Hunt - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Zenphoto 1.1 Bug Hunt (/thread-1644.html)

Pages: 1 2 3 4 5


Zenphoto 1.1 Bug Hunt - jhoulston - 05-11-2007

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.




Zenphoto 1.1 Bug Hunt - maxtel - 05-11-2007

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.




Zenphoto 1.1 Bug Hunt - sbillard - 05-11-2007

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.




Zenphoto 1.1 Bug Hunt - jhoulston - 05-11-2007

Thanks sbillard, that worked a treat by replacing line 2 in functions.php.




Zenphoto 1.1 Bug Hunt - jayray999 - 05-11-2007

@sbillard: Thanks a lot. Worked like a charm although I needed to run it twice (it gave a Zenphoto error the first time) and remember having done it previously. Oh well...




Zenphoto 1.1 Bug Hunt - maxtel - 06-11-2007

ticked created




Zenphoto 1.1 Bug Hunt - acrylian - 06-11-2007

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.




Zenphoto 1.1 Bug Hunt - maxtel - 06-11-2007

acrylian:
Well, why you think this is normal ? On the server I can see cyrillic files and have full access to them.




Zenphoto 1.1 Bug Hunt - acrylian - 06-11-2007

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!




Zenphoto 1.1 Bug Hunt - maxtel - 06-11-2007

acrylian
Sorry for false alarm, problem was with reflection.js, not zenphoto.

btw: i can access directly that files with browser just because server and browser using same locale utf8




Zenphoto 1.1 Bug Hunt - acrylian - 06-11-2007

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?




Zenphoto 1.1 Bug Hunt - maxtel - 06-11-2007

acrylian:
http://www.bronetemkina.ru/gallery/index.php?album=--5&page=2
the image is first top image at the 4th column




Zenphoto 1.1 Bug Hunt - acrylian - 06-11-2007

Thanks, I just wanted to test. Works fine indeed.