ZenphotoCMS Forum
"Fatal error: Cannot redeclare drawrectangle()" @ dreamhost self-install - 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: "Fatal error: Cannot redeclare drawrectangle()" @ dreamhost self-install (/thread-5234.html)



"Fatal error: Cannot redeclare drawrectangle()" @ dreamhost self-install - pgn - 2009-05-26

i'm self-installing zp 125rc1 @ dreamhost.

i've built my own php5 (v5.2.9) instance, setup to run as a cgi, under mod_fcgid.

i've moved zp to my sites' (top_dir)/photos dir.

@ nav to

http://mydomain.com/photos/zp-core/setup.php

i enter my DB info, and 'submit' the info.

at this point, i get a browser error of:

Fatal error: Cannot redeclare drawrectangle() in (...)/photos/zp-core/lib-GD.php on line 492

at this point, even if i attempt to return to the setup.php page, i simply get the error. a delete/reinstall of zp seems to be required.

any hints as to what the problem is?

thanks.




"Fatal error: Cannot redeclare drawrectangle()" @ dreamhost self-install - sbillard - 2009-05-26

Something you have included in your PHP build must be declaring a function named drawrectangle() because the error you are getting is from the Zenphoto attempt to define that function. The function is used (among other places) in creating the Captcha image.