模块选项卡中的Prestashop管理员获取空白页面

时间:2016-11-30 09:37:30

标签: ubuntu-14.04 prestashop prestashop-1.7

我在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

请帮帮我。任何帮助,将不胜感激。感谢。

1 个答案:

答案 0 :(得分:0)

当数据库名称出现问题时,通常会出现此问题。

PrestaShop已成功连接到您的Mysql服务器,但它没有找到您的settings.inc.php中提到的名称的数据库。

解决问题:

  • 为相关服务器打开PHPMyAdmin并运行此查询:

SELECT * FROM YOUR_DB_NAME.users 如果您收到类似的错误,那么您就知道您的数据库名称肯定是错误的。

  • 确保服务器上数据库的名称与settings.inc.php中数据库名称的大小写相匹配。根据您的MySQL设置,服务器可能会也可能不会对数据库/表名称强制区分大小写。