Fatal error: Cannot redeclare class DatabaseItemList C5 upgrade

I'm trying to upgrade from to If I try to upgrade directly to that version or even to 5.6.0, I get the same error message:

Fatal error: Cannot redeclare class DatabaseItemList in /var/www/html/intranet/updates/concrete5.6.0/concrete/libraries/database_item_list.php on line 7

(the 5.6.0 in the above message would be if I tried to go directly to that version)

I get the same thing whether I upgrade from the dashboard or use the tools/required/upgrade?force=1 URL.

I've turned off pretty URLs.
There is nothing in root/jobs.
Cache is off and cleaned.
APC cache is disabled.
I've done manual downloads of the different versions via wget straight to our web server - so I'm pretty sure there are no missing pieces.

My searches in the forums did not turn up anything. Any help that can be offered would be appreciated.

View Replies: View Best Answer
regenstriefintranet replied on at Permalink Reply
Just some followup from my own digging:

1. I have an override of item_list.php in root/libraries. I inherited this site so I don't know why it's there but I'll put it aside and see if the upgrade completes because I believe that DatabaseItemList is an extension of ItemList (I'm a bit over my C5 pay grade in talking about this stuff)

2. database_item_list.php, the file where the error is happening, is new beginning in 5.6.0. It did not exist in Not really sure of the significance of that, but I'll look into it.

regenstriefintranet replied on at Permalink Best Answer Reply
Ok, #1 was it. For some unknown reason, this site that I inherited, which WAS as, had an version of item_list.php in root/libraries that, in fact, had a declaration of DatabaseItemList in it - hence it couldn't be redeclared by database_item_list.php and the upgrade died.

Problem solved!