Fatal Error: Cannot Redeclare Xxxxx »  Show posts from    to     

Icy Phoenix


Old Support Topics - Fatal Error: Cannot Redeclare Xxxxx



Xusqui [ Sun 03 Sep, 2006 19:16 ]
Post subject: Fatal Error: Cannot Redeclare Xxxxx
Hile, neighbours and friends...

Again disturbing

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 ]
Post subject: Respuesta: Fatal Error: Cannot Redeclare Xxxxx
Xusqui, ¿use VPS server? (Dimensis)


Xusqui [ Sun 03 Sep, 2006 21:42 ]
Post subject: 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 ]
Post subject: Respuesta: Fatal Error: Cannot Redeclare Xxxxx
I fixed it... But with a lot of work...

I used:

Code: [Hide]
  1. if (!function_exisxts(name_of_function))  
  2. {  
  3. definition of function  


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




Powered by Icy Phoenix