AmyMarieSodus Posted April 30, 2011 Share Posted April 30, 2011 running FreeBSD 8.1 Mysql 5.5 PHP5 OsCommerce 2.3.1 After loading 1 product then looking at the shop online, It shows the product as a double listing everywhere. I did a search and found nothing on this. Please help. thank you Amy Link to comment Share on other sites More sharing options...
PupStar Posted April 30, 2011 Share Posted April 30, 2011 running FreeBSD 8.1 Mysql 5.5 PHP5 OsCommerce 2.3.1 After loading 1 product then looking at the shop online, It shows the product as a double listing everywhere. I did a search and found nothing on this. Please help. thank you Amy Is it duplicated or is it the alt tag from a missing image??? Link to comment Share on other sites More sharing options...
germ Posted April 30, 2011 Share Posted April 30, 2011 What he said.... Look at the same page with Internet Explorer not Firefox. Do you still see double or has one changed to a broken image, a big X? :unsure: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
AmyMarieSodus Posted April 30, 2011 Author Share Posted April 30, 2011 It's the alt tag from a missing image. How do I fix that? The image is there.. Do I need to do a change mode or something? Link to comment Share on other sites More sharing options...
PupStar Posted April 30, 2011 Share Posted April 30, 2011 It's the alt tag from a missing image. How do I fix that? The image is there.. Do I need to do a change mode or something? check to ensure your includes/configure.php is set correctly. Link to comment Share on other sites More sharing options...
germ Posted April 30, 2011 Share Posted April 30, 2011 Without a link to the site in question it's hard to say exactly what the problem is. When you add products or categories you need to supply an image for each one. If you don't supply one, or the process is unsuccessful, you can get broken images on the page. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
AmyMarieSodus Posted April 30, 2011 Author Share Posted April 30, 2011 This is the directory in the configure.php file for images.. define('DIR_WS_IMAGES', 'images/'); an image was added when I added the product. it is in the images directory under catalog/images Link to comment Share on other sites More sharing options...
germ Posted April 30, 2011 Share Posted April 30, 2011 A primer on troubleshooting image problems Unless you want to post the URL (or pm it to me), all I can offer is at the link above. :blush: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
germ Posted April 30, 2011 Share Posted April 30, 2011 Got your URL. Follow the link I posted. This part is your problem: 5. You get a "internal server error" message. This would be because of an errant .htaccess file in one of the folders in the image path. Rename them (one at a time starting with the loweset in the path) to text.htaccess until the image appears. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
AmyMarieSodus Posted April 30, 2011 Author Share Posted April 30, 2011 I renamed the .htaccess file in the images directory and now the images show. thank you very much germ Link to comment Share on other sites More sharing options...
germ Posted April 30, 2011 Share Posted April 30, 2011 Edit the .htaccess file in the images folder. Change it's contents to this: ### BEGIN do not modify this section ### <Files ~ ".(php|php3|php4|php5|phps|phtml|pl|py|cgi)$"> Order Allow,Deny Deny from all </Files> Options -ExecCGI ### END do not modify this section### Then rename it back to .htaccess Will the images show now? :unsure: I'm no .htaccess expert but you really need the protection it provides. :) If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
AmyMarieSodus Posted April 30, 2011 Author Share Posted April 30, 2011 nope doing that makes the images go away again. Link to comment Share on other sites More sharing options...
PupStar Posted April 30, 2011 Share Posted April 30, 2011 try this # $Id$ # # This is used to restrict access to this folder to anything other # than images # Prevents any script files from being accessed from the images folder <FilesMatch "\.(php([0-9]|s)?|s?p?html|cgi|pl|exe)$"> Order Deny,Allow Deny from all </FilesMatch> Link to comment Share on other sites More sharing options...
germ Posted April 30, 2011 Share Posted April 30, 2011 That's what was there originally, Mark. Well that bites.... :( I only had one "trick card" to play on the subject, and that was it. :blush: Unless someone else wants to pick up where I left off the only advice I can offer it to seek help from your hosting provider. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
PupStar Posted April 30, 2011 Share Posted April 30, 2011 That's what was there originally, Mark. Well that bites.... :( I only had one "trick card" to play on the subject, and that was it. :blush: Unless someone else wants to pick up where I left off the only advice I can offer it to seek help from your hosting provider. oops was it hehe >_< Link to comment Share on other sites More sharing options...
germ Posted April 30, 2011 Share Posted April 30, 2011 Mark, you were just trying to help. No harm in that. :thumbsup: Amy, you might try this instead: # stop scripts from running from the folder IndexIgnore * Options All -Indexes # Secure directory by disabling script execution AddHandler cgi-script .php .php2 .php3 .php4 .php5 .php6 .php7 .php8 .pl .py .jsp .asp .htm .html .shtml .sh .cgi Options -ExecCGI # Don't show this file, that would be bad as well! <Files .htaccess> order allow,deny deny from all </Files> I found it here on the forum some place. If that doesn't work I'm all played out... :blush: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
AmyMarieSodus Posted April 30, 2011 Author Share Posted April 30, 2011 so as of right now.. the .htaccess file has been renamed Link to comment Share on other sites More sharing options...
germ Posted April 30, 2011 Share Posted April 30, 2011 As long as your images folder doesn't have 777 permissions (should be 755) you shouldn't have any problems. All the examples posted have been to prevent unauthorized scripts from executing in the images folder. If the folder has 755 permissions I can provide alternate methods to stop people from "snooping" in the images folder. Try going to: http://shop.YOUR_DOMAIN.com/images/ And you'll see what I mean about "snooping". If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
AmyMarieSodus Posted April 30, 2011 Author Share Posted April 30, 2011 ok... looks great.. thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.