Jump to content

Edit History

1 hour ago, Andrei H said:

Hello,

Yes, that's true. I was just trying to highlight how this can be achieved. That line should be replaced with

return $this->display(__FILE__, 'views/templates/hook/hotproduct.tpl');

 and the

$this->isDisplayed = true; 

added above it.

However, I am not sure if that is causing the 502.

If you remove the code, does it clear the 502?

Yes, I have done those changes and the 502 on category page still happens! If I remove the code, the error clears

 

The nginx error I'm having is: 

PHP message: PHP Warning:  Undefined property: HotProduct::$isDisplayed   (on the if)

12 minutes ago, Andrei H said:

Hello,

Yes, that's true. I was just trying to highlight how this can be achieved. That line should be replaced with

return $this->display(__FILE__, 'views/templates/hook/hotproduct.tpl');

 and the

$this->isDisplayed = true; 

added above it.

However, I am not sure if that is causing the 502.

If you remove the code, does it clear the 502?

Yes, I have done those changes and the 502 on category page still happens! If I remove the code, the error clears

×
×
  • Create New...