Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Not Locating images!!


denzel2364

Recommended Posts

Posted

For some reason, my images on my site cant be seen!!

 

However, the link to a larger image does work.

 

go to www.pebble-designs.co.uk and select any of the 2 products and it wont show. Not even in the odmin page.

 

Please help

Posted

Well, the images pathway is correct on your website, so I suspect that you have a .htaccess file problem - which is preventing your own website from displaying your own images. Check in the images folder for a .htaccess file.

 

Vger

Posted

I have a similar problem. I installed the oscommerce package, and the website doesn't show any image at all. Please see www.computerzip.com. I have tried renaming .htaccess in includes directory .. but that didn't help. I am using Windows XP Pro, BTW.

Posted

Maybe he meant .htaccess in includes directory. I read in previous posts that renaming this file fixes the images problem on some Windows based machines. Didn't work for me though

Posted

Try doing as the post above advocates and rename the includes/.htaccess file to txt.htaccess. This does sometime work.

 

Vger

i have a mac osX system.

 

Ive got the file open, what should i look for?

Posted

When working on a local web server try putting osCommerce into the root directory complete with its 'catalog' folder, so the address is http://localhost/catalog. Sometimes the address http://localhost is used by the server operating system (this is certainly the case with XAMPP).

 

If nothing else it will allow you to run multiple test stores on the same local server.

 

Vger

Just try renaming .htaccess to SOMETHING.htaccess. And see if that fixes your problem. It didn't fix mine.

BTW, vger (or anybody else) I can go to http://localhost/admin and see all the oscommerce pics etc, then why do I not see them when I go to http://localhost ???

Posted

sorry VGER you've lost me!

 

What would i need to do. Its just the product images and the small icons in the admin folder that dont show. Otherwise, it works for me.

 

One day it was running ok, the next i tried adding a product and it died on me!

Posted

I found my problem at http://www.computerzip.com. I am using domain-forwarding, and was using the domain 'computerzip.com' in configure.php. So the images weren't accessible because of forwarding (I realized this when I changed the domain to 'localhost'.

 

Anyway, so for now I've set the domain to my machine's IP address. And everything works fine. Now I need to get a hosting service to get rid of the domain forwarding as a long term solution.

Posted

so what would people recommend for me?

it it a domain problem that i have.

It did go down for a short while. I think it stopped working after that

Posted

Every single one of your pages is registering a javascript error, and why are you using a german version of osCommerce with 'Impressum' etc when your site is UK based?

 

Although the file pathways to the images folder are correct when I use View Source to look at them I am wondering if it is the way in which your includes/configure.php file has been written that is the problem.

 

Post your includes/configure.php file here, minus the db user name, password, and database name.

 

Vger

Posted

this is the includes configure.php

 

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

define('DIR_FS_CATALOG', '/home/denzel23/public_html/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/');

 

i cant remember where the other one is but i hope this helps

Posted

// Define the webserver and path parameters

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

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

define('HTTP_SERVER', 'http://www.pebble-designs.co.uk'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://www.pebble-designs.co.uk');

define('HTTPS_CATALOG_SERVER', 'https://www.pebble-designs.co.uk');

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

define('DIR_FS_DOCUMENT_ROOT', '/public_html/catalog/'); // where the pages are located on the server

 

hi, this was the top bit

Posted

located the problem but dont know how to fix it.

it looks like the images arent showing because it isnt locating the product_thumb.php for some reason.

Where do you think i can go to edit a php to locate it to the correct one?

Posted

I think I'm having the same exact problem.

 

I have multiple stores set up for testing.

/var/www/htdocs/a/

/var/www/htdocs/b/

/var/www/htdocs/c/

/var/www/htdocs/d/

 

The alpha character is the "catalog" directory.

 

I have tried the abpove tips with no success.

 

Let me add one thing. If I access the site locally, it works fine. i.e. http://localhost/a/. If I am access it remotely http://182.168.X.X/a/ then the catalog images don't display. The admin images work fine on the initial screen. But it looks like localhost is more or less hard coded into the PHP code since anything I click on takes me from http://192.168.x.x to http://localhost.

Posted

I came up with a fix for my image problems.

 

When you install/configure osCommerce, do it remotely. Using the web server must stick "localhost" or something else preventing it from displaying the correct images and php info.

Posted
this is the includes configure.php

 

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

define('DIR_FS_CATALOG', '/home/denzel23/public_html/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/');

 

i cant remember where the other one is but i hope this helps

 

I believe that should be

 

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

My Contributions

 

Henry Smith

Archived

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

×
×
  • Create New...