Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: what does this mean?  (Read 2013 times)

0 Members and 1 Guest are viewing this topic.

jlovenet

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
what does this mean?
« 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
 


??????????????
Logged

jlovenet

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
what does this mean?
« Reply #1 on: March 24, 2004, 12:28:13 am »

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
what does this mean?
« Reply #2 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
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 14 queries.