Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2005
    Location
    Hong Kong
    Posts
    307
    Plugin Contributions
    0

    help question Stange 500 internal server error when trying to add certain option names

    Hi everyone,

    I've encountered a strange problem when trying to add certain option names using the Option Name Manager.

    Every time I try to add "Please select from below" as an option name, I get a 500 internal server error page. So I tried to add some other names to see what worked what didn't. These are the ones that get me the 500 error (doesn't matter if they are Read Only or Dropdown or Radio etc.):

    "Please select from"
    "Please select from below"
    "Please select 123 from"
    "Please select fro from"

    Screenshot of Option Name Manager that shows which names worked:


    Screenshot of MySQL product_options table:


    MySQL info:
    Server: Localhost via UNIX socket
    Software: MySQL
    Software version: 5.0.96-community - MySQL Community Edition (GPL)
    Protocol version: 10
    Server charset: UTF-8 Unicode (utf8)

    I have no idea what's going on so if anyone could help me out that would be greatly appreciated! Thank you in advance!

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Stange 500 internal server error when trying to add certain option names

    Quote Originally Posted by shirster View Post
    Every time I try to add "Please select from below" as an option name, I get a 500 internal server error page.
    1st thing to do is contact your host to see what the *actual* error is. (500 internal server error is a generic error response that can be triggered by many factors)

    Quote Originally Posted by shirster View Post


    So I tried to add some other names to see what worked what didn't. These are the ones that get me the 500 error (doesn't matter if they are Read Only or Dropdown or Radio etc.):

    "Please select from"
    "Please select from below"
    "Please select 123 from"
    "Please select fro from"

    I have no idea what's going on so if anyone could help me out that would be greatly appreciated! Thank you in advance!
    Although I'm at a loss to explain the error (and I've not been able to replicate it) it is interesting to note that all of the failures appear to contain partially valid SQL statements. "select * from"... it seem that these entries are somehow being interpreted as actual SQL commands rather than embedded text strings.

    Although not a proper fix, you could try using alternative wording, such as "Please choose", 'Select Option', 'Make your selection', etc, etc.

    I have to admit, I find this to be a very curious problem, and I'd love to know the cause.

    Cheers
    Rod

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Stange 500 internal server error when trying to add certain option names

    Your hosting company's server security settings are probably set to defaults which are overly aggressive about preventing the use of any words that might be remotely related to doing SQL Injection hack attempts. And you'll thus probably need to get them to relax some of those mod-security rules for you.

    Example: one very common word in very normal SQL statements is the word "SELECT". And since a hacker would also need to use that word your hosting company's security settings are obviously trapping that, but also preventing you from doing normal things.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Stange 500 internal server error when trying to add certain option names

    Quote Originally Posted by DrByte View Post
    Example: one very common word in very normal SQL statements is the word "SELECT". And since a hacker would also need to use that word your hosting company's security settings are obviously trapping that, but also preventing you from doing normal things.
    Agreed, 100%, even though it defies logic as to how/why a hosting company could implement such a filter and not expect negative consequences as a result.

    Most surprising though is that if this is the 1st time the problem has been discovered (with this particular host) the OP has just been plain unlucky in being the 1st of the host's clients to identify the problem, so if the OP is still reading this, please take note. Many host's will automaticly discard the 1st report of any problems that are reported, in other words, they'll probably try to brush you aside with the implication that you have a software fault rather than the problem being caused from their end of things.
    You *may* have a little difficulty in convincing them to even look into their mod_security rules (which on reflection is about the only logical cause for the symptoms that you have described). It may be prudent to include a link to this thread when submitting your fault report, because between your postings, and our responses, there should be enough to convince even the lowest of their staff members of the problem you are having, and the likely cause of the problem.

    I wish you the best of luck. You will probably need it. (this is one of those time where I hope to be wrong, and that your host will take care of the problem without making you jump through hoops to simply prove a problem exists). The odds are against you though.

    Cheers
    Rod

  5. #5
    Join Date
    Sep 2005
    Location
    Hong Kong
    Posts
    307
    Plugin Contributions
    0

    Default Re: Stange 500 internal server error when trying to add certain option names

    Thank you, Dr. Byte and RodG! I explained the situation to my web host, LiquidWeb, and they quickly whitelisted the mod_security rule for me. I can now use "Please select from" as an option name without any problem.

    And thank you for the info, RodG. I've been with a couple of "bad" web hosts before so I understand the concerns you mentioned and I appreciate the heads up very much! Luckily I'm with LiquidWeb now and 19 out of 20 times my support tickets are answered by helpful, polite and professional support staff :) I know that people at other web hosts who run into the same problem might not be as lucky though...

    Thank you again, guys! Cheers!

  6. #6
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Stange 500 internal server error when trying to add certain option names

    Quote Originally Posted by shirster View Post
    Thank you, Dr. Byte and RodG! I explained the situation to my web host, LiquidWeb, and they quickly whitelisted the mod_security rule for me. I can now use "Please select from" as an option name without any problem.!
    Thanks for the feedback that the problem has been solved. Although there was little doubt as to the cause, it is always good to know that we were on the mark, and its always good to hear about *helpful* webhosts. It makes a pleasant change. :)

    Cheers
    Rod

 

 

Similar Threads

  1. v139h Internal Server Error (500) When uploading new image
    By Bentronics in forum General Questions
    Replies: 3
    Last Post: 9 Oct 2015, 08:28 PM
  2. v151 500 Internal Server Error when installing
    By WorldOfMine in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 8 Oct 2015, 07:03 AM
  3. Replies: 3
    Last Post: 8 Oct 2012, 05:35 AM
  4. 500 Internal Server Error when adding to cart
    By gaw in forum General Questions
    Replies: 4
    Last Post: 5 Jan 2008, 02:13 AM
  5. 500 Internal Server Error when trying to log into admin
    By kbalona in forum General Questions
    Replies: 3
    Last Post: 3 May 2007, 11:29 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR