Results 1 to 10 of 10
  1. #1
    Join Date
    Jul 2005
    Location
    Orlando, Fl
    Posts
    345
    Plugin Contributions
    0

    Default Internal Server Error - Updating Products

    When I try to update some of my products I receive an Internal Server Error once I hit preview.

    zencart 1.3.8a php5

  2. #2
    Join Date
    Jul 2005
    Location
    Orlando, Fl
    Posts
    345
    Plugin Contributions
    0

    red flag Re: Internal Server Error - Updating Products

    Ok, upon further invesagation, I have isolated it to this:

    Any products that contain "http://" in the description will result in an Internal Service Error upon clicking the preview button.

    If I take away the "http://" they will update normally.

    How do I fix this error ?

    Thanks

    DD

  3. #3
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Internal Server Error - Updating Products

    .

    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
    Jul 2005
    Location
    Orlando, Fl
    Posts
    345
    Plugin Contributions
    0

    Default Re: Internal Server Error - Updating Products

    I tried adding this code to my .htaccess file in my admin directory:

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

    I am still getting the Internal Service Error.

    Thanks

  5. #5
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Internal Server Error - Updating Products

    Then you'll need to look at your server's errorlogs for the cause.
    Or ask your host to help you, since they're the ones setting up the rules for what is allowed and not allowed.
    .

    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.

  6. #6
    Join Date
    Jul 2005
    Location
    Orlando, Fl
    Posts
    345
    Plugin Contributions
    0

    Default Re: Internal Server Error - Updating Products

    This is what they found:

    ModSecurity: Access denied with code 500 (phase 2). Pattern match "(ht|f)tps?:/" at ARGSroducts_description[1]. [hostname "www.mydomain.com"] [uri "/admin/product.php?cPath=1_3&product_type=1&pID=107&action=new_product_preview&page=1"] [unique_id "hW5lqUMrAA4AABhSFYMAAAAF"]

  7. #7
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Internal Server Error - Updating Products

    Right ... that means they've got a rule set up to deny the use of "http:/" and "ftp:/" in any form that gets submitted on the server.

    You have 4 options:
    1. Don't use http:/ anywhere in your product descriptions (you shouldn't need to anyway)
    2. Get your host to turn off that rule
    3. Get your host to allow you to use .htaccess to turn off the rule just for your admin area
    4. Find a different host (not ideal, but *is* an option)
    .

    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.

  8. #8
    Join Date
    Jul 2005
    Location
    Orlando, Fl
    Posts
    345
    Plugin Contributions
    0

    Default Re: Internal Server Error - Updating Products

    Are you saying that there might even be a rule that doesnot allow me to use my htaccess files also ?

    This is how my admin htacess looks :

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

    # $Id: .htaccess 1105 2005-04-04 22:05:35Z birdbrain $
    #
    # This is used with Apache WebServers
    #
    # For this to work, you must include the parameter 'Options' to
    # the AllowOverride configuration
    #
    # Example:
    #
    # <Directory "/usr/local/apache/htdocs">
    # AllowOverride Options
    # </Directory>
    #
    # 'All' with also work. (This configuration is in the
    # apache/conf/httpd.conf file)

    # The following makes adjustments to the SSL protocol for Internet
    # Explorer browsers

    <IfModule mod_setenvif.c>
    <IfDefine SSL>
    SetEnvIf User-Agent ".*MSIE.*" \
    nokeepalive ssl-unclean-shutdown \
    downgrade-1.0 force-response-1.0
    </IfDefine>
    </IfModule>

    # Fix certain PHP values

    #<IfModule mod_php4.c>
    # php_value session.use_trans_sid 0
    # php_value register_globals 1
    #</IfModule>

    # to turn off register_globals
    # php_value register_globals 0


    Is this correct ?

    Thanks

  9. #9
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Internal Server Error - Updating Products

    Quote Originally Posted by djdavedawson View Post
    Are you saying that there might even be a rule that doesnot allow me to use my htaccess files also ?
    Yes, that is true ... and only your hosting company can allow you to override that.
    .

    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.

  10. #10
    Join Date
    Jul 2005
    Location
    Orlando, Fl
    Posts
    345
    Plugin Contributions
    0

    Default Re: Internal Server Error - Updating Products

    Thanks for the help. My web host was able to turn that off for me.

    DD

 

 

Similar Threads

  1. 500 - Internal Server Error when adding products via EasyPopulate
    By dscheck in forum Installing on a Windows Server
    Replies: 15
    Last Post: 28 Jun 2011, 12:23 PM
  2. Internal Server Error 500 - Entering Products
    By Trinity in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 18 Nov 2010, 04:45 PM
  3. 500 internal server error when I try to upload products via a feed
    By ryaniskool1 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 11 Oct 2010, 02:48 PM
  4. 500 Internal Server Error when updating Order Status to "Update [4]"
    By rlexyd in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 28 Apr 2010, 07:09 AM
  5. Internal server error on downloadable products
    By loncika in forum Installing on a Linux/Unix Server
    Replies: 8
    Last Post: 9 Jun 2007, 12:24 PM

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