Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add Product, Image Not Working


GetmoMedia

Recommended Posts

Posted

Alright, this is my first OSCommerce setup, and it was a feature of the host with click-click-install ;)

Now, I'm trying to add products to the cart, and after I enter in the info, browse for the image and click

preview, the preview comes up with a broken image.

 

I'm currently setting up the site here:

http://205.234.232.250/~bodyart/

before I redirect the already existing domain name to that address, and away from the current host.

With the shopping cart installed here:

http://205.234.232.250/~bodyart/ecommerce/

 

When I check the ecommerce/images folder, the file I browsed for and selected IS there.

When I check the link of the broken image, here's where it's looking:

http://205.234.232.250/ecommerce/images/GDBB.jpg

instead of where it should be looking:

http://205.234.232.250/~bodyart/ecommerce/images/GDBB.jpg

 

from the ecommerce/includes/configure.php file:

  define('HTTP_SERVER', 'http://205.234.232.250/~bodyart/'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://205.234.232.250/~bodyart/'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', false); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'bodyartcanada.com');
 define('HTTPS_COOKIE_DOMAIN', 'bodyartcanada.com');
 define('HTTP_COOKIE_PATH', '/ecommerce/');
 define('HTTPS_COOKIE_PATH', '/ecommerce/');
 define('DIR_WS_HTTP_CATALOG', '/ecommerce/');
 define('DIR_WS_HTTPS_CATALOG', '/ecommerce/');
 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/');

 

Once the domain name points to the new server, I'll be replacing the HTTP_server with that...

Otherwise, it will stay the same, right?

 

Does anyone spot any errors?

The only thing I can think of, is that it doesn't like that's it's in /~bodyart/

Any help you guys can give me would be much appreciated,

Thanks in advance!

-- Ryan

 

 

P.S. Stuff I've tried:

- Using the full HTTP address for the images directory didn't work, it just tryed looking for the file here:

/ecommerce/http://205.234.232.250/~bodyart/ecommerce/images/GDBB.jpg

- taking the first / from in front of the ecommerce references

and more...

Posted

remove the trailing slash from

 

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

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

 

so it looks like

 

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

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

Posted

images do not get the full url in the sourcecode.

anyway when I check your site I do see the image of fox correctly.

yet no products left (guess all are deleted)

 

edit: else the resize function would no longer be able to retreve the image sizes

if this problem persists I could help you rewrite your tep_image function to generate full image source urls instead.

Posted

I am doubting your problem, if this either you have solved it already or it is not an alround problem, the images I do see on your site seem to be correctly generated by the tep_image function

 

so there would be no need to make that generate full image source urls.

 

does your problem perhaps only exist in the backend?

or does it only show on specific pages?

Posted

Well, with jdvb's reply, I decided to just go ahead and insert the product to see if it was backend only.

Looks like it is only on the backend.

 

Here's a screenshot after I added the product:

bodyart-shoppingcart-backend.jpg

 

Yet, if you go here:

http://205.234.232.250/~bodyart/ecommerce/

You can see that the item does show up fine...

 

Anyone know why it would do it only in the backend?

Is it a problem I should be worried about?

Thanks everyone for the help so far! :)

Posted

please look at your admin/includes/configure.php and post that here without your password and login...

Posted

define('HTTP_SERVER', 'http://205.234.232.250/~bodyart'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://205.234.232.250/~bodyart');
 define('HTTPS_CATALOG_SERVER', 'https://205.234.232.250/~bodyart');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/home/bodyart/public_html'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/ecommerce/admin/'); // absolute path required
 define('DIR_FS_ADMIN', '/home/bodyart/public_html/ecommerce/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', '/ecommerce/'); // absolute path required
 define('DIR_FS_CATALOG', '/home/bodyart/public_html/ecommerce/'); // 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', 'localhost'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', '(______)');
 define('DB_SERVER_PASSWORD', '(______)');
 define('DB_DATABASE', '(______)');
 define('USE_PCONNECT', 'false'); // use persisstent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

As I'm looking at that, I'm realizing that maybe the problem is the DB_SERVER line...

Archived

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

×
×
  • Create New...