• Resolved itseno

    (@itseno)


    Hello!

    I seem to be running into a problem with connecting my Square account with Woocommerce. It looks like it’s all ready to go, except that there is no business location option when I go to the WooCommerce -> Square settings. I will try to add a location, and my one physical location in Square does not populate in the dropdown. I have tried disconnecting and reconnecting square from WooCommerce, as well as forcing the site over SSL, but none of that has helped. Would anyone be able to offer some advice?

    Here is the debug message:

    2020-05-27T15:16:43+00:00 CRITICAL Uncaught Error: Call to a member function getRelatedObjects() on null in D:\home\blondiesstl.com\wwwroot\wp-content\plugins\woocommerce-square\includes\Sync\Product_Import.php:97
    Stack trace:
    #0 D:\home\blondiesstl.com\wwwroot\wp-content\plugins\woocommerce-square\includes\Sync\Stepped_Job.php(114): WooCommerce\Square\Sync\Product_Import->import_products()
    #1 D:\home\blondiesstl.com\wwwroot\wp-content\plugins\woocommerce-square\includes\Sync\Stepped_Job.php(55): WooCommerce\Square\Sync\Stepped_Job->do_next_step()
    #2 D:\home\blondiesstl.com\wwwroot\wp-content\plugins\woocommerce-square\includes\Handlers\Background_Job.php(172): WooCommerce\Square\Sync\Stepped_Job->run()
    #3 D:\home\blondiesstl.com\wwwroot\wp-content\plugins\woocommerce-square\includes\Handlers\Background_Job.php(123): WooCommerce\Square\Handlers\Background_Job->process_job(Object(WooCommerce\Square\Sync\Product_Import))
    #4 D:\home\blondiesstl.com\wwwroot\wp-content\plugins\woocommerce-square\vendor\skyverge\wc-plugin-framework\woocommerce\utili in D:\home\blondiesstl.com\wwwroot\wp-content\plugins\woocommerce-square\includes\Sync\Product_Import.php on line 97

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter itseno

    (@itseno)

    Hello again, I am still hitting this error, any help would be much appreciated.

    I am trying to connect my Square account to my WordPress site. I try to add a business location on WooCommerce, but when the dropdown menu says choose a location, no location is populated. I confirmed on my Square portal that there is a location, but WooCommerce doesn’t populate it for some reason. I have a SSL enabled on the site, and it is working on all pages. I have tried disconnecting and reconnecting the plugin. I have confirmed that the communication requests are being approved by my hosting provider. And I have confirmed that CURL is working and operational.

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://blondiesstl.com
    Site address (URL): https://blondiesstl.com
    WC Version: 4.1.1
    REST API Version: ✔ 1.0.7
    WC Blocks Version: ✔ 2.5.16
    Action Scheduler Version: ✔ 3.1.6
    WC Admin Version: ✔ 1.1.3
    Log Directory Writable: ✔
    WP Version: 5.4.1
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Microsoft-IIS/8.5
    PHP Version: 7.3.17
    PHP Post Max Size: 200 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 1000
    cURL Version: 7.69.1
    OpenSSL/1.1.1e
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.1.28-MariaDB
    Max Upload Size: 200 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 4.1.1
    WC Database Prefix: wp_
    Total Database Size: 17.02MB
    Database Data Size: 14.34MB
    Database Index Size: 2.68MB
    wp_woocommerce_sessions: Data: 0.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.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + 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_actionscheduler_actions: Data: 0.02MB + 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_ahm_assets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_ahm_download_stats: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_ahm_emails: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_fm_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_options: Data: 3.31MB + Index: 0.09MB + Engine InnoDB
    wp_postmeta: Data: 1.52MB + Index: 0.44MB + Engine InnoDB
    wp_posts: Data: 0.22MB + Index: 0.09MB + Engine InnoDB
    wp_revslider_css: Data: 0.13MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_css_bkp: Data: 0.13MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_layer_animations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_navigations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_sliders: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_sliders_bkp: Data: 0.03MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_slides: Data: 0.08MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_slides_bkp: Data: 0.19MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_static_slides: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_static_slides_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_sbi_instagram_feeds_posts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_sbi_instagram_posts: Data: 0.17MB + Index: 0.00MB + 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.06MB + Index: 0.02MB + 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: 0.06MB + Index: 0.03MB + 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_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfblockediplog: Data: 0.08MB + Index: 0.00MB + Engine InnoDB
    wp_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wfconfig: Data: 0.47MB + Index: 0.00MB + Engine InnoDB
    wp_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wffilemods: Data: 3.52MB + Index: 0.00MB + Engine InnoDB
    wp_wfhits: Data: 1.02MB + Index: 0.22MB + Engine InnoDB
    wp_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wfknownfilelist: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    wp_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wflogins: Data: 0.38MB + Index: 0.14MB + Engine InnoDB
    wp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wfstatus: Data: 0.13MB + Index: 0.09MB + Engine InnoDB
    wp_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_square_customers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 150
    carousels: 20
    custom_css: 1
    nav_menu_item: 11
    page: 17
    post: 3
    product: 132
    product_variation: 11
    restaurant-menu-item: 156
    tabs_responsive: 1
    testimonials: 6
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (17) ###
    
    Better Search Replace: by Delicious Brains – 1.3.3
    Envato Market: by Envato – 2.0.3
    Smash Balloon Instagram Feed: by Smash Balloon – 2.4.2
    Jetpack by WordPress.com: by Automattic – 8.5
    WPBakery Page Builder: by Michael M - WPBakery.com – 6.0.5
    Mikado Core: by Mikado Themes – 1.3
    Mikado Restaurant: by Mikado Themes – 1.0
    Mikado Instagram Feed: by Mikado Themes – 1.1
    Mikado Twitter Feed: by Mikado Themes – 1.1
    Real-Time Find and Replace: by Marios Alexandrou – 4.0.2
    Slider Revolution: by ThemePunch – 6.1.0
    SSL Insecure Content Fixer: by WebAware – 2.7.2
    Tabs Responsive: by wpshopmart – 2.0.3
    WooCommerce Services: by Automattic – 1.23.0 – Installed version not tested with active version of WooCommerce 4.1.1
    WooCommerce Square: by WooCommerce – 2.1.5
    WooCommerce: by Automattic – 4.1.1
    Wordfence Security: by Wordfence – 7.4.7
    
    ### Inactive Plugins (1) ###
    
    Hello Dolly: by Matt Mullenweg – 1.7.2
    
    ### 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: #3523 - /shop/
    Cart: ❌ Page visibility should be public
    Checkout: #3525 - /checkout/
    My account: #3526 - /my-account/
    Terms and conditions: ❌ Page not set
    
    ### Theme ###
    
    Name: Piquant Child Theme
    Version: 1.0.0
    Author URL: http://themeforest.net/user/mikado-themes
    Child Theme: ✔
    Parent Theme Name: Piquant
    Parent Theme Version: 1.7
    Parent Theme Author URL: http://themeforest.net/user/mikado-themes
    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: piquant/woocommerce/cart\cart-shipping.php
    piquant/woocommerce/cart\cart-totals.php
    piquant/woocommerce/cart\cart.php version 3.7.0 is out of date. The core version is 3.8.0
    piquant/woocommerce/cart\shipping-calculator.php version 3.5.0 is out of date. The core version is 4.0.0
    piquant/woocommerce/content-product.php
    piquant/woocommerce/content-single-product.php
    piquant/woocommerce/content-widget-product.php
    piquant/woocommerce/global\quantity-input.php version 3.6.0 is out of date. The core version is 4.0.0
    piquant/woocommerce/product-searchform.php
    piquant/woocommerce/single-product\add-to-cart\external.php
    piquant/woocommerce/single-product\add-to-cart\grouped.php version 3.4.0 is out of date. The core version is 4.0.0
    piquant/woocommerce/single-product\add-to-cart\simple.php
    piquant/woocommerce/single-product\product-image.php
    piquant/woocommerce/single-product\tabs\tabs.php version 2.4.0 is out of date. The core version is 3.8.0
    
    Outdated Templates: ❌
    					
    					
    						Learn how to update
    
    ### Square ###
    
    Environment: Production
    Tokenization Enabled: –
    Debug Mode: Display at Checkout & Log
    
    ### Action Scheduler ###
    
    Complete: 20
    Oldest: 2020-05-26 15:23:57 +0000
    Newest: 2020-06-01 18:01:58 +0000
    
    Pending: 1
    Oldest: 2020-06-08 18:01:52 +0000
    Newest: 2020-06-08 18:01:52 +0000
    
    
    Plugin Support slash1andy

    (@slash1andy)

    Automattic Happiness Engineer

    Hey there!

    Can you check to see if your server can handle background processing? You can do this using the tool in WooCommerce > Status > Tools

    Let us know the results here!

    Thread Starter itseno

    (@itseno)

    Hi! Thanks for the help. I tried doing that just now, and here is what I got:

    “Success! You should be able to process background jobs.”

    Then I refreshed the WooCommerce connection, and still, no business location is populating in the dropdown.

    Hi there @itseno,

    So if I understood you correctly, you still can’t see your Business Locations in Square settings.

    Can you please make sure that your Square locations are Active and have Credit Card Processing enabled? Only those locations will be picked up by our extension.

    This is how you can check that:

    – enable logging in WooCommerce > Settings > Square
    – reconnect Square
    – check logs in WooCommerce > Status > Logs > choose square logfile from the drop-down.

    You should see which locations are returned by the plugin there.

    This is the part which indicates that your location should show up:

    "capabilities": [
                    "CREDIT_CARD_PROCESSING"
                ],
                "status": "ACTIVE",

    Do you see it for your locations?

    Hi @itseno,

    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.

    Enjoy the rest of your day and stay safe!

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

The topic ‘Business Location Error’ is closed to new replies.