Fatal Error

Permalink
Just installed v. 5.4.0.5.

I get an error when trying to add a block or go to the add functionality tab of the dash.

Fatal error: Cannot redeclare class LibraryFileBlockController in /home2/meadmcle/public_html/blocks/library_file/controller.php on line 340

I guess there's a conflict with redundant class names or something. Not sure exactly how to resolve this one. I'm considering a fresh install. Any ideas before I start over?

Thanks.

And by the way I love the changes to the new version.

mead
 
Mnkras replied on at Permalink Reply
Mnkras
im guessing you installed a block (custom?)

yes the class names conflict

concrete/blocks/library_file/controller.php is where it conflicts with
mead replied on at Permalink Reply
mead
mm...yes. That's pretty much what I figured, but I'm just not sure which block causes the conflict.

Not sure whether it would be an add-on I got from the marketplace or just a block I wrote.
DavidMIRV replied on at Permalink Best Answer Reply
DavidMIRV
somehow you've duplicated this with core files.. did you accidentally copy concrete/* to the root?
that or were you trying to create a custom view and copied that controller.. either way whatever is at the top level directory (not concrete) should probably be the file to be moved
mead replied on at Permalink Reply
mead
It seems a lot of people have encountered a similar error. I looked back through the forum archives, and it seems pretty common. I found a dupe of the concrete/blocks directory in the root/blocks directory.

Thanks for the help!
JENDMS replied on at Permalink Reply
JENDMS
I am getting the same error: Fatal error: Cannot redeclare class LibraryFileBlockController in /var/www/MilliesEngineeringGroup/concrete/blocks/library_file/controller.php on line 340

This is for the function part and when I try to add a block. What is a fix for this?

Thanks
waldbach replied on at Permalink Reply
waldbach
I have this issue as well. Anyone have any idea?

$lfb = LibraryFileBlockController::getFile($cobj->getAttribute('thumbnail_image')->fID);

Fatal error: Class 'LibraryFileBlockController' not found in ../httpd.www/blocks/page_list/templates/custom.php on line 6