Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #294441

    Hi, I am getting this error below-
    Fatal error: Using $this when not in object context in /public_html/wp-content/themes/enfold/framework/php/class-metabox.php on line 208

    #294452

    Hey uniquelylost!

    Please try replacing class-metabox.php file inside Enfold/framework/php folder with a freshly downloaded one via FTP – http://vimeo.com/67209750
    If that does not work, please try re-updating the theme via FTP

    Cheers!
    Yigit

    #294468

    The file is the same as the fresh copy, no change. When saving a custom post type I still get this error-

    Fatal error: Using $this when not in object context in /public_html/wp-content/themes/enfold/framework/php/class-metabox.php on line 208

    class-metabox.php – which metabox in the theme is this for?

    #294711

    Hey!

    Which PHP version do you have installed?

    Cheers!
    Josue

    #294715

    Hi,
    PHP version is 5.4.30

    this is the line of code in question in the class-metabox.php on line 208 on line 208

    if(!is_array($this->default_boxes) || !isset($_POST['post_ID']) || !isset($_POST['post_type']) || $this->saved) return;

    Have tried everything I can think of to get rid of it but the code in that file is complicated, the only way I have been able to get rid of it is when I empty the whole class in the class-metabox.php but then I no longer have the metabox which I still want to have the metabox….

    Any help sorting this is appreciated.

    #294838

    Hi!

    Are you using the latest version of WP – 3.9.1? If not, please update.

    You can also try to put in config.php in WP root folder at the end of the file before wp-settings.php inclusion.:

    
    define( 'WP_MAX_MEMORY_LIMIT', '256M' );
    

    Regards,
    Günter

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.