Jump to content

Error file.products.tpl.php on line 330


alexlg12

Recommended Posts

Hi, I have a mini online shop with the latest prestashop version, when enter on category(www.site.com/category) I get some errors:

Quote

[27-Nov-2020 23:40:10 Europe/Bucharest] PHP Warning:  strip_tags() expects parameter 1 to be string, array given in /home/fitolide/public_html/var/cache/prod/smarty/compile/layouts_layout_left_column_tpl/ab/3d/3e/ab3d3e4c9c2fa4db156bcfab81af1f911ef42892_2.file.products.tpl.php on line 330
[27-Nov-2020 23:40:10 Europe/Bucharest] PHP Warning:  strip_tags() expects parameter 1 to be string, array given in /home/fitolide/public_html/var/cache/prod/smarty/compile/layouts_layout_left_column_tpl/ab/3d/3e/ab3d3e4c9c2fa4db156bcfab81af1f911ef42892_2.file.products.tpl.php on line 330

 

Edited by alexlg12 (see edit history)
Link to comment
Share on other sites

Hi, i have the same error:

PHP Warning: strip_tags() expects parameter 1 to be string....

I found this line in my template:

<div class="manufacturer"><a href="{url entity='manufacturer' id=$product.id_manufacturer }">{$product.manufacturer_name|strip_tags:'UTF-8'|escape:'html':'UTF-8'}</a></div>

nobody knows how it should be fixed?

Link to comment
Share on other sites

Hi!
if it helps I have version 1.7.6.0 of prestashop; I tried to change the PHP version from 7.0, 7.1, then 7.2 and finally 7.3 but the error is always there, also with version 7.0 and 7.1 I only have the strip_tags error, with the other major the errors increase :
 

Quote

07-Dec-2020 09:53:46 Europe / Rome] PHP Warning: strip_tags () expects parameter 1 to be string, array given in / public_html / var / cache / prod / smarty / compile / layouts_layout_left_column_tpl / e4 / a6 / e4 /e4a6e4da19d223aa3b6bdbb3d5cf6724c397cddb_2.file.products.tpl.php on line 298
[07-Dec-2020 09:53:46 Europe / Rome] PHP Warning: count (): Parameter must be an array or an object that implements Countable in / public_html / var / cache / prod / smarty / compile / 4a / d7 /88/4ad78810e4bbafe830ada45935ec22a58a70bfe2_2.file.blockwishlist_button.tpl.php on line 24

 

Edited by WEBMADE (see edit history)
Link to comment
Share on other sites

  • 6 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...