HTTP 500 Product error after updating database
Posted: Thu Apr 25, 2024 9:02 am
We have one product that for some reason is not showing on our test site after a database upgrade. All the other 3000+ products show fine. This one product is a download product and shows in the category listings and searches but will not open in a product page. We get a HTTP 500 error. We have tried changing all text, inputs and images and still nothing works. If we duplicate the product it works fine so there is no real problem but its now got to a curiosity thing where I just want to know why the error is there.
Here is the error from the log files
Here is the error from the log files
Does anyone have any ideas[25-Apr-2024 09:51:12 Europe/London] PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in /home/####/public_html/####/includes/modules/header_tags/ht_product_schema.php:30
Stack trace:
#0 /home/####/public_html/####/includes/system/versioned/1.0.8.4/template.php(79): ht_product_schema->execute()
#1 /home/####/public_html/####/templates/default/includes/components/template_top.php(13): Template->build_blocks()
#2 /home/####/public_html/####/templates/default/includes/pages/product_info.php(13): require('/home/####/...')
#3 /home/####/public_html/####/product_info.php(25): require('/home/####/...')
#4 {main}
thrown in /home/####/public_html/####/includes/modules/header_tags/ht_product_schema.php on line 30