• Resolved roadlink

    (@roadlink)


    Hi there,
    Can you fix this?

    Warning: Attempt to read property “content” on null in?/wordpress/plugins/jetpack/12.9-a.1/modules/woocommerce-analytics/classes/class-jetpack-woocommerce-analytics-universal.php on line 495

Viewing 7 replies - 1 through 7 (of 7 total)
  • davidebr90

    (@davidebr90)

    Hi, replace contente in line number 495 (file /modules/woocommerce-analytics/classes/class-jetpack-woocommerce-analytics-universal.php) the old line :

    $content = get_block_template( 'woocommerce/woocommerce//page-checkout' )->content;

    with :

    $content = get_block_template( 'woocommerce/woocommerce//page-checkout' )->content ?? '0' ;
    Thread Starter roadlink

    (@roadlink)

    Hi @dabidenr90,
    Thanks for reply. But it will change in case nay update for plugin.

    Daniel

    (@ihenetudan)

    Thank you for reporting this issue.?
    ?
    We are aware of it and have already prepared a fix to be released with Jetpack 12.8.1 soon.?
    ?
    In the meantime, you can downgrade/roll back Jetpack to resolve the issue.
    ?
    We appreciate your patience.

    Thread Starter roadlink

    (@roadlink)

    Hi,

    I see more now.

    • Warning: Attempt to read property “content” on null in /wordpress/plugins/jetpack/12.9-a.1/modules/woocommerce-analytics/classes/class-jetpack-woocommerce-analytics-trait.php on line 226
    • ?Nov 17, 07:42:12Warning: Attempt to read property “content” on null in?/wordpress/plugins/jetpack/12.9-a.1/modules/woocommerce-analytics/classes/class-jetpack-woocommerce-analytics-trait.php on line 225
    •  Nov 17, 07:42:12Deprecated: str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wordpress/plugins/jetpack/12.9-a.1/modules/woocommerce-analytics/classes/class-jetpack-woocommerce-analytics-trait.php on line 224
    Plugin Support Animesh Gaurav (a11n)

    (@bizanimesh)

    Hello there – we are aware of the issue and are working on the fix. Have you updated the WooCommerce plugin to 8.3.0? Because some warnings should be fixed after updating the WooCommerce plugin, if it doesn’t, then I request you to wait for some days for an update from Jetpack and WooCommerce, which should fix all the warnings.

    Plugin Contributor Stef (a11n)

    (@erania-pinnera)

    Hi there,

    Do you have updates about that? We usually close inactive threads after one week of no movement, but we want to make sure we’re all set before marking it as solved. Thanks!

    Plugin Contributor Stef (a11n)

    (@erania-pinnera)

    It’s been one week since this topic was last updated. I’m going to mark this thread as solved. If you have any further questions or need more help, you’re welcome to open another thread here. Cheers!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘php warning’ is closed to new replies.