Jump to content

Smarty errors


nicoX

Recommended Posts

[28-Sep-2018 18:11:50 Europe/London] PHP Notice:  Trying to get property of non-object in /home//site.com/cache/smarty/compile/e9/c8/29/e9c829d64e9f23e67ae6aa79cc2d87e550c78cee.file.productscategory.tpl.php on line 49
[28-Sep-2018 18:11:50 Europe/London] PHP Notice:  Undefined property: Product::$id_product in /home//site.com/cache/smarty/compile/34/b3/fe/34b3fe80b081b148299bc78fc195582120b4b921.file.product.tpl.php on line 418
[28-Sep-2018 18:11:50 Europe/London] PHP Notice:  Undefined property: Product::$id_product in /home/site.com/cache/smarty/compile/34/b3/fe/34b3fe80b081b148299bc78fc195582120b4b921.file.product.tpl.php on line 419
[28-Sep-2018 19:22:54 Europe/London] PHP Notice:  Undefined index: category in /home/site.com/cache/smarty/compile/e8/64/c1/e864c1d71d19ecb6899c63b3bce8016b0c99386a.file.breadcrumb.tpl.php on line 54
[28-Sep-2018 19:22:54 Europe/London] PHP Notice:  Trying to get property of non-object in /home/site.com/cache/smarty/compile/e8/64/c1/e864c1d71d19ecb6899c63b3bce8016b0c99386a.file.breadcrumb.tpl.php on line 54

I'm getting these in the error_log daily. What can I do to fix it?

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

Look into those cache files at those line numbers. Then try to find the same thing in the original file.

Also try to reproduce those errors. These may be faults in your template. But there may also be some bugs in your database. When I see for example "Undefined index: category" then it may be that a product refers to a category that no longer exists. 

Link to comment
Share on other sites

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...