管理面板图像未显示在 Oscommerce 中
我有一个基于 Oscommerce 的网站,它在前端显示该网站的所有图像,但在管理面板中,图像(产品图像)没有显示,我在下面给出了 /catalog/admin/includes/configure.php 文件以下。
define('HTTP_SERVER', 'http://mysite.com');
define('HTTP_CATALOG_SERVER', 'http://mysite.com');
define('HTTPS_CATALOG_SERVER', 'http://mysite.com');
define('ENABLE_SSL_CATALOG', 'false');
define('DIR_FS_DOCUMENT_ROOT', '/home3/hearworl/public_html/shop_now/catalog/');
define('DIR_WS_ADMIN', '/shop_now/catalog/admin/');
define('DIR_FS_ADMIN', '/home3/hearworl/public_html/shop_now/catalog/admin/');
define('DIR_WS_CATALOG', '/home3/hearworl/public_html/shop_now/catalog/');
define('DIR_FS_CATALOG', '/home3/hearworl/public_html/shop_now/catalog/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
I have Oscommerce based site which is showing up all the images of the site in frontend ,but in the admin panel the images(product images) is not showing up ,i've given below /catalog/admin/includes/configure.php file below.
define('HTTP_SERVER', 'http://mysite.com');
define('HTTP_CATALOG_SERVER', 'http://mysite.com');
define('HTTPS_CATALOG_SERVER', 'http://mysite.com');
define('ENABLE_SSL_CATALOG', 'false');
define('DIR_FS_DOCUMENT_ROOT', '/home3/hearworl/public_html/shop_now/catalog/');
define('DIR_WS_ADMIN', '/shop_now/catalog/admin/');
define('DIR_FS_ADMIN', '/home3/hearworl/public_html/shop_now/catalog/admin/');
define('DIR_WS_CATALOG', '/home3/hearworl/public_html/shop_now/catalog/');
define('DIR_FS_CATALOG', '/home3/hearworl/public_html/shop_now/catalog/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的问题是有道理的,但是所提供的配置数据对于不查看您的实际服务器的任何人来说毫无意义。
我的一个快速建议是安装 Firefox(如果您还没有使用它)和 Firebug Add-On(再次,如果您还没有使用它)。然后右键单击应显示图像的区域并选择“检查元素”以检查 HTML/CSS 并查看图像的 URL。尝试直接查看图像以确保文件有效且可访问。如果没有,请检查图像 URL、您的文件夹/文件、权限等。
Your question makes sense, but the provided configuration data means nothing to anyone not looking at your actual server.
A quick recommendation I would make would be to install Firefox (if you aren't using it already) and the Firebug Add-On (again, if not already using it). Then right-click on the area where the image should be displayed and select "Inspect Element" to review the HTML/CSS and see the URL for the image. Try and view the image directly to ensure that the file is valid and accessible. If not, review the image URL, your folders/files, permissions, etc.
谢谢,我遇到了同样的问题,只需编辑
configure.php
中的to和
to
即可。
Thanks I had the same problem, just edit the
to
and
to
in
configure.php
.