Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Usps Causing Error 500 Rate Topic   - - - - -

 
  • novista
  • Senior Member
  • Members
  • Join Date: 14-Jul 11
  • 199 posts

Posted 31 July 2015 - 01:27 PM #1

Hello,

When I have any USPS shipping method enabled, all customers (us and international) get an Error 500 when they click continue to get to their shipping options. I can't say that it happens all the time but usually.

I am using 4.2.2 and tried implementing the fix from this posting but no luck. I have opened a ticket with support but I can't wait till next week to have this resolved. Anyone have any ideas on what I should be looking for?

Thanks.

 
  • Magpie Don
  • Senior Member
  • Members
  • Join Date: 01-Apr 09
  • 839 posts

Posted 31 July 2015 - 09:08 PM #2

Look at the error log in the CS-Cart root directory. That should tell you what script and line is causing the error.

CS-Cart Ultimate ver 4.11.3


 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12072 posts

Posted 31 July 2015 - 09:35 PM #3

Actually, you might have to go further up the food chain to find the issue. The error_log file in your document root is a PHP file. But the 500 error comes from Apache.
Odds are it's an ownership/permissions issue related to your site. But your Apache error_log (usually in /var/log/httpd/error_log but could be in another location depending on your server) will identify the problem. It's possible that your access_log MIGHT show the problem, but unlikely.

The most common cause of a 500 error is directory/file permissions being too liberal. I.e. 777 should be 755 and 666 should be 644 for directories/files. Sometimes ownerships can also come into play. Generally for cpanel systems, the owner/group should match the cpanel username for all directories and files within the document root. However, the document root itself (I.e. public_html directory) is normally owned by the cpanel username, but the group is usually 'nobody'. Enforcement of these permissions are generally implementation specific.

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • novista
  • Senior Member
  • Members
  • Join Date: 14-Jul 11
  • 199 posts

Posted 03 August 2015 - 05:22 PM #4

Thanks to you both for your help. The script was stopping at the point in usps.php where CS Cart made their fix but there was not much to go on after that. I followed the suggestion about permissions and decided to run the chmod required per the install instructions. Since then I have not gotten the Error 500. So hopeully this is resolved. Thanks again.