Opencart安装和显示错误
我需要一些帮助,将 Opencart 的副本安装到我的 Godaddy 主机上。我遇到了一个主要问题,那就是,在安装期间和安装之后,没有任何样式或图像出现。我能够完全修复管理面板,但我现在遇到了前端问题。我能够通过编辑 index.php 文件中的几行来修复样式:
define('HTTP_SERVER', 'http://' . $_SERVER['HTTP_HOST'] .'/opencart/');
define('HTTP_IMAGE', 'http://jpoles1.com/image/');
现在的问题是,除非您位于基本网址 http://jpoles1.com/opencart/,数据库功能均不起作用。例如,左侧的品牌下拉列表将仅填充在根页面上。
我是否以错误的方式解决这个问题?
我应该怎么做才能解决这个问题?
--
谢谢,
约旦
I need a bit of help installing a copy of Opencart onto my Godaddy hosting. I have had one major problem and that was, after during and after the install, none of the styles or images where appearing. I was able to completely fix the admin panel, but I am now running into problems with the frontend. I was able to fix the styles by editing a couple lines in the index.php file:
define('HTTP_SERVER', 'http://' . $_SERVER['HTTP_HOST'] .'/opencart/');
define('HTTP_IMAGE', 'http://jpoles1.com/image/');
Now the problem is that unless you are on the base url http://jpoles1.com/opencart/, none of the database functionality works. For example the brands dropdown on the left will only be populated on the root page.
Am I going about this problem the wrong way?
What should I do to fix this problem?
--
Thanks,
Jordan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
你是更换设置吗?
are you replace setting?
应该是
尝试一下
Should be
try it
得到通知:使用未定义的常量 HTTP_IMAGE
got Notice: Use of undefined constant HTTP_IMAGE