Business Locations Not Showing (Square)
-
We recently updated WordPress and Woocommerce (with the Square payment method). After updating, our customers were no longer able to place orders since there was no longer a payment method available (we only use Square).
I’ve tried disconnecting and reconnecting Square, but it doesn’t seem to make a difference. The locations drop-down box is just empty.
-
Hi there @dustinw
This kind of issue is usually caused by a conflict either with the theme or plugins on your website.
Please follow all the steps below to determine if the issue is being caused by a theme and/or plugin:
- 1. Temporarily switch your theme back to the?Storefront?or?TwentyNinteen?Theme and test for the issue
- 2. If the issue persists, disable all plugins except for?WooCommerce and WooCommerce Square plugins.
- 3. Test to see if the issue has been resolved.
- 4. If that resolves the issue, then one-by-one you can switch back your theme and re-enable your plugins, testing in between, until you find the one causing the conflict.
- 5. If doing this on your live site is not possible, you can create a duplicate site. We suggest using?WP Staging?if your hosting provider does not offer a staging server as an option.
The full detail of guidance on how to do conflict: https://docs.woocommerce.com/document/how-to-test-for-conflicts/
Please let me know how it goes!
@solstudioim thanks for the suggestions.
Unfortunately, even with everything except Woocommerce and Square disabled, I was still unable to select any locations. It’s still showing an empty drop-down selection box.
Thanks for testing @dustinw.
Locations are queried from Square and are only listed if they are marked Active and have Credit Card Processing enabled.
Please log into your Square dashboard and verify that you see this listed for your location.
@stephjacq thanks for the reply. I’ve double-checked Square, and the locations are active and have processing enabled, as well as the Identity verified. The card processing with the plugin was working well until this last update.
Thanks again for the help.
If you haven’t already, can you enable debug logging for Square. I’m more interested in the one specific to Sync mode. See **Enable logging** here: https://docs.woocommerce.com/document/woocommerce-square/#section-4
With that done, navigate to the Square settings page where you can see the empty dropdowns and afterward, have a look at the log file that was generated. It will be under WooCommerce > Status > Logs. In the dropdown selector near the top right, look for any logs where the name begins with
square
, followed by a date, followed by some random letters/numbers.Have a look at that log. Does the response to listLocationsWithHttpInfo contain a valid response body and are your locations listed with credit card processing capabilities?
@wbrubaker thanks again for the assistance. I’ve gone though and it looks like they’re not showing in the response:
06-01-2021 @ 09:42:04 - Request Request method: uri: listLocationsWithHttpInfo user-agent: WooCommerce-Square/2.5.1 (WooCommerce/5.3.0; WordPress/5.7.2) headers: Array ( ) body: duration: 0.56685s 06-01-2021 @ 09:42:04 - Response Response code: 0 message: headers: body:
I’m not sure why. This was working properly before the update? I’ve gone through our Square settings several times now, and it just doesn’t seem to have a reason as to why it would be invalid?
Hi there @dustinw
That’s really odd that it doesn’t show any helpful log.
Could you please check if there is any critical error in the logs?
You can check the list of logs here WooCommerce > Status > Logs.
Look forward to your confirmation.
Thanks again.
There are only Square logs in the drop-down list on that page. However, on the main status page, there’s a note that SoapClient isn’t enabled. Could that be the cause? Does this use SoapClient?
Hi @dustinw. No, Square doesn’t need the SoapClient enabled in order to work.
Could you try disabling and then re-enabling the Square plugin? Sometimes simply disconnecting and reconnecting doesn’t help, but disabling/re-enabling the plugin entirely does.
If that doesn’t help, can you double-check with your hosting provider about whether they’ve changed their security at all recently? It’s possible that Square is having difficulty communicating with your site for that reason.
@apmwebdev thanks for the suggestion. I’ve disconnected/reconnected a few times, but did again just to be sure. The problem is still there.
As far as the security goes, could you elaborate on that a bit more? I think there may be something there, but I want to be sure I’m asking the right questions.
The non-response seems like the request is probably blocked by Square. Here’s a plugin you can use to route those requests through a proxy https://github.com/WillBrubaker/maybe-route-request-through-moesif to test that theory.
@wbrubaker thanks for the suggestion. We’d like to try and solve the issue, before relying on a workaround.
Do you happen to know a way to check if it’s being blocked, so we could troubleshoot that?
Hi there @dustinw
In order for us to understand better your WooCommerce setup, could you please send me a copy of your site’s System Status? You can find it via WooCommerce > Status.
Select “Get system report” and then “Copy for support”. Once you’ve done that, you can paste it here, or for privacy reasons you can paste on https://gist.github.com/, then copy the URL here.
We can progress again from there.
I hope that helps!
After looking at this, looks like this may be my issue:
Remote Post: ? wp_remote_post() failed. Contact your hosting provider.
Remote Get: ? wp_remote_get() failed. Contact your hosting provider.Any tips on what may be causing this? I’ve tried changing the theme and enabling only woocommerce and square plugin.
Here’s the status report:
### WordPress Environment ###WordPress address (URL): https://southernspecialtiesoutdoor.com
Site address (URL): https://southernspecialtiesoutdoor.com
WC Version: 5.3.0
REST API Version: ? 5.3.0
WC Blocks Version: ? 5.2.0
Action Scheduler Version: ? 3.1.6
WC Admin Version: ? 2.2.6
Log Directory Writable: ?
WP Version: 5.7.2
WP Multisite: –
WP Memory Limit: 256 MB
WP Debug Mode: –
WP Cron: ?
Language: en_US
External object cache: –### Server Environment ###
Server Info: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.15 mod_jk/1.2.41 mod_perl/2.0.9dev Perl/v5.16.3
PHP Version: 7.4.15
PHP Post Max Size: 64 MB
PHP Time Limit: 300
PHP Max Input Vars: 1000
cURL Version: 7.29.0
NSS/3.15.4SUHOSIN Installed: –
MySQL Version: 5.7.20-log
Max Upload Size: 64 MB
Default Timezone is UTC: ?
fsockopen/cURL: ?
SoapClient: ? Your server does not have the SoapClient class enabled – some gateway plugins which use SOAP may not work as expected.
DOMDocument: ?
GZip: ?
Multibyte String: ?
Remote Post: ? wp_remote_post() failed. Contact your hosting provider.
Remote Get: ? wp_remote_get() failed. Contact your hosting provider.### Database ###
WC Database Version: 5.0.0
WC Database Prefix: wp_
Total Database Size: 31.78MB
Database Data Size: 28.81MB
Database Index Size: 2.97MB
wp_woocommerce_sessions: Data: 0.23MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_woocommerce_order_items: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_order_itemmeta: Data: 0.48MB + Index: 0.16MB + Engine InnoDB
wp_woocommerce_tax_rates: Data: 0.14MB + Index: 0.23MB + Engine InnoDB
wp_woocommerce_tax_rate_locations: Data: 0.13MB + Index: 0.16MB + Engine InnoDB
wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_actionscheduler_actions: Data: 0.05MB + Index: 0.11MB + Engine InnoDB
wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_ajaxzoom2dimages: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_ajaxzoom360: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_ajaxzoom360set: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_ajaxzoomimagehotspots: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_ajaxzoomproducts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_ajaxzoomproductsettings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_ajaxzoomvideo: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_comments: Data: 0.08MB + Index: 0.09MB + Engine InnoDB
wp_gg_cdn: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_gg_folders: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_gg_galleries: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_gg_galleries_excluded: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_gg_galleries_resources: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_gg_image_optimize: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_gg_membership_presets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_gg_photos: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_gg_photos_pos: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_gg_photos_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_gg_settings_presets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_gg_settings_sets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_gg_stats: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_gg_tags: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_jckpc_inventory: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_nextend2_image_storage: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_nextend2_section_storage: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_nextend2_smartslider3_generators: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_nextend2_smartslider3_sliders: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
wp_nextend2_smartslider3_sliders_xref: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_nextend2_smartslider3_slides: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
wp_nf3_actions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_nf3_action_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_nf3_chunks: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_nf3_fields: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_nf3_field_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_nf3_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_nf3_form_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_nf3_objects: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_nf3_object_meta: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
wp_nf3_relationships: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_nf3_upgrades: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_ngg_album: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_ngg_gallery: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_ngg_pictures: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
wp_options: Data: 20.03MB + Index: 0.39MB + Engine InnoDB
wp_postmeta: Data: 1.33MB + Index: 0.53MB + Engine InnoDB
wp_posts: Data: 1.50MB + Index: 0.13MB + Engine InnoDB
wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_usermeta: Data: 0.11MB + Index: 0.09MB + Engine InnoDB
wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_square_customers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_woo_square_integration_deleted_data: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_woo_square_integration_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wpml_mails: Data: 1.52MB + Index: 0.00MB + Engine InnoDB### Post Type Counts ###
attachment: 116
display_type: 7
nav_menu_item: 12
nf_sub: 83
ngg_gallery: 4
ngg_pictures: 28
page: 10
product: 7
product_variation: 7
revision: 204
robo_gallery_table: 1
shop_order: 127
shop_order_refund: 1
vpc-config: 2
wpsl_stores: 12### Security ###
Secure connection (HTTPS): ?
Hide errors from visitors: ?### Active Plugins (18) ###
Categories Images: by Muhammad El Zahlan – 3.0.1
Display PHP Version: by David Gwyer – 1.7
Enable Media Replace: by ShortPixel – 3.5.0
Flexible Shipping: by WP Desk – 4.5.0
jQuery Smooth Scroll: by Digital Liberation – 1.4.5
Maybe Pass requests through Moesif: by Will Brubaker – 0.1b
Ninja Forms: by Saturday Drive – 3.5.4
Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 3.1.5
UpdraftPlus – Backup/Restore: by UpdraftPlus.Com
DavidAnderson – 1.16.56Visual Products Configurator: by ORION – 5.4
WooCommerce Blocks: by Automattic – 5.2.0
WooCommerce 360° Image: by WooCommerce – 1.1.5
WooCommerce Square: by WooCommerce – 2.5.1
WooCommerce: by Automattic – 5.3.0
WP Mail Logging: by MailPoet – 1.9.7
WP Mail SMTP: by WPForms – 2.8.0
WP Store Locator: by Tijmen Smit – 2.2.14
NextGEN Gallery: by Imagely – 3.11### Inactive Plugins (1) ###
WooCommerce Payments: by Automattic – 2.4.0
### Settings ###
API Enabled: ?
Force SSL: ?
Currency: USD ($)
Currency Position: left
Thousand Separator: ,
Decimal Separator: .
Number of Decimals: 2
Taxonomies: Product Types: external (external)
grouped (grouped)
simple (simple)
variable (variable)Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
exclude-from-search (exclude-from-search)
featured (featured)
outofstock (outofstock)
rated-1 (rated-1)
rated-2 (rated-2)
rated-3 (rated-3)
rated-4 (rated-4)
rated-5 (rated-5)Connected to WooCommerce.com: –
### WC Pages ###
Shop base: #32 – /products/
Cart: #34 – /cart/
Checkout: #35 – /checkout/
My account: #36 – /my-account/
Terms and conditions: ? Page not set### Theme ###
Name: Southern Specialties Outdoor
Version: 1.0
Author URL:
Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
WooCommerce Support: ? Not declared### Templates ###
Overrides: –
### Square ###
Environment: Production
Tokenization Enabled: –
Debug Mode: Off### Action Scheduler ###
Complete: 54
Oldest: 2021-05-25 15:46:54 -0500
Newest: 2021-06-01 16:47:07 -0500Pending: 2
Oldest: 2021-06-02 08:10:06 -0500
Newest: 2021-06-08 16:47:01 -0500### Status report information ###
Generated at: 2021-06-02 09:23:11 -05:00
- This reply was modified 3 years, 5 months ago by dustinw.
After looking at this, looks like this may be my issue:
Remote Post: ? wp_remote_post() failed. Contact your hosting provider.
Remote Get: ? wp_remote_get() failed. Contact your hosting provider.That’s indeed looking like the culprit ??
I found a relevant solution here, could you please try to clear WooCommerce transient data?
You can navigate to: WP Admin > WooCommerce > Status > Tools > WooCommerce transients, then Click – Clear Transients (Button on right).
If that still doesn’t resolve the issue, then please indeed contact your hosting provider.
Let me know how it goes!
- The topic ‘Business Locations Not Showing (Square)’ is closed to new replies.