Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can't see images catalog in Admin Panel


damargon

Recommended Posts

Posted

Hi to all!

 

I have installed osCommerce in my Plesk Virtual Server and I have a problem with the images catalog in Admin Panel. This images has been upload without problems and placed them in "http:www.mydomain/osCommerce/images" folder.

 

I can see this images in the shop correctly but in Admin Panel not.

 

Looking at the images properties I see that the browser is looking for the images in the folder "http:www.mydomain/osCommerce/admin/images" and this is wrong, he must be looking for them at the correct folder "http:www.mydomain/osCommerce/images".

 

I have checked the "admin/includes/configure.php" file for the configuration paths but I cant find which of them I have to change, I have tested somes changes but in any case I could go up over "http:www.mydomain/osCommerce/admin" to get the "http:www.mydomain/osCommerce/images" folder.

 

Any suggestion?

 

Thank you very much in advanced!!

 

:thumbsup:

Posted

You will need to fill in the correct path to your images in the configure.php file

 

2 of them, 1 is in catalog/includes and the other is in admin/includes

Posted

Ok, thanks for your answer, but I am trying to do so and I can't fin the solution.

 

This are the constants in my admin/includes/configure.php: (I think that this is the file where it is the problem)

 

define('HTTP_SERVER', 'http://www.mydomain.com/'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

define('HTTP_CATALOG_SERVER', 'http://www.mydomain.com/');

define('HTTPS_CATALOG_SERVER', 'http://www.mydomain.com/');

define('ENABLE_SSL_CATALOG', '0'); // secure webserver for catalog module

 

define('DIR_FS_DOCUMENT_ROOT', '/var/www/vhosts/mydomain.com/httpdocs/'); // where your pages are located on the server.

define('DIR_WS_ADMIN', 'eCommerce/admin/');

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

define('DIR_WS_CATALOG', 'eCommerce/');

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

define('DIR_WS_IMAGES', 'images/');

 

define('DIR_WS_CATALOG_IMAGES', 'images/');//DIR_WS_CATALOG .

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

 

In the admin panel I can't see the catalog photos. The browser looks for the image file at:

http://www.mydomain.com/eCommerce/admin/im...oduct_image.jpg

when they are at:

http://www.mydomain.com/eCommerce/images/product_image.jpg

 

Any help?

 

Thanks!!

Posted

During install the oscommerce installer knew where your catalog, your admin, your images were. You either had to have made changes during install or after install to the confugure files.

 

This is the default setting without a ssl. If you have a ssl you will need to turn the enable ssl to true and

define('HTTPS_SERVER', 'https://www.yoursite.com');

 

 

~~~~~~~~~~~~~~~~~~~~

 

define('HTTP_SERVER', 'http://yoursite'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'localhost');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

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_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', 'xxxx/xxxx/xxxx/www/catalog/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'xxxx');

define('DB_SERVER_PASSWORD', 'xxxx');

define('DB_DATABASE', 'catalog');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...