Log in

View Full Version : ahh error!


oldfan
10-08-2004, 04:39 AM
I bought/install Flashchat now I'm getting this error :ermm:

Fatal error: Cannot redeclare getmicrotime() (previously declared in /xxx/xxx/bbs.metallifukinca.com/html/FlashChat/inc/common.php:123) in /xxxx/xxxx/bbs.metallifukinca.com/html/includes/functions_arcade.php on line 3

My poor arcade is gone :o
Could somepne help me out?
Thanks in advance

miz
10-08-2004, 05:07 AM
i guss that on your main file have

require(common.php)
and require(/includes/functions_arcade.php)

and i guss that in common.php there is a call to /functions_arcade.php

in other words script calls same functions twice

oldfan
10-08-2004, 12:33 PM
any ideas if I can remove a line of code?

nexialys
10-08-2004, 12:36 PM
surround one of the two functions getmicrotime with:

if(!function_exists(getmicrotime)){
the actual function.....(you know, this is a guess!)
}

oldfan
10-08-2004, 05:51 PM
you wouldn't happen to know which one, would you?
There only one in each file, common.php and functions_arcade.php

nexialys
10-08-2004, 08:08 PM
you can do it on both, as the if condition just verify if one function is already called...

oldfan
10-09-2004, 03:35 AM
so change this..

function getmicrotime() {

to

if(!function_exists(getmicrotime)){

?