Pages (5):    1 2 3 4 5
Member
Member
jhoulston   05-11-2007, 20:07
#81

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.

Member
Member
maxtel   05-11-2007, 20:29
#82

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.

Member
Member
sbillard   05-11-2007, 21:22
#83

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.

Member
Member
jhoulston   05-11-2007, 21:31
#84

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

Member
Member
jayray999   05-11-2007, 22:38
#85

@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...

Member
Member
maxtel   06-11-2007, 06:57
#86

ticked created

Administrator
Administrator
acrylian   06-11-2007, 11:06
#87

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.

Member
Member
maxtel   06-11-2007, 13:21
#88

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

Administrator
Administrator
acrylian   06-11-2007, 14:02
#89

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!

Member
Member
maxtel   06-11-2007, 15:25
#90

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

Administrator
Administrator
acrylian   06-11-2007, 15:52
#91

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?

Member
Member
maxtel   06-11-2007, 16:35
#92

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

Administrator
Administrator
acrylian   06-11-2007, 16:58
#93

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

Pages (5):    1 2 3 4 5
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.