Archived topic
error message after update to gp-premium
16 replies · Started by Ian Hipwell on November 11, 2017
Hi Tom,
I updated the gp-premium plugin but when I schedule a new post for a few days in the future I get the following error message. The post gets scheduled OK and the website appears to be working OK. Any idea what the error message means?
.....
Notice: Undefined index: _meta-generate-page-header-content in /home/ianh0987/public_html/wp-content/plugins/gp-premium/page-header/functions/metabox.php on line 645
Warning: Cannot modify header information - headers already sent by (output started at /home/ianh0987/public_html/wp-content/plugins/gp-premium/page-header/functions/metabox.php:645) in /home/ianh0987/public_html/wp-admin/post.php on line 197
Warning: Cannot modify header information - headers already sent by (output started at /home/ianh0987/public_html/wp-content/plugins/gp-premium/page-header/functions/metabox.php:645) in /home/ianh0987/public_html/wp-includes/pluggable.php on line 1210
.....
These are the relevant lines;
metabox.php line 634: $value = wp_kses_post( $_POST[ $key ] );
post.php line 197: if ( isset( $_COOKIE['wp-saving-post'] ) && $_COOKIE['wp-saving-post'] === $post_id . '-check' ) {setcookie( 'wp-saving-post', $post_id . '-saved', time() + DAY_IN_SECONDS, ADMIN_COOKIE_PATH, COOKIE_DOMAIN, is_ssl() );
pluggable.php line 1210: header("Location: $location", true, $status);
thanks,
Ian Hipwell,
Sydney.
Hi there,
That's strange - does it happen when you hit the "Schedule" button? On a post or page?
Hi Tom,
When I press the schedule button for a post. I generally make one post per day and I try to schedule about a week's worth in advance. It's odd because I get the error message but the post is still scheduled OK & the website appears to be working OK as well.
Ian Hipwell
On that scheduled post, do you have a Page Header set at all?
Hi Tom,
No, Page Headers are not set. I generally don't use them.
Ian Hipwell
Any chance you can duplicate the site into a test folder using a plugin like Duplicator? I wouldn't mind logging in and taking a closer look, as this definitely shouldn't be happening - especially if Page Headers aren't in use.
Hi Tom,
I'm not sure I understand. Do you mean I create a new folder on my host and create the duplicate site there? After that, how do I get the password to you securely?
(I've downloaded the Duplicator plugin and I've created a package.)
Ian Hipwell
Exactly, that would help me debug the issue, as I can't replicate it on my end.
You can send me login details here: https://generatepress.com/contact/
Hi Tom,
I couldn't figure out how to send the details via the contact page so I sent them in an email to GeneratePress
Ian Hipwell
Perfect, I'll take a look and will get back to you ASAP.
Hi Tom,
is there already a solution for this issue? I do have the same problem after updating.
Henrik
Yes, I think I've found the solution and will be releasing an update later today.
For now, you can simply turn WP_DEBUG off: https://codex.wordpress.org/WP_DEBUG
I just released 1.5.3 which should fix this.
Let me know :)
Hi Tom,
I updated to 1.5.3 then I scheduled some posts for about a week ahead. It's now working fine with no error message.
Thanks for resolving the issue so quickly.
regards,
Ian Hipwell,
Sydney
Great news - thanks for reporting it :)