coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: jlovenet on March 24, 2004, 12:20:52 AM

Title: what does this mean?
Post by: jlovenet on March 24, 2004, 12:20:52 AM
Fatal error: Cannot redeclare getmicrotime() (previously declared in /home/glitzng/public_html/jlh/picturegallery/include/init.inc.php:38) in /home/glitzng/public_html/jlh/picturegallery/include/init.inc.php on line 36
 


??????????????
Title: what does this mean?
Post by: jlovenet on March 24, 2004, 12:28:13 AM
http://jlh.glitznglamour.com/picturegallery
Title: what does this mean?
Post by: Joachim Müller on March 24, 2004, 07:10:20 AM
you're using another php script (including it with a custom include call in theme.php or anycontent.php) that uses the function getmicrotime (there are many scripts using this function name, which is a silly thing to do). Just check if the function defintions are both times identical and the switch off one function definition. In coppermine, this function is being defined in include/init.inc.php.
Another option is to replace every occurence of getmicrotime() with some custom name like cpggetmicrotime(), but you will have to make sure you replace every occurence of it (include/init.inc.php, include/functions.inc.php and themes/yourtheme/theme.php) - that's the option I will go for; I'll change this in the dev version of coppermine to get rid of such problems in the future.

GauGau