• Hi Thomas,
    after updating to 1.12.1 Checkout throws Error 500. Site is running on PHP 8.0.3 and MariaDB 10.3

    PHP Fatal error: Uncaught TypeError: Unsupported operand types: string + int in /wp-content/plugins/duracelltomi-google-tag-manager/integration/woocommerce.php:181

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    Thanks for the report, I will look at it as soon as possible and release a v1.12.2 fix

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    Do you have any sandbox/dev version of the site?
    If yes, could you test if replacing this one line to this solves your issue?

    $ga4_product[ "item_category_" + (string)($i+1) ] = $category_parts[$i];

    I will need to go through the code as there can be other cases of such type mixing.

    Hi,
    i’ve tried replacing that line… nothing.

    Still getting:
    Warning: A non-numeric value encountered in …../wp-content/plugins/duracelltomi-google-tag-manager/integration/woocommerce.php on line 181

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Sorry, my bad, I meant this:

    $ga4_product[ "item_category_" . (string)($i+1) ] = $category_parts[$i];

    There is a . and not a + in the line.

    This solves it here.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘1.12.1 PHP8 compatibility issue’ is closed to new replies.