Fatal Error: Cannot Redeclare Xxxxx


Subject: 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!!

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

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

I use a Virtual Server in Dimensis!

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

I used:

Code: [Download] [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 :(


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.4861s (PHP: 4% SQL: 96%)
SQL queries: 10 - Debug Off - GZIP Enabled