我在xampp服务器上安装了prestashop。当我打开prestashop管理员并单击模块选项卡时,我得到了空白页面。
在此之后我启用了错误报告并收到以下错误:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1139 Got error 'this version of PCRE is compiled without UTF support at offset 0' from regexp' in /opt/lampp/htdocs/prestashop/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:91 Stack trace: #0 /opt/lampp/htdocs/prestashop/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(91): PDOStatement->execute(NULL) #1 /opt/lampp/htdocs/prestashop/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(828): Doctrine\DBAL\Driver\PDOStatement->execute() #2 /opt/lampp/htdocs/prestashop/vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php(50): Doctrine\DBAL\Connection->executeQuery('SELECT p0_.id_t...', Array, Array, NULL) #3 /opt/lampp/htdocs/prestashop/vendor/doctrine/orm/lib/Doctrine/ORM/Query.php(321): Doctrine\ORM\Query\Exec\SingleSelectExecutor->execute(Object(Doctrine\DBAL\Connection), Array, Array) #4 /opt/lampp/htdocs/prestashop/vendor/doctrine/orm/lib/Doctrine/ORM/Abstrac in /opt/lampp/htdocs/prestashop/app/bootstrap.php.cache on line 3216
请帮帮我。任何帮助,将不胜感激。感谢。
答案 0 :(得分:0)
当数据库名称出现问题时,通常会出现此问题。
PrestaShop已成功连接到您的Mysql服务器,但它没有找到您的settings.inc.php中提到的名称的数据库。
解决问题:
SELECT * FROM YOUR_DB_NAME.users 如果您收到类似的错误,那么您就知道您的数据库名称肯定是错误的。