Title: Internal Server Error checking out
Last modified: March 29, 2021

---

# Internal Server Error checking out

 *  Resolved [bmw2182](https://wordpress.org/support/users/bmw2182/)
 * (@bmw2182)
 * [5 years ago](https://wordpress.org/support/topic/internal-server-error-checking-out-2/)
 * 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/](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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Finternal-server-error-checking-out-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [bmw2182](https://wordpress.org/support/users/bmw2182/)
 * (@bmw2182)
 * [5 years ago](https://wordpress.org/support/topic/internal-server-error-checking-out-2/#post-14258838)
 * 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"
               }
           ]
       }
       ```
   
 *  [Phillip C. a11n](https://wordpress.org/support/users/phillipwoo/)
 * (@phillipwoo)
 * [5 years ago](https://wordpress.org/support/topic/internal-server-error-checking-out-2/#post-14260852)
 * 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: 200
       ```
   
 * The 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!
 *  Thread Starter [bmw2182](https://wordpress.org/support/users/bmw2182/)
 * (@bmw2182)
 * [5 years ago](https://wordpress.org/support/topic/internal-server-error-checking-out-2/#post-14261391)
 * The customer does not get the email that order was placed. There is supposed 
   to be an email that goes to [Orders@musicalinstrumentcity.com](https://wordpress.org/support/topic/internal-server-error-checking-out-2/Orders@musicalinstrumentcity.com?output_format=md)
   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 1793
       ```
   
 *  Thread Starter [bmw2182](https://wordpress.org/support/users/bmw2182/)
 * (@bmw2182)
 * [5 years ago](https://wordpress.org/support/topic/internal-server-error-checking-out-2/#post-14270091)
 * So if it’s an issue with the PHP mailer, how to do we resolve it?
 *  [Sunday Ukafia](https://wordpress.org/support/users/sukafia/)
 * (@sukafia)
 * [5 years ago](https://wordpress.org/support/topic/internal-server-error-checking-out-2/#post-14272844)
 * Hi [@bmw2182](https://wordpress.org/support/users/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!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Internal Server Error checking out’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-square/assets/icon-256x256.png?rev=3234354)
 * [WooCommerce Square](https://wordpress.org/plugins/woocommerce-square/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-square/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-square/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-square/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-square/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-square/reviews/)

## Tags

 * ["internal server error"](https://wordpress.org/support/topic-tag/internal-server-error/)

 * 5 replies
 * 3 participants
 * Last reply from: [Sunday Ukafia](https://wordpress.org/support/users/sukafia/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/internal-server-error-checking-out-2/#post-14272844)
 * Status: resolved