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
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
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?
Hey!
Which PHP version do you have installed?
Cheers!
Josue
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.