Headertags - product schema error
Posted: Tue Jun 18, 2024 9:44 am
Version 1.0.9.0 PHP8.0
I have the following error in my error logs.
Does this mean that somewhere on the site I have one or more products without images.
Can anyone help.
I have the following error in my error logs.
Line 30 is the following[18-Jun-2024 10:14:57 Europe/London] PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in /home/####/####/includes/modules/header_tags/ht_product_schema.php:30
Stack trace:
#0 /home/####/####/includes/system/versioned/1.0.8.4/template.php(79): ht_product_schema->execute()
#1 /home/railways/public_html/templates/override/includes/components/template_top.php(13): Template->build_blocks()
#2 /home/####/####/templates/default/includes/pages/product_info.php(13): require('/home/railways/...')
#3 /home/####/####/product_info.php(25): require('/home/railways/...')
#4 {main}
thrown in /home/####/####/includes/modules/header_tags/ht_product_schema.php on line 30
Code: Select all
$products_image = ( count($images) > 0 )Can anyone help.