ZenphotoCMS Forum
Imagick error. - 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: Imagick error. (/thread-7258.html)



Imagick error. - mikinoo - 2010-06-25

"Parse error: syntax error, unexpected ',', expecting '(' in /mnt/glusterfs/web/m/i/michalrusina.sk/sub/gallery/zp-core/lib-Imagick.php on line 79"

can anyone tell me what can cause this? the latest zp with mysql 5.0.90 & php 4.4.9 started to do this, tried to reinstal, but it happens also. is there a possibility that imagick is not installed and zp cant handle this? (they did some setup changes on hosting maybe)




Imagick error. - acrylian - 2010-06-25

Well, first you should switch to PHP 5. Although Zenphoto 1.3 might run under PHP 4.4.9 we don't test that anymore.
Imagick itself requires PHP 5 explicitly but causing this error was an oversite in 1.3 and is fixed in the nightly build (if I recall correctly).




Imagick error. - xjasonx - 2010-06-27

i had thee xact same problem tried the nightly build last night and now get this error

Parse error: syntax error, unexpected ',', expecting '(' in /homepages/19/d87198790/htdocs/colleendurkin/client/zp-core/lib-Imagick.php on line 92




Imagick error. - mgilpat629 - 2010-08-21

OK, I had this exact same error when I upgraded from 1.2.6 to 1.3.1 on a site hosted on 1and1. The solution for me was to add the following two lines to the .htaccess file.

AddType xmapp-php5 .php
AddHandler x-mapp-php5 .php

Add them right at the top of the file, (just below the section with the # hashes).

Good luck




Imagick error. - dancam - 2010-08-24

At which level did you update the .htaccess file? in the subdirectory with ZenPhoto, or at the site level?




Imagick error. - kagutsuchi - 2010-08-25

Some servers don't report information correctly about which PHP version is actually in use. That's why Imagick fails; it requires PHP5. If your host gives you the option to switch to PHP5 (which it most likely will if you're seeing this problem), then I would suggest to do so. There's nothing we can do to prevent against this kind of issue.

I would assume that mgilpat629's suggestion does just that: forces PHP files to use PHP5. I would assume that this is put in Zenphoto's .htaccess. The best way to know is to try it.