Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem Adding Products


Guest

Recommended Posts

I have started stocking my store but suddenly last night I started to get the following error:

The resource cannot be displayed

The resource you are looking for cannot be opened by your browser.

 

--------------------------------------------------------------------------------

 

Please try the following:

 

Click the Back button to try another link.

Click Search to look for information on the Internet.

 

 

 

 

HTTP Error 406 - Not acceptable

Internet Explorer

I've already overwrote the admin folder with a fresh copy but I'm still getting this message. Has anyone got any suggestions?

Link to comment
Share on other sites

From what I have read, your host may have installed mod_security. You could try adding this to the admin .htaccess file

 

<IfModule mod_security.c>
  SecFilterEngine Off
</IfModule>

 

Or it maybe wise to ask your host first.

Link to comment
Share on other sites

From what I have read, your host may have installed mod_security. You could try adding this to the admin .htaccess file

 

<IfModule mod_security.c>
  SecFilterEngine Off
</IfModule>

 

Or it maybe wise to ask your host first.

 

That done the trick, thanks! :thumbsup: But now I have a different issue. Images aren't being uploaded when I add products. Has anyone got any thoughts?

Link to comment
Share on other sites

Just guessing here but, if your host has had a purge on security, it could be possible they have changed directory permissions. Check the permissions on your images directory.

If that isn't the problem, I would create a ticket with them and find out if they have installed or changed anything else.

Link to comment
Share on other sites

Just guessing here but, if your host has had a purge on security, it could be possible they have changed directory permissions. Check the permissions on your images directory.

If that isn't the problem, I would create a ticket with them and find out if they have installed or changed anything else.

 

I should have included earlier that I have already checked the permissions for the images folder. I have started a support ticket on your recommendation.

 

Thank you.

Link to comment
Share on other sites

Just a thought in case my server takes ages to answer me..... Could I upload the images separately? How do I get the images to show webside?

 

Thanks

Link to comment
Share on other sites

Just a thought in case my server takes ages to answer me..... Could I upload the images separately? How do I get the images to show webside?

 

Thanks

 

Yea, sure you can! Infact, there are several ways to do it.

 

You can go into phpMyAdmin, select the products table and edit the individual products that have no image.

 

Or, if you know the products_id of the products with no image (you will see the ids when you select the products table), you can update them all at once with a query:

 

UPDATE `products` SET `products_image` = 'widgets/red/red_widget.jpg' WHERE `products`.`products_id` =100;
UPDATE `products` SET `products_image` = 'widgets/blue/blue_widget.jpg' WHERE `products`.`products_id` =101;
UPDATE `products` SET `products_image` = 'widgets/green/green_widget.jpg' WHERE `products`.`products_id` =102;
UPDATE `products` SET `products_image` = 'widgets/yellow/yellow_widget.jpg' WHERE `products`.`products_id` =103;

 

Notice you can create your own images sub-directories doing it this way, if you want. Although you would need to physically create the directories you name in the query.

 

Or, you can do it from a db backup you make from your admin. Just download the backup, open it up in a text editor, jump in and add your images to the image-less products, upload it again (best to re-name it first so you still have the original backup) and restore it from your admin.

 

Then, if you haven't already, upload your images and Bob's yer Mother's Brother! :huh:

Link to comment
Share on other sites

  • 1 year later...
QUOTE (spax @ May 26 2007, 02:19 PM) *

From what I have read, your host may have installed mod_security. You could try adding this to the admin .htaccess file

 

CODE

<IfModule mod_security.c>

SecFilterEngine Off

</IfModule>

 

 

Or it maybe wise to ask your host first.

 

 

That done the trick, thanks! thumbsup.gif But now I have a different issue. Images aren't being uploaded when I add products. Has anyone got any thoughts?

 

This post has been edited by sutikah1: May 27 2007, 10:24 PM

 

Hi, I am having the same 406 issue with my shop site ... is only happening with one or two products .. we can't update ie 'Preview' products after we've modified them in admin .. have email my host about any mods they may have done

 

Any help much appreciated :)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...