Results 1 to 4 of 4
  1. #1
    Join Date
    May 2004
    Posts
    766
    Plugin Contributions
    0

    Default 500 Error When Editing Category Description

    I have searched and can't find a previous solution to this type of error.

    Zencart v1.38a Patch level 1

    When editing the category description in one category (only one that has the problem) after clicking on Save it goes to an error page which says in part:
    --------------
    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    ----------------

    So I uploaded the debug error reporting file to both admin and the store. I tried to edit the category again, got the error message and downloaded the error log.

    The error log said (in part as there were several more lines with more images listed):
    ---------------------------
    [10-Aug-2010 12:29:15] PHP Warning: imagejpeg() [<a href='function.imagejpeg'>function.imagejpeg</a>]: Unable to open '/home/xxxx/public_html/bmz_cache/2/21ae752d35a79823720edc9716c6fca9.image.150x99.jpg' for writing: Permission denied in /home/xxxx/public_html/includes/classes/bmz_image_handler.class.php on line 652
    [10-Aug-2010 12:29:16] PHP Warning: imagejpeg() [<a href='function.imagejpeg'>function.imagejpeg</a>]: Unable to open '/home/xxxx/public_html/bmz_cache/3/3e527ba151ae46ea72081a62aeffef4c.image.300x199.jpg' for writing: Permission denied in /home/xxxx/public_html/includes/classes/bmz_image_handler.class.php on line 652
    --------------------------
    So I changed all the permissions in the bmz_cache to 777. Once I did that the error messages stopped, however the category edit still gave the 500 error.

    I went into the database, the category table and deleted the category image just in case it was somehow still an issue. No difference and no other error messages have been generated.

    I checked the account error log in CPanel, and the only error (repeated in log for each time I tried it) was:
    -------------------
    [Tue Aug 10 13:41:04 2010] [error] [client my ip address] File does not exist: /home/xxxx/public_html/500.shtml, referer: http://www.xxxx.com/admin directory/categories.php?cPath=&cID=9&action=edit_category
    -------------------
    So here I am at a loss. Any advice, words of wisdom, or help will be greatly appreciated.

    betty

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

    Default Re: 500 Error When Editing Category Description

    1. the bmz_cache errors in your logs are completely unrelated to your admin category editing. It's good to have fixed the problem, but it's unrelated.

    2. The 'cause' of the 500 error will be in your server's mod_security log, which you'll likely have to ask your hosting company for.
    Most likely you're using forbidden words in your category name/description. See the related FAQ article on 500 Internal Server Errors: https://www.zen-cart.com/tutorials/i...hp?article=390 Same issues from that article apply for category names/descriptions as for product names/descriptions.
    .

    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.

  3. #3
    Join Date
    May 2004
    Posts
    766
    Plugin Contributions
    0

    Default Re: 500 Error When Editing Category Description

    Quote Originally Posted by DrByte View Post
    1. the bmz_cache errors in your logs are completely unrelated to your admin category editing. It's good to have fixed the problem, but it's unrelated.

    2. The 'cause' of the 500 error will be in your server's mod_security log, which you'll likely have to ask your hosting company for.
    Most likely you're using forbidden words in your category name/description. See the related FAQ article on 500 Internal Server Errors: https://www.zen-cart.com/tutorials/i...hp?article=390 Same issues from that article apply for category names/descriptions as for product names/descriptions.
    Hi Doc,

    Sorry for the lag time in trying your suggestions, just got out of the hospital tonight.
    I tried the suggestion in the FAQ to add the statement:

    SecFilterInheritance Off or SecFilterScanPOST Off

    I tried each one in the .htaccess file in admin however when the statements were in file (one at a time) I couldn't log into admin, it came back with a 500 error. Once I removed the statement admin loaded normally.

    I downloaded the server error log and the last 2 errors that have my ip address by it say:

    72.188.73.112 - - [26/Aug/2010:01:35:15 -0400] "GET /admin directory/includes/languages/english/images/buttons/button_new_category.gif HTTP/1.1" 200 576 "http://www.thegoldennib.com/admin directory/categories.php" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.30729; .NET CLR 3.5.30729; .NET4.0C; InfoPath.2; OfficeLiveConnector.1.5; OfficeLivePatch.1.3)"

    72.188.73.112 - - [26/Aug/2010:01:35:13 -0400] "GET /admin directory/categories.php HTTP/1.1" 200 58438 "http://www.thegoldennib.com/admin directory/configuration.php?gID=17&cID=330" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.30729; .NET CLR 3.5.30729; .NET4.0C; InfoPath.2; OfficeLiveConnector.1.5; OfficeLivePatch.1.3)"

    I don't know if they mean anything.

    thank you,

    betty

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

    Default Re: 500 Error When Editing Category Description

    Apparently your hosting company's configured their server to prevent you from manually disabling the mod_security protection system, and thereby have made adding those options to .htaccess cause 500 Internal Server Errors.

    Additionally, the log info you extracted is the apache access log, which is different from the apache errorlog, which are both different from the mod_security log which is what you're really after so that you can find out what "rule" is getting triggered so that you can ask your hosting company to whitelist that rule for your domain/website.

    You'll need to ask your hosting company for help to get the solution you need. They'll need to know what page (complete URL) you're accessing when you click Submit and get the error, and probably even the details of what you had keyed into the description/title/etc fields. They'll need to know the exact date/time when you triggered the problem, too. Hopefully they'll be cooperative for you.
    .

    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.

 

 

Similar Threads

  1. Editing category description in admin
    By grossd in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 11 Oct 2011, 09:47 PM
  2. fatal error when editing category in admin
    By jrf in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 24 Sep 2008, 06:40 PM
  3. Error when adding link to product/category description
    By discountpoolspa in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 1 Feb 2008, 07:22 PM
  4. Error When Adding/Editing Product Description "an appropriate representation ..."
    By bombknex in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 9 Oct 2006, 10:54 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