PHP 7.4 Errors
-
I just upgraded Roots Trellis to PHP 7.4, and I’m getting PHP errors with PHP 7.4. It uses composer to manage plugins. I have uninstalled and reinstalled it and even bumped it from version 8.8 to 8.8.1. This is what I get back:
Notice: Trying to access array offset on value of type bool in /srv/www/example.com/current/web/app/plugins/jetpack/modules/theme-tools/social-menu.php on line 66
Call Stack
# Time Memory Function Location
1 0.0005 394976 {main}( ) …/index.php:0
2 0.0013 396464 require( ‘/srv/www/example.com/current/web/wp/wp-blog-header.php’ ) …/index.php:5
3 0.0018 407616 require_once( ‘/srv/www/example.com/current/web/wp/wp-load.php’ ) …/wp-blog-header.php:13
4 0.0024 408984 require_once( ‘/srv/www/example.com/current/web/wp-config.php’ ) …/wp-load.php:42
5 0.0318 976144 require_once( ‘/srv/www/example.com/current/web/wp/wp-settings.php’ ) …/wp-config.php:9
6 0.9824 62669400 do_action( ) …/wp-settings.php:518
7 0.9824 62671056 WP_Hook->do_action( ) …/plugin.php:478
8 0.9824 62671056 WP_Hook->apply_filters( ) …/class-wp-hook.php:311
9 0.9907 63333664 jetpack_social_menu_init( ) …/class-wp-hook.php:287
10 0.9908 63334360 jetpack_social_menu_get_type( ) …/social-menu.php:47( ! ) Notice: wp_woocommerce_session_4c0809f8f852faacbbf1e8172a0a7040 cookie cannot be set – headers already sent by /srv/www/example.com/current/web/app/plugins/jetpack/modules/theme-tools/social-menu.php on line 66 in /srv/www/example.com/current/web/app/plugins/woocommerce/includes/wc-core-functions.php on line 1038
Call Stack
# Time Memory Function Location
1 0.0005 394976 {main}( ) …/index.php:0
2 0.0013 396464 require( ‘/srv/www/example.com/current/web/wp/wp-blog-header.php’ ) …/index.php:5
3 1.2493 73094728 wp( ) …/wp-blog-header.php:16
4 1.2493 73094760 WP->main( ) …/functions.php:1274
5 1.2542 73311112 do_action_ref_array( ) …/class-wp.php:752
6 1.2542 73311112 WP_Hook->do_action( ) …/plugin.php:544
7 1.2542 73311112 WP_Hook->apply_filters( ) …/class-wp-hook.php:311
8 1.2549 73241424 WC_Gateway_PPEC_Cart_Handler->ensure_session( ) …/class-wp-hook.php:287
9 1.2549 73241424 WC_Session_Handler->set_customer_session_cookie( ) …/class-wc-gateway-ppec-cart-handler.php:603
10 1.2550 73241696 wc_setcookie( ) …/class-wc-session-handler.php:135
11 1.2550 73242144 trigger_error ( ) …/wc-core-functions.php:1038( ! ) Notice: Trying to access array offset on value of type bool in /srv/www/example.com/current/web/app/plugins/jetpack/modules/theme-tools/social-menu.php on line 66
Call Stack
# Time Memory Function Location
1 0.0005 394976 {main}( ) …/index.php:0
2 0.0013 396464 require( ‘/srv/www/example.com/current/web/wp/wp-blog-header.php’ ) …/index.php:5
3 1.2559 73252608 require_once( ‘/srv/www/example.com/current/web/wp/wp-includes/template-loader.php’ ) …/wp-blog-header.php:19
4 1.2612 73404840 include( ‘/srv/www/example.com/current/web/app/themes/example-theme/page-templates/home-template.php’ ) …/template-loader.php:106
5 1.2612 73404840 get_header( ) …/home-template.php:10
6 1.2612 73405968 locate_template( ) …/general-template.php:41
7 1.2613 73406064 load_template( ) …/template.php:672
8 1.2617 73420224 require_once( ‘/srv/www/example.com/current/web/app/themes/example-theme/header.php’ ) …/template.php:723
9 1.2623 73428712 wp_head( ) …/header.php:20
10 1.2623 73428712 do_action( ) …/general-template.php:2884
11 1.2623 73429088 WP_Hook->do_action( ) …/plugin.php:478
12 1.2623 73429088 WP_Hook->apply_filters( ) …/class-wp-hook.php:311
13 1.2631 73437032 wp_enqueue_scripts( ) …/class-wp-hook.php:287
14 1.2631 73437032 do_action( ) …/script-loader.php:2294
15 1.2631 73437408 WP_Hook->do_action( ) …/plugin.php:478
16 1.2631 73437408 WP_Hook->apply_filters( ) …/class-wp-hook.php:311
17 1.8055 73792688 jetpack_social_menu_style( ) …/class-wp-hook.php:287
18 1.8055 73792688 jetpack_social_menu_get_type( ) …/social-menu.php:76
- The topic ‘PHP 7.4 Errors’ is closed to new replies.