• Resolved kijam

    (@kijam)


    [08-Nov-2023 13:03:04 UTC] PHP Fatal error:  Uncaught TypeError: Unsupported operand types: array + string in /nas/content/live/******/wp-content/plugins/datalayer-for-ecommerce-free/src/RenderProduct.php:193
    Stack trace:
    #0 /nas/content/live/******/wp-content/plugins/datalayer-for-ecommerce-free/src/RenderProduct.php(36): DatalayerForWoocommerceFree\RenderProduct::prepare_impressions_items(Array, NULL, 1, true, true, false)
    #1 /nas/content/live/******/wp-content/plugins/datalayer-for-ecommerce-free/src/RenderDataLayerPro.php(118): DatalayerForWoocommerceFree\RenderProduct::mount_measuring_views_of_product_details_data_layer(Object(WC_Product_Woosb), Array)
    #2 /nas/content/live/******/wp-includes/class-wp-hook.php(310): DatalayerForWoocommerceFree\RenderDataLayerPro->search_page_trigger('')
    #3 /nas/content/live/******/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array)
    #4 /nas/content/live/******/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #5 /nas/content/live/******/wp-includes/general-template.php(3053): do_action('wp_head')
    #6 /nas/content/live/******/wp-content/themes/storefront/header.php(19): wp_head()
    #7 /nas/content/live/******/wp-includes/template.php(785): require_once('/nas/content/li...')
    #8 /nas/content/live/******/wp-includes/template.php(720): load_template('/nas/content/li...', true, Array)
    #9 /nas/content/live/******/wp-includes/general-template.php(48): locate_template(Array, true, true, Array)
    #10 /nas/content/live/******/wp-content/plugins/woocommerce/templates/single-product.php(22): get_header('shop')
    #11 /nas/content/live/******/wp-includes/template-loader.php(106): include('/nas/content/li...')
    #12 /nas/content/live/******/wp-blog-header.php(19): require_once('/nas/content/li...')
    #13 /nas/content/live/******/index.php(17): require('/nas/content/li...')
    #14 {main}
      thrown in /nas/content/live/******/wp-content/plugins/datalayer-for-ecommerce-free/src/RenderProduct.php on line 193
    

    Hi! We woke up with the page down with this error after the plugin was updated to version 3.0.0

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Heitor_tito

    (@heitor_tito)

    Hello @kijam

    We have identified that the problem with the plugin giving an error on your website is because you activated both options: DataLayer for WooCommerce Enhanced Ecommerce and DataLayer for WooCommerce Ecommerce GA4, although the right thing would be not to crash the website ( we are looking at the best way to solve this problem), you cannot activate both options, and we recommend that you only use the option: DataLayer for WooCommerce Ecommerce GA4.

    Any questions I’m avaliable

    Thread Starter kijam

    (@kijam)

    I did what you say, we changed to only “DataLayer for WooCommerce Ecommerce GA4” https://prnt.sc/2TNiYKUY5RC6 but the error persists, the page when you open a product file gives a 500 error.

    Plugin Contributor Heitor_tito

    (@heitor_tito)

    Hello @kijam

    It is likely that there is a cache error on your website because the admin screen you sent us is not from version 3.0.0, see what the admin from version 3.0.0 looks like: https://ps.w.org/datalayer-for-ecommerce-free/assets/screenshot-1.png?rev=2986436

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error’ is closed to new replies.