Prestashop

Prestashop cannot be installed on Loopia by default because the installation process does not allow the @-sign in the MySQL-user name.

This can easily be fixed by editing a file so that the installation script allows the @-sign.

Before uploading the Prestashop-files to our server you must edit the file /classes/Validate.php.

Search for the line below (around line 760):

public static function isUnixName($data)
{
	return preg_match('/^[a-z0-9\._-]+$/ui', $data);
}

In this function you must add the @-sign so that it looks like below:

public static function isUnixName($data)
{
	return preg_match('/^[@a-z0-9\._-]+$/ui', $data);
}

Save this file and upload it to us and you should now be able to complete the installation process as usual.

This has been tested with Prestashop versions 1.4.6.2 and 1.4.9, the step may change in future versions of Prestashop.

Was this article helpful?

Related Articles