• Resolved jpowl

    (@jpowl)


    Payment processing stopped working today. Orders halted. We tested orders and get an error after multiple attempts…
    “An error occurred, please try again or try an alternate form of payment.”
    Stripe processes just fine.

    Noticed a new version of the plugin was available since I installed last week. Updated. No change. Enabled logging and tried again. Logs say…

    2020-03-16T16:25:37+00:00 CRITICAL Uncaught Error: Call to a member function getLocations() on string in /home/pdw_tenbendsbeer_prod/public_html/wp-content/plugins/woocommerce-square/includes/API/Responses/Locations.php:51
    Stack trace:
    #0 /home/pdw_tenbendsbeer_prod/public_html/wp-content/plugins/woocommerce-square/includes/API.php(609): WooCommerce\Square\API\Responses\Locations->get_locations()
    #1 /home/pdw_tenbendsbeer_prod/public_html/wp-content/plugins/woocommerce-square/includes/Settings.php(612): WooCommerce\Square\API->get_locations()
    #2 /home/pdw_tenbendsbeer_prod/public_html/wp-content/plugins/woocommerce-square/includes/Settings.php(263): WooCommerce\Square\Settings->get_locations()
    #3 /home/pdw_tenbendsbeer_prod/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php(266): WooCommerce\Square\Settings->get_form_fields()
    #4 /home/pdw_tenbendsbeer_prod/public_html/wp-content/plugins/woocommerce-square/includes/Settings.php(80): WC_Settings_API->init_settings()
    #5 /home/pdw_tenbendsbeer_prod/public_ht in /home/pdw_tenbendsbeer_prod/public_html/wp-content/plugins/woocommerce-square/includes/API/Responses/Locations.php on line 51

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • AJ a11n

    (@amandasjackson)

    Hi @jpowl

    Looking at the error, it sounds like the Location is not set for the plugin.

    Can you please confirm whether the location is selected in WooCommerce >> Settings >> Square?

    Thread Starter jpowl

    (@jpowl)

    @amandasjackson thanks. Yes I set the location when I set up the plugin. It worked for about 10 days and then stopped working. The location is still set the same as it was on day 1.

    AJ a11n

    (@amandasjackson)

    @jpowl

    Thank you for testing. Could you 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.

    Thread Starter jpowl

    (@jpowl)

    @amandasjackson

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://tenbendsbeer.com
    Site address (URL): https://tenbendsbeer.com
    WC Version: 3.9.3
    REST API Version: ? 1.0.7
    Log Directory Writable: ?
    WP Version: ? 5.3.2 - There is a newer version of WordPress available (5.4)
    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
    PHP Version: 7.3.16
    PHP Post Max Size: 32 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 1000
    cURL Version: 7.29.0
    NSS/3.44
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.1.44-MariaDB
    Max Upload Size: 32 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: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 3.9.3
    WC Database Prefix: wprum_
    Total Database Size: 15.88MB
    Database Data Size: 10.34MB
    Database Index Size: 5.54MB
    wprum_woocommerce_sessions: Data: 0.26MB + Index: 0.01MB + Engine MyISAM
    wprum_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wprum_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wprum_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wprum_woocommerce_order_items: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
    wprum_woocommerce_order_itemmeta: Data: 0.05MB + Index: 0.05MB + Engine MyISAM
    wprum_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wprum_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wprum_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wprum_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wprum_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wprum_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wprum_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wprum_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wprum_brizy_logs: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    wprum_cm_abtests: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wprum_cm_elements: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wprum_cm_forms: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wprum_cm_lists: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wprum_commentmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wprum_comments: Data: 0.20MB + Index: 0.04MB + Engine MyISAM
    wprum_csp3_subscribers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wprum_cspv5_pages: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wprum_em_bookings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wprum_em_events: Data: 0.11MB + Index: 0.14MB + Engine InnoDB
    wprum_em_locations: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wprum_em_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wprum_em_tickets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wprum_em_tickets_bookings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wprum_gf_addon_feed: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wprum_gf_draft_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wprum_gf_entry: Data: 1.52MB + Index: 0.23MB + Engine InnoDB
    wprum_gf_entry_meta: Data: 2.52MB + Index: 3.47MB + Engine InnoDB
    wprum_gf_entry_notes: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    wprum_gf_form: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wprum_gf_form_meta: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    wprum_gf_form_revisions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wprum_gf_form_view: Data: 0.14MB + Index: 0.13MB + Engine InnoDB
    wprum_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wprum_options: Data: 1.23MB + Index: 0.31MB + Engine MyISAM
    wprum_pluginSL_shorturl: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wprum_postmeta: Data: 1.34MB + Index: 0.33MB + Engine MyISAM
    wprum_posts: Data: 0.55MB + Index: 0.10MB + Engine MyISAM
    wprum_rg_form: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wprum_rg_form_meta: Data: 0.03MB + Index: 0.00MB + Engine MyISAM
    wprum_rg_form_view: Data: 0.06MB + Index: 0.04MB + Engine MyISAM
    wprum_rg_incomplete_submissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wprum_rg_lead: Data: 0.07MB + Index: 0.01MB + Engine MyISAM
    wprum_rg_lead_detail: Data: 0.19MB + Index: 0.15MB + Engine MyISAM
    wprum_rg_lead_detail_long: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wprum_rg_lead_meta: Data: 0.03MB + Index: 0.02MB + Engine MyISAM
    wprum_rg_lead_notes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wprum_termmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wprum_terms: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wprum_term_relationships: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wprum_term_taxonomy: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wprum_usermeta: Data: 0.07MB + Index: 0.04MB + Engine MyISAM
    wprum_users: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wprum_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wprum_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wprum_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wprum_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wprum_yoast_seo_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wprum_yoast_seo_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 165
    beers: 24
    brizy-project: 1
    customize_changeset: 34
    custom_css: 2
    event: 80
    event-recurring: 1
    location: 6
    nav_menu_item: 3
    page: 25
    post: 19
    product: 14
    product_variation: 57
    revision: 218
    scheduled-action: 70
    shop_order: 40
    slider: 9
    wc_conditional_fee: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (29) ###
    
    ManageWP - Worker: by GoDaddy – 4.9.6
    Gravity Forms: by rocketgenius – 2.4.17
    Brizy: by Brizy.io – 1.0.122
    Classic Editor: by WordPress Contributors – 1.5
    Dan's GSheets Data Embedder: by Dan Dulaney – 1.2
    Events Manager: by Marcus Sykes – 5.9.7.3
    Gravity Forms Campaign Monitor Add-On: by Gravity Forms – 3.8
    WPZOOM Social Feed Widget: by WPZOOM – 1.5.0
    On-Tap Heartbeat: by Rumspeed – 0.9.1
    On-Tap Status Toggle: by Rumspeed – 1.0.2
    Posts from a Category Widget: by Takayuki Miyauchi – 1.2.0
    Really Simple SSL: by Rogier Lankhorst
    Mark Wolters – 3.3
    
    Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 3.1.3
    WooCommerce Donation Or Tip On Cart And Checkout: by Magerips – 1.7 – Not tested with the active version of WooCommerce
    Rumspeed Site Support: by Scot Rumery – 2.1.3
    SeedProd Coming Soon Page Pro: by SeedProd – 5.12.5
    Send E-mails with Mandrill: by Miller Media ( Matt Miller ) – 1.2.8
    Short URL: by SedLex – 1.6.3
    Simple Post Expiration: by Pippin Williamson – 1.0.1
    Social Icons Widget & Block by WPZOOM: by WPZOOM – 4.0.1
    Taxonomy Widget: by Michael Fields – 0.6.1
    Ten Bends Beer CPT: by Scot Rumery – 1.0.1
    Unyson: by ThemeFuse – 2.7.23
    WooCommerce Conditional Product Fees for Checkout Premium: by Multidots – 3.2 – Not tested with the active version of WooCommerce
    WooCommerce Stripe Gateway: by WooCommerce – 4.3.2
    WooCommerce Square: by WooCommerce – 2.1.1
    WooCommerce: by Automattic – 3.9.3 – 4.0.1 is available
    Yoast SEO: by Team Yoast – 13.3
    WP Rocket: by WP Media – 3.5.1
    
    ### Inactive Plugins (3) ###
    
    Beaver Builder Addons by WPZOOM: by WPZOOM – 1.3.1
    Beaver Builder Plugin (Lite Version): by The Beaver Builder Team – 2.3.2.5
    WC Secondary Product Thumbnail: by Hendy Tarnando – 1.3.2 – Not tested with the active version of WooCommerce
    
    ### Dropin Plugins (1) ###
    
    advanced-cache.php: advanced-cache.php
    
    ### Must Use Plugins (1) ###
    
    ManageWP - Worker Loader: by ManageWP –
    
    ### 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: #743 - /order-beer/
    Cart: #79 - /cart/
    Checkout: #80 - /checkout/
    My account: #81 - /my-account/
    Terms and conditions: ? Page not set
    
    ### Theme ###
    
    Name: Balance Child for Ten Bends Beer
    Version: 2.0.2
    Author URL: https://www.wpzoom.com
    Child Theme: ?
    Parent Theme Name: Balance
    Parent Theme Version: 2.0.2
    Parent Theme Author URL: https://www.wpzoom.com
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: wpzoom-balance/woocommerce/archive-product.php
    wpzoom-balance/woocommerce/single-product.php
    
    ### Action Scheduler ###
    
    Complete: 68
    Oldest: 2020-03-16 15:27:36 +0000
    Newest: 2020-03-31 21:05:57 +0000
    
    Pending: 1
    Oldest: 2020-04-03 19:53:00 +0000
    Newest: 2020-04-03 19:53:00 +0000
    
    Canceled: 1
    Oldest: 2020-03-30 15:36:47 +0000
    Newest: 2020-03-30 15:36:47 +0000
    
    In-progress: 0
    Oldest: –
    Newest: –
    
    Failed: 0
    Oldest: –
    Newest: –
    
    
    Richard Bakos

    (@resonancedesigns)

    You need to install/enable the Soap Client class in your PHP config. Square will not work without it. If you can SSH into your server and install the soap client and edit your php.ini file to enable it, you should be good.

    Check your php.ini file for something like this: extension=php_soap.dll or extension=soap and remove the semicolon to the left of it to uncomment it, save the file, and restart your server. If you can’t find anything like that in your php.ini file then you likely don’t have the soap client installed. To install it on Debian based Apache servers the following should work:

    sudo apt-get install php7.0-soap
    sudo systemctl restart apache2.service

    The version number in that first line, php7.0-soap, depends on the version of PHP the site is running. So if it’s PHP 7.2 you should change it to php7.2-soap

    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.

    – Joey

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Square Payment Processing Error’ is closed to new replies.