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.

Channel FIeld Error?

September 04, 2013 6:49pm

Subscribe [5]
  • #1 / Sep 04, 2013 6:49pm

    nyc

    66 posts

    I just updated to 2.7 and I was in the backend.. When I clicked on the name on one of the channel fields I got:

    Fatal error: Declaration of Safecracker_file_ft::display_field() must be compatible with that of EE_Fieldtype::display_field() in /home/site/public_html/dev/system/expressionengine/third_party/safecracker_file/ft.safecracker_file.php on line 5

    This happens when I click any of the channel fields.. whats happening here?

  • #2 / Sep 05, 2013 4:56am

    arvinsim

    23 posts

    In EE 2.7, each class extending EE_Fieldtype is required to implement a display_field() function.

    So either you implement that function with no actual implementation if you just want the error to go away

    public function display_field($data)
    {
     // NOTE: Placeholder
    }

    Alternatively, just uninstall/remove the safecracker_file addon

  • #3 / Sep 05, 2013 6:46am

    Fred2341

    25 posts

    hi
    two questions on this:

    - where should the function be added?
    - the safecracker_file addon no longer exists after the update, so what to do?

    The add-ons field-type menu option gives the same error.

    Thanks
    Fred

  • #4 / Sep 05, 2013 12:39pm

    nyc

    66 posts

    In EE 2.7, each class extending EE_Fieldtype is required to implement a display_field() function.

    So either you implement that function with no actual implementation if you just want the error to go away

    public function display_field($data)
    {
     // NOTE: Placeholder
    }

    Alternatively, just uninstall/remove the safecracker_file addon

    removing the safecracker_file worked! thanks!

  • #5 / Oct 09, 2013 10:54am

    Cartegraph

    83 posts

    In EE 2.7, each class extending EE_Fieldtype is required to implement a display_field() function.

    So either you implement that function with no actual implementation if you just want the error to go away

    public function display_field($data)
    {
     // NOTE: Placeholder
    }

    Alternatively, just uninstall/remove the safecracker_file addon

    +1 How would this get implemented?

  • #6 / May 15, 2014 8:08pm

    Rich Merch

    2 posts

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

ExpressionEngine News!

#eecms, #events, #releases