管理面板图像未显示在 Oscommerce 中

发布于 2024-10-09 13:19:00 字数 1544 浏览 4 评论 0原文

我有一个基于 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 技术交流群。

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

发布评论

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

评论(2

陪你到最终 2024-10-16 13:19:00

您的问题是有道理的,但是所提供的配置数据对于不查看您的实际服务器的任何人来说毫无意义。

我的一个快速建议是安装 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.

揪着可爱 2024-10-16 13:19:00

谢谢,我遇到了同样的问题,只需编辑

define('HTTP_SERVER', 'http://localhost/aanchal');    

configure.php 中的to

define('HTTP_SERVER','http://aanchal.site50.net/aanchal');

define('HTTPS_SERVER', 'http://localhost/aanchal');   

to

define('HTTPS_SERVER', 'http://aanchal.site50.net/aanchal'); 

即可。

Thanks I had the same problem, just edit the

define('HTTP_SERVER', 'http://localhost/aanchal');    

to

define('HTTP_SERVER','http://aanchal.site50.net/aanchal');

and

define('HTTPS_SERVER', 'http://localhost/aanchal');   

to

define('HTTPS_SERVER', 'http://aanchal.site50.net/aanchal'); 

in configure.php.

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