denzel2364 Posted March 12, 2006 Posted March 12, 2006 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
♥Vger Posted March 12, 2006 Posted March 12, 2006 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
namityadav Posted March 12, 2006 Posted March 12, 2006 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.
denzel2364 Posted March 12, 2006 Author Posted March 12, 2006 hi, no i cant find a .htaccess file in the images folder. Am i meant to be looking in the images file iteself?
namityadav Posted March 12, 2006 Posted March 12, 2006 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
denzel2364 Posted March 12, 2006 Author Posted March 12, 2006 i have a mac osX system. Ive got the file open, what should i look for?
namityadav Posted March 12, 2006 Posted March 12, 2006 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 ???
♥Vger Posted March 12, 2006 Posted March 12, 2006 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?
♥Vger Posted March 12, 2006 Posted March 12, 2006 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 ???
denzel2364 Posted March 12, 2006 Author Posted March 12, 2006 would i need to change anything elso once ive changed the file name?
denzel2364 Posted March 12, 2006 Author Posted March 12, 2006 no it didnt work for me! i renamed to txt.htaccess
denzel2364 Posted March 12, 2006 Author Posted March 12, 2006 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!
namityadav Posted March 12, 2006 Posted March 12, 2006 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.
denzel2364 Posted March 13, 2006 Author Posted March 13, 2006 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
♥Vger Posted March 13, 2006 Posted March 13, 2006 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
denzel2364 Posted March 13, 2006 Author Posted March 13, 2006 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
♥Vger Posted March 13, 2006 Posted March 13, 2006 I need to see the top part of the file as well. Vger
denzel2364 Posted March 14, 2006 Author Posted March 14, 2006 // 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
denzel2364 Posted March 17, 2006 Author Posted March 17, 2006 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?
Guest Posted March 18, 2006 Posted March 18, 2006 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.
Guest Posted March 18, 2006 Posted March 18, 2006 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.
denzel2364 Posted March 18, 2006 Author Posted March 18, 2006 im might just be thick, but could you explain that a bit easier for me. Its all new to me!!
custodian Posted March 18, 2006 Posted March 18, 2006 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.