https://www.icyphoenix.com/viewtopic.php?f=35&t=272
-----------------------------------
Xusqui
Sun 03 Sep, 2006 19:16

Fatal Error: Cannot Redeclare Xxxxx
-----------------------------------
Hile, neighbours and friends...

Again disturbing :D

I don't know if anyone will help, as this is an error that comes in my website since long time ago (even before I installed XS)

Sometimes I got a "white screen of death" when trying to load a page because of a "random" error:

PHP Fatal error:  Cannot redeclare get_color_group_order_max() (previously declared in /home/ka-tet-corp.com/data/htdocs/portal2.0/includes/functions_color_groups.php:151) in ./includes/functions_color_groups.php on line 149

or

PHP Fatal error:  Cannot redeclare class template in ./includes/template.php on line 74

or

PHP Fatal error:  Cannot redeclare class bbcode in /home/ka-tet-corp.com/data/htdocs/portal2.0/includes/bbcode.php on line 107

If you press F5 to reload the page, is shown without errors, so I don't know when the error comes on or when doesn't...

Any idea would be apreciated!!


-----------------------------------
ThE KuKa
Sun 03 Sep, 2006 19:24

Respuesta: Fatal Error: Cannot Redeclare Xxxxx
-----------------------------------
Xusqui, ¿use VPS server? (Dimensis) :roll:


-----------------------------------
Xusqui
Sun 03 Sep, 2006 21:42

Respuesta: Fatal Error: Cannot Redeclare Xxxxx
-----------------------------------
Don't know what you mean, ThE KuKa...

I use a Virtual Server in Dimensis!


-----------------------------------
Xusqui
Fri 08 Sep, 2006 22:45

Respuesta: Fatal Error: Cannot Redeclare Xxxxx
-----------------------------------
I fixed it... But with a lot of work...

I used:

[code]if (!function_exisxts(name_of_function))
{
definition of function
}[/code]

for each function in 5 or 6 php programs inside /includes/ that were givin' me those problems... Now everything works fine.

I think this will be hard work for me on every release change every function :(


