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.

Safecracker using outdated code, developer log

October 12, 2012 6:31pm

Subscribe [1]
  • #1 / Oct 12, 2012 6:31pm

    fiorejo1

    6 posts

    This question may be related to a resolved thread.

    Hello,

    I am receiving an error in my developer log that says,
    “The system has detected an add-on that is using outdated code that may stop working or cause issues with the system. What does this mean?
    Deprecated function get_upload_preferences() called in /var/www/vhosts/cutandpaste.com/system167/expressionengine/third_party/safecracker_file/ft.safecracker_file.php on line 242.
    Deprecated since 2.4. Use File_upload_preferences_model::get_file_upload_preferences() to support config variable overrides instead.”

    I found another forum - listed above - that suggests that I need to need to migrate my code to the SafeCracker module integrated into EE: http://ellislab.com/expressionengine/user-guide/modules/safecracker/index.html so that our templates do not rely on any depreciated/outdated plugins.

    Unfortunately, that answer didn’t quite give me enough information and I’m not sure how to migrate our code. Could you please give me more direction?

    Thanks

  • #2 / Oct 15, 2012 1:30pm

    Dan Decker

    7338 posts

    Hi fiorejo1,

    I’m sorry you are having a bit of trouble with this.

    I think the problem is the way *we* handle SafeCracker File through updates.

    Oddly, if you follow the Update instructions, you can inadvertently have an outdated version of SafeCracker File installed.

    If you are on EE 2.5.3, grab the SafeCracker File package from that download and replace the one in your /system/expressionengine/third_party folder with the new one.

    If that doesn’t get you past this error, please let me know!

    Cheers!

     

  • #3 / Oct 15, 2012 4:01pm

    fiorejo1

    6 posts

    Hi Dan,

    Thanks for the answer. I have replaced the old safecracker file with the new one. I usually only see that error in my developer log once a month, so I’ll let you know if it continues to happen. However, so far, so good.

    jenn.e.

  • #4 / Oct 16, 2012 12:21pm

    Dan Decker

    7338 posts

    Hi Jenn,

    Excellent! If it crops back up, let me know and we’ll have a closer look.

    Thanks!

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

ExpressionEngine News!

#eecms, #events, #releases