500 Internal Server Error upon entering module configuration page

Noumankhan

Member
XNullUser
Joined
Jun 6, 2022
Messages
26
Reaction score
42
Points
13
NullCash
161
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







Solution for Call For Price + Call Back Product Button module:​



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


it will look like this:







 
Top