Very often, after installing some of our modules and trying to configure them or add content (for example, blog articles, FAQ's), a 500 error occurs. The problem occurs when you're using PrestaShop 1.7 or higher and PHP version 7.2 or higher
There are different forms of this message because each host/server is allowed to customize the way it's displayed. Here are some common ways you might see this error.
We have a solution for modules with which we have problems. Below are the instructions for each module. List of modules:
Open the file: «AdminCallForPriceController.php» from the following folder: «callforprice/controllers/admin» and find the line «public function setMedia()». Add the following code:
$isNewTheme = false
next, find a «parent::setMedia()» string. Add the following code:
$isNewTheme
Here we go:
Next, open the «CallForPriceItem.php» file from the «/callforprice/classes» folder and add and find the line «public function save($null_values)». Add the following code:
, $auto_date = true
next, find a «$res=parent::save($null_values)» string. Add the following code:
, $auto_date
Open the file: «AdminFaqsCategory.php» from the following folder: «faqs/controllers/admin» and find the line «public function setMedia()». Add the following code:
$isNewTheme = false
next, find a «parent::setMedia()» string. Add the following code:
$isNewTheme
It will look like this:
Make the same changes with the same lines and code in the files "AdminFaqsPost.php" and "AdminFaqsSettings.php" from the «faqs/controllers/admin» folder.
Open the file: «AdminContactFormController.php» from the following folder: «blockcontactform/controllers/admin» and find the line «public function setMedia()». Add the following code:
$isNewTheme = false
next, find a «parent::setMedia()» string. Add the following code:
$isNewTheme
It will look like this:
Open the file: «AdminMotivationsaleController.php» from the following folder: «motivationsale/controllers/admin» and find the line «public function setMedia()». Add the following code:
$isNewTheme = false
next, find a «parent::setMedia()» string. Add the following code:
$isNewTheme
It will look like this:
Open the file: «AdminProductEditController.php» from the following folder: «mpm_bulkproductedit/controllers/admin» and find the line «public function setMedia()». Add the following code:
$isNewTheme = false
next, find a «parent::setMedia()» string. Add the following code:
$isNewTheme
It will look like this:
Open the file: «AdminFreeCallController.php» from the following folder: «freecall/controllers/admin» and find the line «public function setMedia()». Add the following code:
$isNewTheme = false
next, find a «parent::setMedia()» string. Add the following code:
$isNewTheme
It will look like this: