Internal Server Error checking out
-
The link is the website above, but you have to put an item in your cart and check out to get the error message. I do have a test product for .01 – https://wordpress.musicalinstrumentcity.com/product/woodwind-dee-test/ that I have been using. I have tried disabling all the plugins (all but Square) and I switched to the StoreFront theme and I still get the same message. Even though we don’t use paypal, I set it up to my personal one and it would go to that screen for payment without an error. So it appears something is wrong with the square and that is the only payment that we accept. I did just update to the latest Version 2.4.0 for Square and same error. Any thoughts what else I can try. The order will go through, but the customer gets the error message so they don’t know it’s going through.
The page I need help with: [log in to see the link]
-
We get an internal server error upon checking out. The order does go through, but the customer doesn’t realize it, because they get this error message and never get the confirmation email. I turned on the debugging and get the following information:
CRITICAL Uncaught Error: Call to undefined function PHPMailer\PHPMailer\ctype_alnum() in /hermes/bosnacweb07/bosnacweb07ap/b287/ipw.musicali/public_html/WordPress/wp-includes/PHPMailer/PHPMailer.php:1793
I’m not sure how to resolve it. HELP
I also turned debugging on and I get the following information:
03-29-2021 @ 17:36:16 - Request Request method: uri: listLocationsWithHttpInfo user-agent: WooCommerce-Square/2.4.0 (WooCommerce/5.1.0; WordPress/5.7) headers: Array ( ) body: duration: 0.34235s 03-29-2021 @ 17:36:16 - Response Response code: 200 message: headers: Array ( [0] => HTTP/1.1 200 OK [Content-Type] => application/json [Square-Version] => 2019-08-14 [Vary] => Origin, Accept-Encoding [X-Content-Type-Options] => nosniff [X-Download-Options] => noopen [X-Frame-Options] => SAMEORIGIN [X-Permitted-Cross-Domain-Policies] => none [X-Xss-Protection] => 1; mode=block [Date] => Mon, 29 Mar 2021 17:36:16 GMT [Content-Length] => 841 [Strict-Transport-Security] => max-age=631152000; includeSubDomains; preload ) body: { "locations": [ { "id": "1VMN8PJJ85FCB", "name": "Musical Instrument City, Inc.", "address": { "address_line_1": "541 MINGO LOOP RD", "locality": "RANGELEY", "administrative_district_level_1": "ME", "postal_code": "04970-4419", "country": "US" }, "timezone": "America\/New_York", "capabilities": [ "CREDIT_CARD_PROCESSING" ], "status": "ACTIVE", "created_at": "2018-07-10T17:24:46Z", "merchant_id": "TB011ETEPZXM4", "country": "US", "language_code": "en-US", "currency": "USD", "phone_number": "+1 207-864-2254", "business_name": "Musical Instrument City, Inc.", "type": "PHYSICAL", "website_url": "www.musicalinstrumentcity.com", "business_hours": {}, "business_email": "toby@musicalinstrumentcity.com", "coordinates": { "latitude": 44.966114, "longitude": -70.727986 }, "logo_url": "https:\/\/d1g145x70srn7h.cloudfront.net\/files\/60b87c228450c0d9f49083aa735d95df5d19703a\/original.jpeg" } ] } 03-29-2021 @ 17:40:11 - Request Request method: uri: listLocationsWithHttpInfo user-agent: WooCommerce-Square/2.4.0 (WooCommerce/5.1.0; WordPress/5.7) headers: Array ( ) body: duration: 0.15448s 03-29-2021 @ 17:40:11 - Response Response code: 200 message: headers: Array ( [0] => HTTP/1.1 200 OK [Content-Type] => application/json [Square-Version] => 2019-08-14 [Vary] => Origin, Accept-Encoding [X-Content-Type-Options] => nosniff [X-Download-Options] => noopen [X-Frame-Options] => SAMEORIGIN [X-Permitted-Cross-Domain-Policies] => none [X-Xss-Protection] => 1; mode=block [Date] => Mon, 29 Mar 2021 17:40:10 GMT [Content-Length] => 841 [Strict-Transport-Security] => max-age=631152000; includeSubDomains; preload ) body: { "locations": [ { "id": "1VMN8PJJ85FCB", "name": "Musical Instrument City, Inc.", "address": { "address_line_1": "541 MINGO LOOP RD", "locality": "RANGELEY", "administrative_district_level_1": "ME", "postal_code": "04970-4419", "country": "US" }, "timezone": "America\/New_York", "capabilities": [ "CREDIT_CARD_PROCESSING" ], "status": "ACTIVE", "created_at": "2018-07-10T17:24:46Z", "merchant_id": "TB011ETEPZXM4", "country": "US", "language_code": "en-US", "currency": "USD", "phone_number": "+1 207-864-2254", "business_name": "Musical Instrument City, Inc.", "type": "PHYSICAL", "website_url": "www.musicalinstrumentcity.com", "business_hours": {}, "business_email": "toby@musicalinstrumentcity.com", "coordinates": { "latitude": 44.966114, "longitude": -70.727986 }, "logo_url": "https:\/\/d1g145x70srn7h.cloudfront.net\/files\/60b87c228450c0d9f49083aa735d95df5d19703a\/original.jpeg" } ] }Hello!
Thanks for contacting us about this testing issue being seen. The error message you’ve shared looks to be related to the WordPress PHPMailer rather than something in WooCommerce or the Square gateway. Can you share if the customer receives the email saying the order was placed? Please test this and let us know what you find.
I don’t see any issue with the Request/Response log you shared. If you look you’ll see:
Response code: 200The 200 code means the connection between your store and Square was successful. There isn’t anything unexpected in this. Can you check the error logs in the store and share any Fatal Errors or Square logs you can find, please? You can find them in your site at:
**WooCommerce → Status → Logs tab**
If there are any logs please find the most recent of each and share them in your reply. I hope this helps!
The customer does not get the email that order was placed. There is supposed to be an email that goes to Orders@musicalinstrumentcity.com and that doesn’t go through either. It had been working fine. I did check the log and we are seeing this and this is when the issue started.
2021-03-14T13:26:21+00:00 CRITICAL Uncaught Error: Call to undefined function PHPMailer\PHPMailer\ctype_alnum() in /hermes/bosnacweb07/bosnacweb07ap/b287/ipw.musicali/public_html/WordPress/wp-includes/PHPMailer/PHPMailer.php:1793 Stack trace: #0 /hermes/bosnacweb07/bosnacweb07ap/b287/ipw.musicali/public_html/WordPress/wp-includes/PHPMailer/PHPMailer.php(1871): PHPMailer\PHPMailer\PHPMailer::isShellSafe('wordpress@wordp...') #1 /hermes/bosnacweb07/bosnacweb07ap/b287/ipw.musicali/public_html/WordPress/wp-includes/PHPMailer/PHPMailer.php(1635): PHPMailer\PHPMailer\PHPMailer->mailSend('Date: Sun, 14 M...', 'A new comment o...') #2 /hermes/bosnacweb07/bosnacweb07ap/b287/ipw.musicali/public_html/WordPress/wp-includes/PHPMailer/PHPMailer.php(1466): PHPMailer\PHPMailer\PHPMailer->postSend() #3 /hermes/bosnacweb07/bosnacweb07ap/b287/ipw.musicali/public_html/WordPress/wp-includes/pluggable.php(531): PHPMailer\PHPMailer\PHPMailer->send() #4 /hermes/bosnacweb07/bosnacweb07ap/b287/ipw.musicali/public_html/WordPress/wp-includes/pluggable.php(1925): wp_mail( in /hermes/bosnacweb07/bosnacweb07ap/b287/ipw.musicali/public_html/WordPress/wp-includes/PHPMailer/PHPMailer.php on line 1793So if it’s an issue with the PHP mailer, how to do we resolve it?
Hi @bmw2182,
The error points to the PHPMailer library in WordPress. We recommend asking your web hosting provider to install the ctype PHP extension.
You can also try upgrading/downgrading your PHP version and see if that helps.
Cheers!
The topic ‘Internal Server Error checking out’ is closed to new replies.