Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    May 2009
    Posts
    5
    Plugin Contributions
    0

    Default 500 - Internal Server Error when adding products via EasyPopulate

    Zen Cart Version 1.3.8a

    No addons installed

    Windows Server 2008 with IIS7

    Personally hosted

    I just installed Zen Cart this weekend and have been slowly creating a CUSTOM template and learning from the forums and FAQs how to change the look of the cart with great success. I have run into a few problems but have been able to work through them by researching them.

    However, I have run into a snag and cannot find anything that has helped me yet. When I add a new Category I receive an HTTP error 500, but the category is created. So I didn't think anything of this, but now when I try to add a new product, when I click the preview button I receive a 500 - Internal server error "There is a problem with the resource you are looking for, and it cannot be displayed.

    The URL in the address box is "http://www.leathernights.com/catalog/admin/product.php?cPath=1_6_21&product_type=1&action=new_product_preview

    Also, I receive the same error when I try to add a Manufacturer

    I thought it was a permission problem, but it appears they are set OK.

    Any thoughts or suggestions will be greatly apprecated.

    The site can be seen at http://www.leathernights.com/catalog

    It is still in process so please excuse the un-finished look.

    Thanks
    Doug

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: 500 - Internal Server Error when adding products

    As you'll see in the "similar threads" links below, this is a common problem when the webserver has certain rules in place intended to stop spammers and hackers from causing problems on your site, and then you come along and need to do something legitimately similar to what they might try, such as including a URL in one of the form fields on the page you're submitting.

    So, in the case of your products and manufacturers, are you filling in the "URL" field? If so, try leaving that blank and see if that helps. If so, talk to your hosting company to find a way around the security rules that are blocking you from submitting that information.

    Either way, the "500" error is one that never displays its real cause on-screen ... the real details are only known by the webserver, recorded in its logs. So, you'll usually have to ask your hosting company for the details that are in the logs ... and then with those details, work with the hosting company to find a suitable workaround.
    .

    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 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: 500 - Internal Server Error when adding products

    DrByte,

    Thanks for the quick reply it is appreciated. I have done some more researching and I have found a more specific error.

    Just a little more info on my setup. I am hosting the webserver in my data center, (I am a data center manager) so I have console access to this server, I am certain that there are no accessive blocking going on the server. I have scored the log files and they only give me the 500 error, nothing more specific.

    However I managed to get a browser running on the actual webserver without friendly HTTP error message and I received this

    "PHP Warning: Unknown: open_basedir restriction in effect. File (c:\windows\TEMP\) is not within the allowed path(s): (c:\inetpub\wwwroot\) in Unknown on line 0 PHP Warning: File upload error - unable to create temporary file in Unknown on line 0"

    I have checked my php.ini file and the open_basedir is set to c:\inetpub\wwwroot, so where is the scripts getting the c:\windows\TEMP path from?

    my php.ini file in located in c:\PHP

    Thanks again
    Doug

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: 500 - Internal Server Error when adding products

    Quote Originally Posted by dscheck View Post
    I have checked my php.ini file and the open_basedir is set to c:\inetpub\wwwroot, so where is the scripts getting the c:\windows\TEMP path from?
    Good question.
    Probably the PHP configuration settings (php.ini) for the default location for uploaded files (probably triggered by you trying to upload images for products/categories/manufacturers).
    .

    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.

  5. #5
    Join Date
    May 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: 500 - Internal Server Error when adding products

    SO I change the default upload directory in the php.ini file and that got rid of the first error, but I'm still receiving the

    "PHP Warning: File upload error - unable to create temporary file in unknown on line 0"

    I will continue to work on the php.ini file. If anyone has any ideas on this error let me know

    Thanks
    Doug

  6. #6
    Join Date
    May 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: 500 - Internal Server Error when adding products

    Solved this problem. Had to empty the open base_dir setting in php.ini

  7. #7
    Join Date
    Jun 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: 500 - Internal Server Error when adding products

    I am having a similar problem when I try to add products using the Easy Populate upload. I initially tried to upload approx 10,000 items. I received the "500 - Internal Server Error", however it did upload approx 6,000 of the items. I cannot seem to get it to work for the rest. I have even tried a few test uploads of just 1 item and it still does not work. I am hosted through GoDaddy and I cannot figure out how to correct this problem. I am fairly new to Zen Cart, so any feedback would be greatly appreciated.

  8. #8
    Join Date
    Jun 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: 500 - Internal Server Error when adding products

    One more thing, I do not have any URLs anywhere in my upload file, only HTML code in the product descriptions.

  9. #9
    Join Date
    Mar 2009
    Posts
    13
    Plugin Contributions
    0

    Default Re: 500 - Internal Server Error when adding products via EasyPopulate

    I am suddenly getting 500 errors after 10 successful inserts of 300 products per txt file. No matter what I do I get 500 error message now and I changed nothing! Strange. I've tried starting from scratch, it wont do files it had before. Totally stuck. Anyone have an idea?

  10. #10
    Join Date
    Mar 2009
    Posts
    13
    Plugin Contributions
    0

    Default Re: 500 - Internal Server Error when adding products via EasyPopulate

    dscheck can you tell us more about what you added to your php.ini ? exactly what text?

 

 
Page 1 of 2 12 LastLast

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. GoDaddy 500 Internal Server Error when uploading Easy Populate
    By peedeefish in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 3 Nov 2010, 08:20 PM
  4. 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
  5. 500 Internal Server Error when adding to cart
    By gaw in forum General Questions
    Replies: 4
    Last Post: 5 Jan 2008, 02:13 AM

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