Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I cannot fix broken image links


dboucha

Recommended Posts

Posted

I have scoured the forums for an answer before asking this here. I'm very new.

 

When I upload a new product from the admin page, the image link doesn't work anywhere on the site. I've tried putting it in it's own folder like the demos and in the catalog/images folder. Is this a bug? Am I doing something wrong? Thanks so much for your help.

 

David

Posted

do you have the permissions set correctly in your images folder? Is your cinfigure.php file filed with the correct location of your images folder?

  • 2 weeks later...
Posted

:?: David,

 

Did you ever get this problem resolved? I am having the same problem on my box in not being able to see the iamges?

Posted

Hello,

 

Im facing the same problem, I can't view the images ??

what to do to resolve this issue ?

 

I've tried to copy the images folder to catalog/images but still the same ??

 

 

please advice

thank you

Posted

what is the url of image location in properties when you right click on the image that doesn't appear?

 

normally the problem is either in one of your configure files or in your chod settings.

Posted

Im installing it using PHPDEV5 in my PC

 

I have:

/catalog folder

/catalog/admin folder

 

the link it doesnt appear I dunno why.

 

Well I've changed the attributes for configure.php in

 

catalog/includes

catalog/admin/includes

 

to read only because im running windows 2000 professional

 

 

please advice if you can

thanks

Posted

if you have the store online I'll have a quick look at it. otherwise I'm really not sure about the differences of using a windows based installation

Posted

Well, really till now I'm trying to fix this problem I dont know what is the problem all about.

 

I've copied the images directory to catalog/images

and Its in the original place

 

but still the same problem.

 

 

I hope anyone can advice

 

thank you

Posted

if you paste you configure files here, then I will try and see if I can give you any tips

Posted

this is: cart/catlog/includes/configure.php

 

 

<?php



// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

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

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

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

 define('DIR_WS_CATALOG', '/cart/catalog/'); // absolute path required

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

 define('DIR_FS_DOCUMENT_ROOT', 'c:/phpdev5/www/cart');

 define('DIR_FS_CATALOG', 'c:/phpdev5/www/cart/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', '127.0.0.1'); // eg, localhost - should not be empty for productive servers

 define('DB_SERVER_USERNAME', '');

 define('DB_SERVER_PASSWORD', '');

 define('DB_DATABASE', 'cart');

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

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

?>

Posted

this is: cart/catalog/admin/includes/configure.php

 

<?php





// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

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

 define('HTTP_CATALOG_SERVER', 'http://localhost');

 define('HTTPS_CATALOG_SERVER', 'https://localhost');

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

 define('DIR_FS_DOCUMENT_ROOT', 'c:/phpdev5/www/cart'); // where the pages are located on the server

 define('DIR_WS_ADMIN', '/cart/catalog/admin/'); // absolute path required

 define('DIR_FS_ADMIN', 'c:/phpdev5/www/cart/catalog/admin/'); // absolute pate required

 define('DIR_WS_CATALOG', '/cart/catalog/'); // absolute path required

 define('DIR_FS_CATALOG', 'c:/phpdev5/www/cart/catalog/'); // absolute path required

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



// define our database connection

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

 define('DB_SERVER_USERNAME', '');

 define('DB_SERVER_PASSWORD', '');

 define('DB_DATABASE', 'cart');

 define('USE_PCONNECT', 'true'); // use persisstent connections?

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

?>

 

 

 

As I wrote befor:

 

I have the images direcotry in:

 

cart/catalog/images

and

cart/catalog/admin/images

 

 

thanks

Posted

i think you'll need to find someone who knows more about setting up a mySQL database locally on windows, i think thats where the problem lies.

 

sorry i can't help you :(

Posted

I've solved this issue, by dropping the .htaccess file which is located in

 

cart/catlog/includes

 

well I dunno now how I can secure my configure file, I guess I will use zend encoding

 

 

thanks all

Archived

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

×
×
  • Create New...