Tagged: avia template builder, meta box
-
AuthorPosts
-
January 23, 2018 at 1:10 pm #901426
Hi,
I have updated WordPress and the Enfold theme to the latest version and now i can’t save my posts any more. I get a white screen. When i turn on debugging i can see the following warnings:Warning: Cannot modify header information - headers already sent by (output started at /mypath/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/meta-box.class.php:95) in /mypath/wp-admin/post.php on line 198 Warning: Cannot modify header information - headers already sent by (output started at /mypath/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/meta-box.class.php:95) in /mypath/wp-includes/pluggable.php on line 1216
Before i try to save a post i get the following notice:
Notice: Undefined index: priority in /mypath/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/meta-box.class.php on line 106
I have turned off all plugins, it doesn’t make a difference.
Does anybody have an idea what the cause could be?
- This topic was modified 6 years, 11 months ago by heykleinermann. Reason: added more details
January 23, 2018 at 1:33 pm #901443Ok, i have fixed it for now by adding a new variable with an if statement to the meta-box.class.php file in line 100:
$custom_priority = isset($box['priority']) ? $box['priority'] : 'high'; add_meta_box( $box['id'], // HTML 'id' attribute of the edit screen section $box['title'], // Title of the edit screen section, visible to user array(&$this, 'create_meta_box'), // Function that prints out the HTML for the edit screen section. $area, // The type of Write screen on which to show the edit screen section ('post', 'page', etc) $box['context'], // The part were box is shown: ('normal', 'advanced', or 'side'). $custom_priority, // The priority within the context where the boxes should show ('high' or 'low') array('avia_current_box'=>$box) // callback arguments so we know which box we are in );
But i still don’t understand why this issue occurred at the first place? Why do some of the boxes not have the priority set?
January 25, 2018 at 11:39 pm #903091Hi,
Yes, our developers have provided a fix for that, it will be replaced on next versions.
We are sorry for any trouble,Best regards,
Basilis -
AuthorPosts
- You must be logged in to reply to this topic.