ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Cannot Redelcare Class File_FT After Upgrade

June 25, 2011 4:21am

Subscribe [7]
  • #16 / Dec 11, 2011 8:23am

    I’m having a very similar problem, updated from 2.1.3 to the latest version (2.3.1, latest build) and have the following error (using the debug 1 line in the index.php file)


    “Fatal error: Cannot redeclare class File_ft in [directory name removed]/expressionengine/fieldtypes/file/ft.file.php on line 365”


    It has also shown the error on line 314 as well. Depending on whether I try to view a page or view the field types page.

    I can however access template group pages without issue, so I don’t know what’s going on… Very odd.

  • #17 / Dec 13, 2011 12:55pm

    Kyle Cotter

    730 posts

    Hey Pillory,

    Sorry to see you encountered this issue. Be on the lookout for an email from me.

    Thanks.

  • #18 / Dec 19, 2011 2:11pm

    Kevin Smith

    4784 posts

    Hi Pillory,

    Just wanted to make sure you got Kyle’s email. Let us know if you didn’t, and we’ll be glad to send another.

  • #19 / Jan 06, 2012 8:29pm

    haggis

    70 posts

    Fatal error: Cannot redeclare class File_ft in [directory name removed]/expressionengine/fieldtypes/file/ft.file.php on line 365

    Oh dear, I have the same error. I’m at v2.2.2 - Build: date 20110801 and can’t upgrade just at the moment.  I had a request to add a custom field and I get the exact same error when I attempt to edit any field set.

    I can’t say I’ve even tried to do that since I upgraded from 2.1.3 so don’t know how long it’s been true.

    My install has both ‘safecracker’ and ‘safecracker_file’ directories (possibly left over). 

    Under Modules, safecracker is listed and shown ‘installed.’ I tried removing it via the CP, but Bad Things Happened (took two sites out— I’m using MSM).

  • #20 / Jan 08, 2012 1:14pm

    Wojtek D

    16 posts

    This is urgent.

    I have the same problem

    Fatal error: Cannot redeclare class File_ft in /[removed]/system/expressionengine/fieldtypes/file/ft.file.php on line 365

    when I try to access Administration -> Channel Fields through the CP, also if I go to Add-ons -> Fieldtypes.

    Recently upgraded from 2.1.3 to 2.3.1 (build: date 20111017), and only noticed this after 2 days.

    Tried solutions from thread above - they did not work. My install has ‘safecracker’ and ‘safecracker_file’ in third_party.

    Also, my fieldtypes directory contains both folders, and individual files (of the same native fieldtypes, I think), if I delete the set of individual files - I get when trying to edit custom field sets

    A PHP Error was encountered
    
    Severity: Warning
    
    Message: require_once(/[removed]/system/expressionengine/fieldtypes/ft.file.php) [function.require-once]: failed to open stream: No such file or directory
    
    Filename: safecracker_file/ft.safecracker_file.php
    
    Line Number: 3
    
    
    Fatal error: require_once() [function.require]: Failed opening required '/[removed]system/expressionengine/fieldtypes/ft.file.php' (include_path='.:/usr/share/pear:/usr/share/php') in [removed]/system/expressionengine/third_party/safecracker_file/ft.safecracker_file.php on line 3

     

  • #21 / Jan 10, 2012 7:26pm

    Sean C. Smith

    3818 posts

    Hi Wojtek D,

    SafeCaracker is integrated as a first party module now so no need to have it inside your third-party folder. It can be removed from there.

    SafeCaracker File still lives in the third_party folder. Just replace it with the new one from EE download.

    Let me know if this works for you.

    Sean

  • #22 / Jan 10, 2012 7:48pm

    haggis

    70 posts

    Replacing my existing 2.2.2 safecracker_file folder with the 2.3.1 folder worked for me, anyway. Thanks, Sean.

  • #23 / Jan 11, 2012 4:27pm

    Wojtek D

    16 posts

    Thanks Sean and Haggis, deleting and reuploading the safecracker_file folder worked for me as well.

  • #24 / Jan 13, 2012 2:01am

    John Henry Donovan

    12339 posts

    Glad you guys are fixed up.

    @Pillory Do you still have issue or does the advice offered post your last reply help you here?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases