Prestashop configuration.inc.php 文件 /* 加载所有配置键 */ 问题
我正在尝试将我的网站上传到我的主机并一直收到此消息 导航到域 URL 时出错。
“loadConfiguration() SQL 查询无效!”
我相信问题出在configuration.inc.php文件中,特别是以下部分
/* 加载所有配置键 */ 配置::loadConfiguration();
我是新手,不知道这意味着什么。任何帮助请在这里是整个文件代码的链接。
http://pastie.org/pastes/1320594/text
非常感谢。
I am trying to get my site uploaded to my host and have been getting this
error when navigating to the domain url.
"Invalid loadConfiguration() SQL query!"
I believe the problem is the configuration.inc.php file the following part in particular
/* Load all configuration keys */
Configuration::loadConfiguration();
I am a newb and have no idea what this means. Any help please here is a link to the whole file code.
http://pastie.org/pastes/1320594/text
thx very much.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我也遇到了这个问题; “无法建立数据库链接”。
正如此处和其他地方所建议的,我已手动将 config/settings.inc.php 中的密码更改回通过电子邮件发送的密码,但我仍然无法进入该网站或管理页面。
对我来说,解决方案是通过我的虚拟主机管理站点(one.com)更改数据库(mySql 或 php -我忘记了)的密码。
史前史:
当我收到一封带有新密码的邮件后,我进入了管理页面。当我在“工具/首选项”中输入新密码时,我就收到“无法建立数据库链接”的提示。
I also had the problem; “Link to database cannot be established”.
As proposed here and elsewhere, I have changed the password in config/settings.inc.php manually back to the emailed password, but I still could not enter the site or the admin-page.
The solution for me was to change the password (also) of the database (mySql or php -I forgot) through my webhosting admin site (one.com).
PreHistory:
After I received a mail with a new password I got in to admin-page. As soon as I entered a new password in Tools/Preferences, I got kicked off with “Link to database cannot be established”.
这意味着你必须重写 config.php 文件,但我似乎在任何地方都找不到这个文件。我在网上查看过,每个人都对该文件说了不同的名称。所以我认为商店的这段代码不是用户友好的..
It means you have to rewrite the config.php file but i cannot seem to find this file anywhere.. I have looked online everyone says a different name to the file.. So i don't think this code for the shop is user friendly..
也许这会对你有所帮助。
编辑config文件夹内的settings.inc.php。您现在可以看到文件中的所有代码。查找与以下类似的行:
May be this will help you.
Edit the settings.inc.php inside the config folder.You can now see all the code in the file. Look for a line that is similar to the one below: