Jump to content

Compile error: Cannot use isset() on the result of an expression (you can use "null !== expression"


ana777

Recommended Posts

Please HELP

 

I have the following error on a prestashop 1.7 version when I click in the TopMenu navigation. Everything else seams to work OK. 

 

FatalErrorException in 8bcd7270a031099175bfb93bc8750d28a0a5755b.file.category.tpl.php line 308:

Compile Error: Cannot use isset() on the result of an expression (you can use "null !== expression" instead)

 

Does someone knows how to fixe it? Its URGENT!!!post-1216750-0-75432500-1489413247_thumb.pngpost-1216750-0-75432500-1489413247_thumb.png

post-1216750-0-52314100-1489413642_thumb.png

Link to comment
Share on other sites

From the error message, there is invalid code like isset($size || $color) in themes/classic/templates/catalog/listing/category.tpl or product-list.tpl. Make sure there is no isset() that has an expression inside it instead of a single variable. For example, the previous code should be isset($size) && isset($color). I can't find any such code in the default theme, so I'm assuming you've modified something.

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