Jump to content

Edit History

Shapes

Shapes

Hello,

I created some custom shortcodes for my PrestaShop by creating a file (override/classes/controller/FrontController.php) with a method like :

public static function parseCMSContent($content) { ... }

And in my module and cms smarty templates I changed:

{$cms.content nofilter}

to:

{FrontController::parseCMSContent($cms.content) nofilter}

Everything was working fine with Prestashop 1.7.7.5, but the update to 1.7.8.2 broke the whole thing.

I get a 500 error saying :

PHP Fatal error: Uncaught Error: Call to undefined method FrontController::parseCMSContent() ... .module.pscustomtextpscustomtext. ...

It's still working fine with debug mode enabled though..

I can't find anything about the function being deprecated, any idea on how I could get this working again please?

Shapes

Shapes

Hello,

I created some custom shortcodes for my PrestaShop by creating a file (override/classes/controller/FrontController.php) with a method like :

public static function parseCMSContent($content) { ... }

Everything was working fine with Prestashop 1.7.7.5, but the update to 1.7.8.2 broke the whole thing.

I get a 500 error saying :

PHP Fatal error: Uncaught Error: Call to undefined method FrontController::parseCMSContent() ... .module.pscustomtextpscustomtext. ...

Disabling Custom text block module (v4.2.0) got me rid of the error, but my pages do not display any content anymore as it was all based on these shortcodes.

I can't find anything about the function being deprecated, any idea on how I could get this working again please?

×
×
  • Create New...