Jump to content

Fix : Prestashop 1.4.7 on non standard HTTP port


Recommended Posts

If anybody running Prestashop 1.4.7 on Apache with port other than 80, and have problem when adding a cart (Technical Error : Unable to add the product), the solution is edit the FrontController.php and change from

 

'content_dir' => $protocol_content.Tools::getServerName().__PS_BASE_URI__,

 

to

 

'content_dir' => $protocol_content.Tools::getShopDomain().__PS_BASE_URI__,

 

 

I wonder why in 1.4.7 it changed to getServerName() instead getShopDomain().

 

cheers.

Link to comment
Share on other sites

×
×
  • Create New...