Search code examples
xampplocalhostprestashop

Prestashop Installation in Mac using XAMP


A problem when installing Prestashop through xampp,in Mac I installed xampp activated first and everything from the control panel. Then I downloaded the latest version of Prestashop. I copied the folder in XAMPP in htdcos. The route would be: xampp / htdocs / prestashop / install. However I prepare to install prestashop I get an error. And the error is : PHP Fatal error: Class 'Tools' not found in /Applications/XAMPP/xamppfiles/htdocs/prestashop/classes/PrestaShopAutoload.php on line 168 Any idea how to fix it? :)

Here are the screenshots attached with error= define('_PS_MODE_DEV_', true);: and define('_PS_MODE_DEV_', false); enter image description here

enter image description here


Solution

  • open /Applications/XAMPP/xamppfiles/htdocs/prestashop/classes/PrestaShopAutoload.php file in line 168 and change Tools::error_log on error_log.

    Then you will see "Cannot write temporary file " message.

    Check dir owner and make your /Applications/XAMPP/xamppfiles/htdocs/prestashop/cache/ dir writable (recursive) to webserver user, like: chown -R someuser /dir (and may be needed e.g. chmod 755 /dir in some cases, depends on your environment)