Call to getLocations error on line 51
-
I just got an email about this error. Can you let me know what this is about and how to fix.
Error Details ============= An error of type E_ERROR was caused in line 51 of the file /nas/content/live/cdbsrvr/wp-content/plugins/woocommerce-square/includes/API/Responses/Locations.php. Error message: Uncaught Error: Call to a member function getLocations() on string in /nas/content/live/cdbsrvr/wp-content/plugins/woocommerce-square/includes/API/Responses/Locations.php:51 Stack trace: #0 /nas/content/live/cdbsrvr/wp-content/plugins/woocommerce-square/includes/API.php(609): WooCommerce\Square\API\Responses\Locations->get_locations() #1 /nas/content/live/cdbsrvr/wp-content/plugins/woocommerce-square/includes/Settings.php(608): WooCommerce\Square\API->get_locations() #2 /nas/content/live/cdbsrvr/wp-content/plugins/woocommerce-square/includes/Plugin.php(523): WooCommerce\Square\Settings->get_locations() #3 /nas/content/live/cdbsrvr/wp-content/plugins/woocommerce-square/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/class-sv-wc-payment-gateway-plugin.php(564): WooCommerce\Square\Plugin->add_currency_admin_notices() #4 [internal function]: SkyVerge\WooCommerce\PluginFramework\v5_4_0\SV_WC_Payment_Gateway_Plugin->add_delayed_admin_notices('') #5 /nas/content/live/cdbsrvr/wp-includes/class-wp-hook
The page I need help with: [log in to see the link]
-
Hi @tonyzeoli,
This looks like the new email that WordPress sends out when it runs into an error that would stop a site from working in the past. Had this randomly happened or were you doing anything on the site that may have triggered this?
Could you also please share 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, paste it here in your response.The actions my client took today are listed in the activity log from Sucuri, which I’ve taken a screenshot of for you and provided it here: https://cloudup.com/c47rNuyalER
Here is the system report:
### WordPress Environment ### WordPress address (URL): https://clearlybalanceddays.com Site address (URL): https://clearlybalanceddays.com WC Version: 3.8.0 REST API Version: ? 1.0.2 Log Directory Writable: ? WP Version: ? 5.2.4 - There is a newer version of WordPress available (5.3) WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.3.10-1+ubuntu18.04.1+deb.sury.org+1 PHP Post Max Size: 100 MB PHP Time Limit: 3600 PHP Max Input Vars: 1000 cURL Version: 7.58.0 OpenSSL/1.1.1d SUHOSIN Installed: – MySQL Version: 5.7.27-30-log Max Upload Size: 50 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 3.8.0 WC Database Prefix: wp_ Total Database Size: 43.52MB Database Data Size: 30.86MB Database Index Size: 12.66MB wp_woocommerce_sessions: Data: 1.02MB + 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.06MB + Engine InnoDB wp_woocommerce_order_items: Data: 0.16MB + Index: 0.08MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 1.52MB + Index: 1.95MB + Engine InnoDB wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + 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_caos_webfonts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_caos_webfonts_subsets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 1.52MB + Index: 1.03MB + Engine InnoDB wp_dlm_order: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_dlm_order_customer: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_dlm_order_item: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_dlm_order_transaction: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_dlm_session: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_download_log: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_gf_draft_submissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_gf_entry: Data: 0.03MB + Index: 0.01MB + Engine MyISAM wp_gf_entry_meta: Data: 0.08MB + Index: 0.09MB + Engine MyISAM wp_gf_entry_notes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_gf_form: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_gf_form_meta: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_gf_form_revisions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_gf_form_view: Data: 0.02MB + Index: 0.01MB + Engine MyISAM wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mapsvg_database_1700: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_mapsvg_r2d: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mapsvg_regions_1700: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_mapsvg_schema: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_options: Data: 10.50MB + Index: 0.13MB + Engine InnoDB wp_postmeta: Data: 7.52MB + Index: 6.03MB + Engine InnoDB wp_posts: Data: 2.44MB + Index: 0.69MB + Engine InnoDB wp_revslider_css: Data: 0.09MB + Index: 0.00MB + Engine MyISAM wp_revslider_css_bkp: Data: 0.09MB + Index: 0.00MB + Engine MyISAM wp_revslider_layer_animations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_revslider_layer_animations_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_revslider_navigations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_revslider_navigations_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_revslider_sliders: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_revslider_sliders_bkp: Data: 0.02MB + Index: 0.00MB + Engine MyISAM wp_revslider_slides: Data: 0.03MB + Index: 0.00MB + Engine MyISAM wp_revslider_slides_bkp: Data: 0.06MB + Index: 0.00MB + Engine MyISAM wp_revslider_static_slides: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_revslider_static_slides_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rg_form: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rg_form_meta: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_rg_form_view: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_rg_incomplete_submissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rg_lead: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_rg_lead_detail: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_rg_lead_detail_long: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rg_lead_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_rg_lead_notes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 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.11MB + Index: 0.11MB + Engine InnoDB wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_tm_taskmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_tm_tasks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_usermeta: Data: 1.52MB + Index: 0.89MB + Engine InnoDB wp_users: Data: 0.06MB + Index: 0.05MB + Engine InnoDB wp_wc_admin_notes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_admin_note_actions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_customer_lookup: Data: 0.04MB + Index: 0.04MB + Engine MyISAM wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_coupon_lookup: Data: 0.01MB + Index: 0.02MB + Engine MyISAM wp_wc_order_product_lookup: Data: 0.10MB + Index: 0.09MB + Engine MyISAM wp_wc_order_stats: Data: 0.06MB + Index: 0.05MB + Engine MyISAM wp_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_product_meta_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfBadLeechers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfBlockedCommentLog: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfBlockedIPLog: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfBlocks7: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfConfig: Data: 0.24MB + Index: 0.01MB + Engine MyISAM wp_wfCrawlers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfFileChanges: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfFileMods: Data: 1.34MB + Index: 0.21MB + Engine MyISAM wp_wfHits: Data: 0.29MB + Index: 0.08MB + Engine MyISAM wp_wfHoover: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfIssues: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfKnownFileList: Data: 0.67MB + Index: 0.09MB + Engine MyISAM wp_wfLeechers: Data: 0.02MB + Index: 0.02MB + Engine MyISAM wp_wfLocs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfLogins: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_wfNet404s: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfNotifications: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfPendingIssues: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfReverseCache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfScanners: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfSNIPCache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wfStatus: Data: 0.07MB + Index: 0.03MB + Engine MyISAM wp_wfVulnScanners: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 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_wpgdprc_access_requests: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wpgdprc_consents: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wpgdprc_delete_requests: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wpgdprc_log: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_wpgmza: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpgmza_categories: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpgmza_category_maps: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpgmza_circles: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpgmza_custom_fields: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wpgmza_datasets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpgmza_maps: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpgmza_maps_has_custom_fields_filters: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wpgmza_markers_has_categories: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpgmza_markers_has_custom_fields: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wpgmza_nominatim_geocode_cache: Data: 0.17MB + Index: 0.00MB + Engine InnoDB wp_wpgmza_polygon: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpgmza_polylines: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpgmza_rectangles: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wps_hit: Data: 0.01MB + Index: 0.03MB + Engine MyISAM wp_wps_index: Data: 0.07MB + Index: 0.11MB + Engine MyISAM wp_wps_key: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_wps_object_type: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wps_query: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wps_uri: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_wps_user_agent: Data: 0.00MB + Index: 0.00MB + Engine MyISAM ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (40) ### Gravity Forms: by rocketgenius – 2.4.15 Woocommerce Credit Card Payment Extension.: by Quickcard – 1.0.6 – Not tested with the active version of WooCommerce All 404 Redirect to Homepage: by Fakhri Alsadi – 1.18 All In One SEO Pack Pro: by Michael Torbert – 3.2.10 Autoptimize CriticalCSS.com Power-Up: by Deny Dias & Optimizing Matters – 1.17.1 Autoptimize: by Frank Goossens (futtta) – 2.5.1 Better Search Replace: by Delicious Brains – 1.3.3 Cloudflare: by John Wineman Furkan Yilmaz Junade Ali (Cloudflare Team) – 3.4.1 GDPR Cookie Consent: by WebToffee – 1.8.1 Download Monitor Page Addon: by Download Monitor – 4.1.4 Download Monitor: by Never5 – 4.4.2 Google Analytics Dashboard for WP (GADWP): by ExactMetrics – 5.3.9 CAOS: by Daan van den Bergh – 2.8.1 OMGF: by Daan van den Bergh – 2.0.2 Jetpack by WordPress.com: by Automattic – 7.9 MC4WP: Mailchimp for WordPress: by ibericode – 4.7 MapSVG: by Roman S. Stepanov – 5.3.7 Members: by Justin Tadlock – 2.2.0 Minimum Age for WooCommerce: by WebAware – 1.0.5 Really Simple SSL: by Rogier Lankhorst Mark Wolters – 3.2.6 Slider Revolution: by ThemePunch – 6.1.3 Sucuri Security - Auditing, Malware Scanner and Hardening: by Sucuri Inc. – 1.8.21 Accessibility by UserWay: by UserWay.org – 1.2 WooCommerce Invoice Gateway: by Stuart Duff – 1.0.2 – Not tested with the active version of WooCommerce NMI Gateway for WooCommerce Premium: by BNGDesign – 1.5.14 – Not tested with the active version of WooCommerce Advanced Order Export For WooCommerce: by AlgolPlus – 3.1.0 WooCommerce Admin: by WooCommerce – 0.21.0 – Not tested with the active version of WooCommerce WooCommerce Filter Orders by Coupon: by SkyVerge – 1.0.1 – Not tested with the active version of WooCommerce WooCommerce Product Documents: by SkyVerge – 1.11.0 WooCommerce Product Search: by itthinx – 2.18.0 WooCommerce Services: by Automattic – 1.21.1 – 1.22.1 is available – Not tested with the active version of WooCommerce WooCommerce Square: by WooCommerce – 2.0.6 – 2.0.7 is available – Not tested with the active version of WooCommerce WooCommerce Wholesale Prices Premium: by Rymera Web Co – 1.23.3 – Not tested with the active version of WooCommerce WooCommerce Wholesale Prices: by Rymera Web Co – 1.10 – Not tested with the active version of WooCommerce WooCommerce: by Automattic – 3.8.0 WooSidebars: by WooCommerce – 1.4.5 WP GDPR Compliance: by Van Ons – 1.5.2 WP Google Maps - Pro Add-on: by WP Google Maps – 7.11.62 WP Google Maps: by WP Google Maps – 8.0.8 WP-Optimize - Clean, Compress, Cache: by David Anderson Ruhani Rabin Team Updraft – 3.0.13 ### Inactive Plugins (5) ### Akismet Anti-Spam: by Automattic – 4.1.3 Async JavaScript: by Frank Goossens (futtta) – 2.19.07.14 Network Merchants Inc Gateway for WooCommerce: by PatSaTECH – 1.7.4 – Not tested with the active version of WooCommerce Product CSV Import Export (BASIC): by WebToffee – 1.7.0 SSL Insecure Content Fixer: by WebAware – 2.7.2 ### Dropin Plugins (1) ### advanced-cache.php: advanced-cache.php ### Must Use Plugins (5) ### Force Strong Passwords - WPE Edition: by Jason Cosper – 1.6.4 SSO: by Garth Mortensen Mike Hansen – 0.3 WP Engine Security Auditor: by wpengine – 1.0.8 WP Engine System: by WP Engine – 3.2.2 WPE Sign On Plugin: by WP Engine – 1.1.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: #16 - /shop/ Cart: #17 - /cart/ Checkout: #18 - /checkout/ My account: #19 - /my-account/ Terms and conditions: #923 - /terms-of-service/ ### Theme ### Name: Pro – Child Theme Version: 1.0.0 Author URL: https://theme.co/ Child Theme: ? Parent Theme Name: Pro Parent Theme Version: 3.0.4 Parent Theme Author URL: https://theme.co/ WooCommerce Support: ? ### Templates ### Archive Template: Your theme has a woocommerce.php file you will not be able to override the woocommerce/archive-product.php custom template since woocommerce.php has priority over archive-product.php. This is intended to prevent display issues. Overrides: pro/woocommerce/cart/cross-sells.php pro/woocommerce/loop/loop-end.php pro/woocommerce/loop/loop-start.php pro/woocommerce/loop/pagination.php pro/woocommerce/notices/error.php pro/woocommerce/notices/notice.php pro/woocommerce/notices/success.php pro/woocommerce/single-product/related.php pro/woocommerce/single-product/tabs/tabs.php version 2.4.0 is out of date. The core version is 3.8.0 pro/woocommerce/single-product/up-sells.php pro/woocommerce/single-product-reviews.php Outdated Templates: ? Learn how to update ### Square ### Environment: Production Tokenization Enabled: ? Debug Mode: Save to Log ### Action Scheduler ### Complete: 1,932 Oldest: 2019-10-21 12:21:18 -0400 Newest: 2019-11-20 18:45:47 -0500 Pending: 6 Oldest: 2019-11-20 19:45:39 -0500 Newest: 2019-11-21 14:51:49 -0500 Canceled: 3 Oldest: 2019-10-31 16:09:14 -0400 Newest: 2019-11-14 14:49:37 -0500 In-progress: 0 Oldest: – Newest: – Failed: 0 Oldest: – Newest: –
One thing – I did upgrade JetPack due to the security warning and I turned of debug log in the Square WooCommerce plugin because of the message appearing in the WordPress Dashboard about it being active. So, those are the only two things I’ve done since I reported this issue.
-
This reply was modified 5 years, 4 months ago by
Tony Zeoli. Reason: add new information
Hi @tonyzeoli,
Would you first be able re-enable the debug log for Square? That would be helpful to have since this is an error coming from Square. ??
Then if any errors are logged you’ll find those under WooCommerce > Status > Logs tab. There will be a Square log for every day that logging is enabled. Pick the appropriate date to find the logs from today.
Also, are you able to update to Square 2.0.7 and see if that helps anything. Let us know what you find in the logs from today and if updating helps.
Hi there,
We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.
Kind regards,
Sorry for the delayed reply. We got it working. Thanks.
@tonyzeoli Could you let me know how you resolved this, having the same issue @ryanr14
-
This reply was modified 5 years, 4 months ago by
- The topic ‘Call to getLocations error on line 51’ is closed to new replies.