PDA

View Full Version : can not understand this error message


jacson
04-11-2010, 12:06 PM
The calendar worked fine for over a year, now I get this message:

Fatal error: Cannot redeclare gpc_5195() (previously declared in /home/mydomain/public_html/calendar/calendar.php:1) in /home/mydomain/public_html/calendar/calendar.php on line 1


My apologies, I am not a PHP buff, so this error does not make sense to me.

Thanks for your help.

Jacson

Brian
04-11-2010, 12:08 PM
That is not a function of the calendar. It would seem there is some other code in that file. Open a support ticket and attach the file so I can check it out for you.

jacson
04-11-2010, 12:42 PM
I have made some head way, I did see this below code twice in the page that the calendar is embedded in, so I removed one of them and now it kinda of works but the calendar has lost its css styles...

<?php $TOC=1; require ("calendar/calendar.php"); ?>


Here is the site

http://integralelementary.com/calendar.php


But this calender has worked perfect for over a year so not sure why now it does not..

jacson
04-11-2010, 12:49 PM
sorry - my blunder again, actually, the code was :

<?php $CSS=1; require("calendar/calendar.php"); ?>

and of course if I remove it then no css styles.

However, if i remove it then at least the error goes away.

So these are the only two lines of php on the page:

<?php $CSS=1; require("calendar/calendar.php"); ?>
<?php $TOC=1; require ("calendar/calendar.php"); ?>

and I get the error of previously declared...

Fatal error: Cannot redeclare gpc_5195() (previously declared in /home/integral/public_html/calendar/calendar.php:1) in /home/integral/public_html/calendar/calendar.php on line 1

ve9gra
04-11-2010, 01:38 PM
Like Brian said before, gpc_5195 is not a function of the calendar. Is it possible that you got hacked, or that you added code to calendar.php?

For safety, I would highly recommend that you update your installation to the latest version, and replace the calendar.php with a fresh copy.

Brian
04-11-2010, 02:03 PM
I've looked at the file, and this is not in it. Something must be going on at the server level...

jacson
04-11-2010, 02:22 PM
Thnaks guys for looking at this, I actually reloaded the calendar.php file from a clean backup and now it all works, this account was migrated a couple weeks ago, maybe that file was corrupt, don't see a single difference in the files, with compare code, so I guess it was all just a corrupt file.

Sorry for the false alarm...this ticket can be closed.