Opencart安装和显示错误

发布于 2024-08-25 07:07:19 字数 522 浏览 3 评论 0原文

我需要一些帮助,将 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

多情出卖 2024-09-01 07:07:19
define('DIR_APPLICATION', '.........');
define('DIR_LANGUAGE', '........');
define('DIR_TEMPLATE', '.........');

你是更换设置吗?

define('DIR_APPLICATION', '.........');
define('DIR_LANGUAGE', '........');
define('DIR_TEMPLATE', '.........');

are you replace setting?

迷路的信 2024-09-01 07:07:19

定义('HTTP_IMAGE',
'http://jpoles1.com/image/')

应该是

定义('HTTP_IMAGE',
'http://jpoles1.com/opencart/image/')

尝试一下

define('HTTP_IMAGE',
'http://jpoles1.com/image/')

Should be

define('HTTP_IMAGE',
'http://jpoles1.com/opencart/image/')

try it

顾铮苏瑾 2024-09-01 07:07:19

得到通知:使用未定义的常量 HTTP_IMAGE

got Notice: Use of undefined constant HTTP_IMAGE

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文