Page 1 of 1

[solved] Upgrade - 1.2 to 1.5.4 - Cannot redeclare class Content

Posted: Tue Apr 14, 2009 10:50 am
by mrcandu
Hi,
I have just upgraded from 1.2 (Barbados) to 1.5.4 (Carolina).
The installation upgrade went very smoothly with no errors and sofar the main site is working fine.
However, if I log into the admin and click on any page under Content/Pages I get the following error:
"Fatal error: Cannot redeclare class Content in C:\Inetpub\ppt_test\lib\classes\contenttypes\Backup of Content.inc.php on line 435"

Any idea's?

Many Thanks,
Mat.

Re: Upgrade - 1.2 to 1.5.4 - Cannot redeclare class Content

Posted: Tue Apr 14, 2009 10:56 am
by alby
mrcandu wrote: However, if I log into the admin and click on any page under Content/Pages I get the following error:
"Fatal error: Cannot redeclare class Content in C:\Inetpub\ppt_test\lib\classes\contenttypes\Backup of Content.inc.php on line 435"
"Backup of Content.inc.php" not exist
Check if you have Content.inc.php in that folder and try to rename "Backup of Content.inc.php" in other name

Alby

Re: Upgrade - 1.2 to 1.5.4 - Cannot redeclare class Content

Posted: Tue Apr 14, 2009 11:18 am
by mrcandu
Backup of Content.inc.php does exist.
I have tried copying Content.inc.php and naming it Backup of Content.inc.php but I still get the same error message?

Re: Upgrade - 1.2 to 1.5.4 - Cannot redeclare class Content

Posted: Tue Apr 14, 2009 11:24 am
by alby
mrcandu wrote: Backup of Content.inc.php does exist.
But I say that this file is not in CMSMS.
Or you have a hard link (not simple in windows), or you are hacked, or ....

Alby

Re: Upgrade - 1.2 to 1.5.4 - Cannot redeclare class Content

Posted: Tue Apr 14, 2009 11:36 am
by mrcandu
But I say that this file is not in CMSMS.
Or you have a hard link (not simple in windows), or you are hacked, or ....

Alby
Both files are there, so i'm not too sure what you are saying?

Re: Upgrade - 1.2 to 1.5.4 - Cannot redeclare class Content

Posted: Tue Apr 14, 2009 12:00 pm
by alby
mrcandu wrote:
Or you have a hard link (not simple in windows), or you are hacked, or ....
Both files are there, so i'm not too sure what you are saying?
Again, I say that that file (Backup...) is NOT part of CMSMS (look in 1.5.4 package)

Alby

Re: Upgrade - 1.2 to 1.5.4 - Cannot redeclare class Content

Posted: Tue Apr 14, 2009 12:05 pm
by mrcandu
alby wrote:
mrcandu wrote:
Or you have a hard link (not simple in windows), or you are hacked, or ....
Both files are there, so i'm not too sure what you are saying?
Again, I say that that file (Backup...) is NOT part of CMSMS (look in 1.5.4 package)

Alby
Ahhhh. I understand now.... I have deleted the backup file and all is working fine.
Thanks very much for your time.

Mat.