CRITICAL Uncaught Error: Call to a member function getOrder()
-
Since upgrading to Woo 3.8.1, WP 5.3.2, and Square 2.0.8 I am getting the following error
2019-12-19T23:57:42+00:00 CRITICAL Uncaught Error: Call to a member function getOrder() on string in /home2/xxxxxx/public_html/wp-content/plugins/woocommerce-square/includes/Gateway/API.php:308
Stack trace:
#0 /home2/xxxxxx/public_html/wp-content/plugins/woocommerce-square/includes/Gateway.php(282): WooCommerce\Square\Gateway\API->create_order(’33F1SFYBRRG53′, Object(WC_Order))
#1 /home2/xxxxxx/public_html/wp-content/plugins/woocommerce-square/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/class-sv-wc-payment-gateway-direct.php(384): WooCommerce\Square\Gateway->do_transaction(Object(WC_Order))
#2 /home2/xxxxxx/public_html/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(423): SkyVerge\WooCommerce\PluginFramework\v5_4_0\SV_WC_Payment_Gateway_Direct->process_payment(6663)
#3 /home2/xxxxxx/public_html/wp-includes/class-wp-hook.php(288): WC_Form_Handler::pay_action(Object(WP))
#4 /home2/xxxxxx/public_html/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array)
#5 /home2/xxxxxx/public_ in /home2/xxxxxx/public_html/wp-content/plugins/woocommerce-square/includes/Gateway/API.php on line 308-
This topic was modified 6 years, 4 months ago by
7thcircle. Reason: spelling in subject
The page I need help with: [log in to see the link]
-
This topic was modified 6 years, 4 months ago by
-
Status Report……
### WordPress Environment ### WordPress address (URL): https://www.ericleuthardt.com Site address (URL): https://www.ericleuthardt.com WC Version: 3.8.1 REST API Version: ✔ 1.0.2 Log Directory Writable: ✔ WP Version: 5.3.2 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.2.25 PHP Post Max Size: 64 MB PHP Time Limit: 300 PHP Max Input Vars: 1000 cURL Version: 7.67.0 OpenSSL/1.0.2t SUHOSIN Installed: – MySQL Version: 5.6.41-84.1 Max Upload Size: 10 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 3.8.1 WC Database Prefix: wp_ MaxMind GeoIP Database: ✔ Total Database Size: 15.30MB Database Data Size: 11.42MB Database Index Size: 3.88MB 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_blc_filters: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_blc_instances: Data: 0.16MB + Index: 0.05MB + Engine InnoDB wp_blc_links: Data: 2.52MB + Index: 0.19MB + Engine InnoDB wp_blc_synch: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_cart_notices: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_cf_forms: Data: 0.17MB + Index: 0.02MB + Engine InnoDB wp_cf_form_entries: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_cf_form_entry_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_cf_form_entry_values: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_cf_pro_messages: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_cf_queue_failures: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_cf_queue_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_cf_tracking: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_cf_tracking_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_failed_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + 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.03MB + Index: 0.00MB + Engine InnoDB wp_nextend2_smartslider3_sliders_xref: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nextend2_smartslider3_slides: Data: 0.05MB + Index: 0.00MB + Engine InnoDB wp_options: Data: 2.31MB + Index: 0.14MB + Engine InnoDB wp_postmeta: Data: 2.44MB + Index: 1.88MB + Engine InnoDB wp_posts: Data: 2.48MB + Index: 0.27MB + Engine InnoDB wp_queue: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_smush_dir_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_terms: Data: 0.05MB + Index: 0.03MB + Engine InnoDB wp_term_relationships: Data: 0.16MB + Index: 0.13MB + Engine InnoDB wp_term_taxonomy: Data: 0.05MB + Index: 0.03MB + Engine InnoDB wp_usermeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_deposits_payment_plans: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_deposits_payment_plans_schedule: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_download_log: 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_woocommerce_bundled_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_bundled_items: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_square_customers: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_yikes_easy_mc_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (36) ### Akismet Anti-Spam: by Automattic – 4.1.3 All In One SEO Pack: by Michael Torbert – 3.3.3 Amazon Affiliate Tag: by Maxime Bridon – 1.1.0.3 Autoptimize: by Frank Goossens (futtta) – 2.5.1 BackWPup: by Inpsyde GmbH – 3.7.0 Broken Link Checker: by ManageWP – 1.11.9 Caldera Forms: by Caldera Labs – 1.8.9 Classic Editor: by WordPress Contributors – 1.5 Coinbase Commerce: by Coinbase Commerce – 1.1.4 – Not tested with the active version of WooCommerce Delete Expired Transients: by WebAware – 2.0.7 GDPR Compliance for Mailchimp: by YIKES Inc. – 1.3.3 Event Tickets Plus: by Modern Tribe Inc. – 4.11.0.2 Event Tickets: by Modern Tribe Inc. – 4.11.0.1 The Events Calendar PRO: by Modern Tribe Inc. – 4.7.9 Genesis Connect for WooCommerce: by StudioPress – 1.1.0 – Not tested with the active version of WooCommerce Genesis Simple Share: by StudioPress – 1.1.5 Genesis Title Toggle: by Bill Erickson – 1.9.0 Google Authenticator: by Ivan Kruchkoff – 0.52 Kadence WooCommerce Email Designer: by Kadence WP – 1.3.8 MainWP Child: by MainWP – 4.0.5.1 Simple Social Icons: by StudioPress – 3.0.1 Smart Slider 3: by Nextend – 3.3.25 The Events Calendar: by Modern Tribe Inc. – 4.9.13 The Events Calendar Extension: Relabeler: by Modern Tribe Inc. – 1.0.1 WooCommerce Cart Notices: by SkyVerge – 1.11.0 WooCommerce Conditional Shipping and Payments: by SomewhereWarm – 1.6.2 WooCommerce Deposits: by WooCommerce – 1.4.15 WooCommerce Google Analytics Integration: by WooCommerce – 1.4.15 WooCommerce Name Your Price: by Kathy Darling – 2.11.4 WooCommerce Product Add-ons: by WooCommerce – 3.0.20 WooCommerce Product Dependencies: by SomewhereWarm – 1.2.2 – Not tested with the active version of WooCommerce WooCommerce Square: by WooCommerce – 2.0.8 WooCommerce: by Automattic – 3.8.1 Smush: by WPMU DEV – 3.3.2 WP Super Cache: by Automattic – 1.7.0 Easy Forms for Mailchimp: by YIKES Inc. – 6.6.2 ### Inactive Plugins (0) ### ### Dropin Plugins (3) ### advanced-cache.php: advanced-cache.php db-error.php: db-error.php maintenance.php: maintenance.php ### Must Use Plugins (28) ### 7th Circle Designs Branding: by Eric Leuthardt - 7th Circle Designs – 2.1.1 Admin Notification Cleanup: by Eric Leuthardt - 7th Circle Designs – 1.2.3 Class Notes Tweaks: by Eric Leuthardt - 7th Circle Designs – 1.3.11 Client Management: by Eric Leuthardt - 7th Circle Designs – 1.2.1 Custom Comment Settings: by Eric Leuthardt - 7th Circle Designs – 2.4.0 Custom Configuration Settings for SMTP Email: by Eric Leuthardt - 7th Circle Designs – 3.4.0 Custom Editor and Post Settings: by Eric Leuthardt - 7th Circle Designs – 2.0.0 Custom Layout Changes: by Eric Leuthardt - 7th Circle Designs – 2.4.2 Custom Login Logo and Favicons: by Eric Leuthardt - 7th Circle Designs – 3.1.6 Custom Security Configurations: by Eric Leuthardt - 7th Circle Designs – 3.3.0 Custom User Settings: by Eric Leuthardt - 7th Circle Designs – 2.0.1 Disable Automatic Image Links: by Eric Leuthardt - 7th Circle Designs – 1.0.8 Disable Caldera Minification: by Eric Leuthardt - 7th Circle Designs – 1.0.1 Events Calendar Customization: by Eric Leuthardt - 7th Circle Designs – 1.4.0 Genesis Events Calendar Tweaks: by Eric Leuthardt - 7th Circle Designs – 1.1.0 Heartbeat Optimization: by Eric Leuthardt - 7th Circle Designs – 1.2.2 Optimized SEO Settings: by Eric Leuthardt - 7th Circle Designs – 1.6.4 Optimize WooCommerce Scripts: by Eric Leuthardt - 7th Circle Designs – 2.3.2 RSS Branding and Customized Feeds: by Eric Leuthardt - 7th Circle Designs – 2.3.5 Show WooCommerce Product Visibility: by Eric Leuthardt - 7th Circle Designs – 1.0.0 WooCommerce auto image removal: by Eric Leuthardt - 7th Circle Designs – 1.1.1 WooCommerce Checkout Cleanup: by Eric Leuthardt - 7th Circle Designs – 2.2.1 WooCommerce Email Sender Adjustments: by Eric Leuthardt - 7th Circle Designs – 1.2.4 WooCommerce Extras: by Eric Leuthardt - 7th Circle Designs – 1.5.2 WooCommerce Freelancer Tweaks: by Eric Leuthardt - 7th Circle Designs – 2.2.4 WooCommerce GDPR Add-ons: by Eric Leuthardt - 7th Circle Designs – 1.2.2 WooCommerce Optional Related Products: by Eric Leuthardt - 7th Circle Designs – 1.1.0 WooCommerce Price and Stock Adjustments: by Eric Leuthardt - 7th Circle Designs – 2.2.2 ### Settings ### API Enabled: – Force SSL: – Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: bundle (bundle) 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: #5652 - /shop/ Cart: #5653 - /cart/ Checkout: #5654 - /checkout/ My account: #5655 - /my-account/ Terms and conditions: #5800 - /terms-of-service/ ### Theme ### Name: Revolution Pro Version: 1.3.0 Author URL: https://www.studiopress.com/ Child Theme: ✔ Parent Theme Name: Genesis Parent Theme Version: 3.2.1 Parent Theme Author URL: https://www.studiopress.com/ WooCommerce Support: ✔ ### Templates ### Overrides: – ### Square ### Environment: Production Tokenization Enabled: ✔ Debug Mode: Off ### Action Scheduler ### Complete: 10 Oldest: 2019-11-20 11:15:09 -0600 Newest: 2019-12-18 15:30:09 -0600 Pending: 2 Oldest: 2019-12-25 12:00:07 -0600 Newest: 2019-12-25 15:30:09 -0600 Canceled: 0 Oldest: – Newest: – In-progress: 0 Oldest: – Newest: – Failed: 0 Oldest: – Newest: –Hi @7thcircle ,
I checked on my test site with latest WordPress, WooCommerce, Square and running the default Storefront theme, and I’m not able to replicate the issue on my end.
To check further, can you delete Square extension from your site (it will not delete its data) and then re-install it?
If that does resolve the issue, then I suspect there’s another plugin or theme causing the issue.
This is likely caused by a conflict with your theme or with another plugin.
The best way to determine if the issue is being caused by a theme and/or plugin is to temporarily switch your theme to Storefront (https://woocommerce.com/products/storefront/?aff=10486&cid=1131038) and disable all plugins except for WooCommerceWooCommerce Square.. Finally, test to see if the issue is resolved by refreshing the site.
To figure out which plugin is causing the problem, continue to the next step – reactivate your other plugins one by one, testing after each, until you find the one causing conflict.
Here’s a more extensive explanation in our docs: https://docs.woocommerce.com/document/how-to-test-for-conflicts/
—–
Tools to help you troubleshoot:
Meks Quick Plugin Disabler is a plugin you can install which will remember what plugins you currently have active so it’s easy to switch them back on. Link: https://wordpress.org/plugins/meks-quick-plugin-disabler/
You can clone your site to a staging environment and perform tests without modifying your live site or impacting customers. Many hosts provide staging facilities, so it’s worth checking in with them. It’s also possible to do it using the free WP Staging plugin. Link: https://wordpress.org/plugins/wp-staging/
I have solved the issue. Since this plugin seems to have issues I have converted over to Stripe on all of my sites.
The topic ‘CRITICAL Uncaught Error: Call to a member function getOrder()’ is closed to new replies.