PHP Notices and Warnings when using Contact Form 7
Support › Meta Box AIO › PHP Notices and Warnings when using Contact Form 7Resolved
- This topic has 5 replies, 2 voices, and was last updated 3 years, 10 months ago by
Long Nguyen.
-
AuthorPosts
-
June 12, 2021 at 2:36 AM #28856
Aaron Kessler
ParticipantI get these PHP Notices and Warnings when I am adding a new form to Contact Form 7. Should i do something about it?
( ! ) Notice: Trying to get property 'post_name' of non-object in /Users/aaronkessler/Local Sites/majelkadicom/app/bedrock/web/app/plugins/meta-box-aio/vendor/meta-box/mb-views/src/Editor.php on line 47 Call Stack # Time Memory Function Location 1 0.0006 393560 {main}( ) .../admin.php:0 2 0.0007 394200 require_once( '/Users/aaronkessler/Local Sites/majelkadicom/app/bedrock/web/wp/wp-load.php' ) .../admin.php:34 3 0.0007 394512 require_once( '/Users/aaronkessler/Local Sites/majelkadicom/app/bedrock/web/wp-config.php' ) .../wp-load.php:42 4 0.0200 437192 require_once( '/Users/aaronkessler/Local Sites/majelkadicom/app/bedrock/web/wp/wp-settings.php' ) .../wp-config.php:9 5 0.4100 17283768 do_action( ) .../wp-settings.php:560 6 0.4100 17284144 WP_Hook->do_action( ) .../plugin.php:484 7 0.4100 17284144 WP_Hook->apply_filters( ) .../class-wp-hook.php:316 8 0.6018 19596120 RWMB_Core->register_meta_boxes( ) .../class-wp-hook.php:292 9 0.6018 19596120 apply_filters( ) .../core.php:49 10 0.6018 19596528 WP_Hook->apply_filters( ) .../plugin.php:212 11 0.6197 19839048 MBViews\Editor->register_meta_boxes( ) .../class-wp-hook.php:292 ( ! ) Warning: Cannot modify header information - headers already sent by (output started at /Users/aaronkessler/Local Sites/majelkadicom/app/bedrock/web/app/plugins/meta-box-aio/vendor/meta-box/mb-views/src/Editor.php:47) in /Users/aaronkessler/Local Sites/majelkadicom/app/bedrock/web/wp/wp-includes/functions.php on line 6362 Call Stack # Time Memory Function Location 1 0.0006 393560 {main}( ) .../admin.php:0 2 0.8109 22741752 do_action( ) .../admin.php:175 3 0.8109 22742128 WP_Hook->do_action( ) .../plugin.php:484 4 0.8109 22742128 WP_Hook->apply_filters( ) .../class-wp-hook.php:316 5 0.8130 22757488 send_frame_options_header( ) .../class-wp-hook.php:290 6 0.8130 22757488 header ( ) .../functions.php:6362 ( ! ) Warning: Cannot modify header information - headers already sent by (output started at /Users/aaronkessler/Local Sites/majelkadicom/app/bedrock/web/app/plugins/meta-box-aio/vendor/meta-box/mb-views/src/Editor.php:47) in /Users/aaronkessler/Local Sites/majelkadicom/app/bedrock/web/wp/wp-admin/includes/misc.php on line 1310 Call Stack # Time Memory Function Location 1 0.0006 393560 {main}( ) .../admin.php:0 2 0.8109 22741752 do_action( ) .../admin.php:175 3 0.8109 22742128 WP_Hook->do_action( ) .../plugin.php:484 4 0.8109 22742128 WP_Hook->apply_filters( ) .../class-wp-hook.php:316 5 0.8282 22880704 wp_admin_headers( ) .../class-wp-hook.php:292 6 0.8282 22881024 header ( ) .../misc.php:1310 ( ! ) Warning: Cannot modify header information - headers already sent by (output started at /Users/aaronkessler/Local Sites/majelkadicom/app/bedrock/web/app/plugins/meta-box-aio/vendor/meta-box/mb-views/src/Editor.php:47) in /Users/aaronkessler/Local Sites/majelkadicom/app/bedrock/web/wp/wp-includes/pluggable.php on line 1329 Call Stack # Time Memory Function Location 1 0.0006 393560 {main}( ) .../admin.php:0 2 0.8312 22911032 do_action( ) .../admin.php:237 3 0.8312 22911408 WP_Hook->do_action( ) .../plugin.php:484 4 0.8312 22911408 WP_Hook->apply_filters( ) .../class-wp-hook.php:316 5 0.8312 22912536 wpcf7_load_contact_form_admin( ) .../class-wp-hook.php:290 6 0.8933 23133248 wp_safe_redirect( ) .../admin.php:284 7 0.8934 23133248 wp_redirect( ) .../pluggable.php:1437 8 0.8935 23133336 header ( ) .../pluggable.php:1329 ( ! ) Warning: Cannot modify header information - headers already sent by (output started at /Users/aaronkessler/Local Sites/majelkadicom/app/bedrock/web/app/plugins/meta-box-aio/vendor/meta-box/mb-views/src/Editor.php:47) in /Users/aaronkessler/Local Sites/majelkadicom/app/bedrock/web/wp/wp-includes/pluggable.php on line 1332 Call Stack # Time Memory Function Location 1 0.0006 393560 {main}( ) .../admin.php:0 2 0.8312 22911032 do_action( ) .../admin.php:237 3 0.8312 22911408 WP_Hook->do_action( ) .../plugin.php:484 4 0.8312 22911408 WP_Hook->apply_filters( ) .../class-wp-hook.php:316 5 0.8312 22912536 wpcf7_load_contact_form_admin( ) .../class-wp-hook.php:290 6 0.8933 23133248 wp_safe_redirect( ) .../admin.php:284 7 0.8934 23133248 wp_redirect( ) .../pluggable.php:1437 8 0.8941 23133408 header ( ) .../pluggable.php:1332
June 12, 2021 at 4:58 PM #28863Long Nguyen
ModeratorHi Aaron,
Thank you for your feedback.
I've tried to reproduce the issue on my end but no luck. Can you please deactivate the plugin Contact Form 7 to see if the error message disappears?
And please make sure that your view has a title.
June 12, 2021 at 7:57 PM #28866Aaron Kessler
ParticipantHi,
I think there is a misunderstanding here. I get these Errors inside the Contact Form 7 Plugin doing this in the WordPress Admin area:Click on
- Contact
- Add new
- Save
Theme is Twentytwentyone, active Plugins are: Meta Box, Meta Box AIO, Contact-Form 7
June 13, 2021 at 9:04 PM #28873Long Nguyen
ModeratorHi Aaron,
I didn't see the error message on my local site, screen record https://share.getcloudapp.com/lluNYXqz
Can you please re-install Meta Box and MB AIO then check this issue?
June 14, 2021 at 8:41 PM #28892Aaron Kessler
ParticipantI did reinstall Meta Box and MB AIO with no effect. Hoewer i was able to reproduce the behaviour on a new wordpress installation:
I initiated a new container with local by flywheel with the following settings:
PHP 8.0.0, Apache 2.4.43, MySQL 8.0.16.If i swich to PHP 7.4.1 there are no PHP Notices/Warnings.
The wired thing is that my actual project, after starting on PHP 8 and switching back to 7.4.1 due to the lack of imagick for PHP8, has the same notices/warnings on PHP 7.4.1
June 15, 2021 at 10:58 AM #28901Long Nguyen
ModeratorHi,
Thanks for your feedback.
I think there are not many plugins/themes compatible with PHP 8. I will inform the development team to check this case and improve on our end. Please start your project with PHP 7.4 for a better experience.
-
AuthorPosts
- You must be logged in to reply to this topic.