Critical Error On Website
-
Customers were trying to complete an order but was receiving an error. I did a test transaction on the user end and received the same error. Uninstalled the square plugin, cleared cache and reinstalled. Upon going to configure the plug in I receive an error that states: There has been a critical error on this website. Please check your site admin email inbox for instructions. The email I receive states: Howdy! Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email. In this case, WordPress caught an error with one of your plugins, WooCommerce Square. First, visit your website and check for any visible issues. Next, visit the page where the error was caught and check for any visible issues. Please contact your host for assistance with investigating this issue further. If your site appears broken and you can't access your dashboard normally, WordPress now has a special "recovery mode". This lets you safely login to your dashboard and investigate further. To keep your site safe, this link will expire in 1 day. Don't worry about that, though: a new link will be emailed to you if the error occurs again after it expires. When seeking help with this issue, you may be asked for some of the following information: WordPress version 6.1.1 Active theme: Storefront (version 4.2.0) Current plugin: WooCommerce Square (version 3.4.2) PHP version 8.0.25 Error Details ============= An error of type E_ERROR was caused in line 83 of the file /var/www/wptbox/wp-content/plugins/woocommerce-square/vendor/square/square/src/Apis/BaseApi.php. Error message: Uncaught Error: Call to undefined function Square\Apis\php_uname() in /var/www/wptbox/wp-content/plugins/woocommerce-square/vendor/square/square/src/Apis/BaseApi.php:83 Stack trace: #0 /var/www/wptbox/wp-content/plugins/woocommerce-square/vendor/square/square/src/Apis/BaseApi.php(56): Square\Apis\BaseApi->updateUserAgent() #1 /var/www/wptbox/wp-content/plugins/woocommerce-square/vendor/square/square/src/Apis/LocationsApi.php(23): Square\Apis\BaseApi->__construct() #2 /var/www/wptbox/wp-content/plugins/woocommerce-square/vendor/square/square/src/SquareClient.php(570): Square\Apis\LocationsApi->__construct() #3 /var/www/wptbox/wp-content/plugins/woocommerce-square/includes/API/Requests/Locations.php(45): Square\SquareClient->getLocationsApi() #4 /var/www/wptbox/wp-content/plugins/woocommerce-square/includes/API.php(606): WooCommerce\Square\API\Requests\Locations->__construct() #5 /var/www/wptbox/wp-content/plugins/woocommerce-square/includes/Settings.php(717): WooCommerce\Square\API->get_locations() #6 /var/www/wptbox/wp-content/plugins/woocommerce-square/includes/Plugin.php(553): WooCommerce\Square\Settings->get_locations() #7 /var/www/wptbox/wp-content/plugins/woocommerce-square/includes/Framework/PaymentGateway/Payment_Gateway_Plugin.php(512): WooCommerce\Square\Plugin->add_currency_admin_notices() #8 /var/www/wptbox/wp-includes/class-wp-hook.php(308): WooCommerce\Square\Framework\PaymentGateway\Payment_Gateway_Plugin->add_delayed_admin_notices() #9 /var/www/wptbox/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #10 /var/www/wptbox/wp-includes/plugin.php(517): WP_Hook->do_action() #11 /var/www/wptbox/wp-admin/admin-footer.php(78): do_action() #12 /var/www/wptbox/wp-admin/admin.php(297): require_once('...') #13 {main} thrown I talked to live chat with my host and at first they said it was one of my plugins causing the issue. He deactivated the plugin and asked me to try again. The error persisted. He then stated the Square woocommerce plugin was corrupt and that I should contact them. Here is what my STATUS REPORT states:
Any help would be appreciated. Thanks!### WordPress Environment ### WordPress address (URL) Site address (URL): WC Version: 7.3.0 REST API Version:</img></img> 7.3.0 WC Blocks Version:
</img></img> 9.1.5 Action Scheduler Version:
</img></img> 3.5.3 Log Directory Writable:
</img></img> WP Version: 6.1.1 WP Multisite: – WP Memory Limit: 1 GB WP Debug Mode: – WP Cron:
</img></img> Language: en_US External object cache:
</img></img> ### Server Environment ### Server Info: nginx/1.22.1 PHP Version: 8.0.25 PHP Post Max Size: 512 MB PHP Time Limit: 300 PHP Max Input Vars: 5000 cURL Version: 7.83.1 OpenSSL/1.1.1s SUHOSIN Installed: – MySQL Version: 5.7.26-29-log Max Upload Size: 512 MB Default Timezone is UTC:
</img></img> fsockopen/cURL:
</img></img> SoapClient:
</img></img> DOMDocument:
</img></img> GZip:
</img></img> Multibyte String:
</img></img> Remote Post:
</img></img> Remote Get:
</img></img> ### Database ### WC Database Version: 7.3.0 WC Database Prefix: wp_ Total Database Size: 501.85MB Database Data Size: 337.29MB Database Index Size: 164.56MB 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: 1.52MB + Index: 0.31MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 10.52MB + Index: 7.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: 7.33MB + Index: 11.17MB + Engine InnoDB wp_actionscheduler_claims: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Data: 4.52MB + Index: 3.03MB + Engine InnoDB wp_aff_affiliates: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_aff_affiliates_users: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_aff_hits: Data: 1.52MB + Index: 1.08MB + Engine InnoDB wp_aff_referrals: Data: 2.52MB + Index: 0.61MB + Engine InnoDB wp_aff_referral_items: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_aff_robots: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_aff_uris: Data: 0.19MB + Index: 0.17MB + Engine InnoDB wp_aff_user_agents: Data: 0.14MB + Index: 0.05MB + Engine InnoDB wp_commentmeta: Data: 0.28MB + Index: 0.27MB + Engine InnoDB wp_comments: Data: 6.52MB + Index: 2.59MB + Engine InnoDB wp_dokan_announcement: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_dokan_orders: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_dokan_refund: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_dokan_vendor_balance: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_dokan_withdraw: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_duplicator_packages: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_ff_scheduled_actions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_fluentform_entry_details: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_fluentform_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_fluentform_form_analytics: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_fluentform_form_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_fluentform_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_fluentform_submissions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_fluentform_submission_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_glsr_assigned_posts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_glsr_assigned_terms: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_glsr_assigned_users: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_glsr_ratings: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailchimp_carts: Data: 0.50MB + Index: 0.00MB + Engine InnoDB wp_mailchimp_jobs: Data: 0.11MB + Index: 0.00MB + Engine InnoDB wp_options: Data: 3.22MB + Index: 2.06MB + Engine InnoDB wp_pimwick_gift_card: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_pimwick_gift_card_activity: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_postmeta: Data: 171.70MB + Index: 79.17MB + Engine InnoDB wp_posts: Data: 35.56MB + Index: 13.09MB + Engine InnoDB wp_termmeta: Data: 0.08MB + Index: 0.11MB + Engine InnoDB wp_terms: Data: 0.05MB + Index: 0.03MB + Engine InnoDB wp_term_relationships: Data: 1.52MB + Index: 0.42MB + Engine InnoDB wp_term_taxonomy: Data: 0.05MB + Index: 0.03MB + Engine InnoDB wp_tinvwl_analytics: Data: 0.30MB + Index: 0.14MB + Engine InnoDB wp_tinvwl_items: Data: 0.25MB + Index: 0.00MB + Engine InnoDB wp_tinvwl_lists: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_usermeta: Data: 2.52MB + Index: 2.02MB + Engine InnoDB wp_users: Data: 0.14MB + Index: 0.14MB + Engine InnoDB wp_wc_admin_notes: Data: 0.08MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wp_wc_category_lookup: Data: 0.06MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Data: 0.23MB + Index: 0.16MB + Engine InnoDB wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_coupon_lookup: Data: 0.06MB + Index: 0.09MB + Engine InnoDB wp_wc_order_product_lookup: Data: 1.52MB + Index: 0.72MB + Engine InnoDB wp_wc_order_stats: Data: 1.52MB + Index: 0.39MB + Engine InnoDB wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 6.52MB + Index: 10.09MB + Engine InnoDB wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + 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_wdp_orders: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wdp_order_items: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wdp_rules: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wdr_order_discounts: Data: 0.20MB + Index: 0.00MB + Engine InnoDB wp_wdr_order_item_discounts: Data: 0.06MB + Index: 0.05MB + Engine InnoDB wp_wdr_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfblockediplog: Data: 0.02MB + 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: 10.52MB + Index: 0.00MB + Engine InnoDB wp_wfhits: Data: 1.02MB + Index: 0.05MB + 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: 4.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.28MB + Index: 0.09MB + 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.14MB + Index: 0.00MB + Engine InnoDB wp_woomotiv_custom_popups: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woomotiv_stats: Data: 0.30MB + Index: 0.00MB + Engine InnoDB wp_woo_shippment_provider: Data: 0.08MB + Index: 0.00MB + Engine InnoDB wp_wpam_actions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpam_affiliates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpam_affiliates_fields: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpam_creatives: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpam_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpam_impressions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpam_messages: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpam_paypal_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpam_tracking_tokens: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpam_tracking_tokens_purchase_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpam_transactions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpforms_entries: Data: 0.09MB + Index: 0.02MB + Engine InnoDB wp_wpforms_entry_fields: Data: 0.06MB + Index: 0.05MB + Engine InnoDB wp_wpforms_entry_meta: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wt_iew_action_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wt_iew_cron: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wt_iew_ftp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wt_iew_mapping_template: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yith_wcwl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yith_wcwl_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yoast_indexable: Data: 52.42MB + Index: 23.70MB + Engine InnoDB wp_yoast_indexable_hierarchy: Data: 2.52MB + Index: 3.81MB + Engine InnoDB wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yoast_primary_term: Data: 0.09MB + Index: 0.09MB + Engine InnoDB wp_yoast_seo_links: Data: 0.44MB + Index: 0.23MB + Engine InnoDB ### Post Type Counts ### attachment: 41794 customize_changeset: 2 e-landing-page: 2 elementor_library: 1 feedback: 5 gs_wps_cpt: 9 nav_menu_item: 402 oembed_cache: 13 page: 31 post: 1 product: 5349 product_variation: 42392 revision: 216 shop_coupon: 3 shop_order: 6352 shop_order_refund: 77 site-review: 28 sp_wps_shortcodes: 1 woocarousel: 1 wp_global_styles: 1 wpforms: 2 ### Security ### Secure connection (HTTPS):
</img></img> Hide errors from visitors:
</img></img> ### Active Plugins (32) ### Smart Custom 404 error page [404page]: by Peter Raschendorfer – 11.4.3 Affiliates WooCommerce Light: by itthinx – 1.16.0 Affiliates: by itthinx – 4.17.0 Classic Menu Block: by Jonathan Harris – 0.1.5 Duplicator: by Snap Creek – 1.5.1 Elementor: by Elementor.com – 3.10.1 GS Products Slider for WooCommerce Lite: by GS Plugins – 1.5.8 Jetpack: by Automattic – 11.7.1 AI Powered Marketing: by Kliken – 1.1.0 Mailchimp for WooCommerce: by Mailchimp – 2.7.6 Printify Shipping Method: by Printify – 2.7 PW WooCommerce Bulk Edit: by Pimwick LLC – 2.108 PW WooCommerce Gift Cards Pro: by Pimwick LLC – 1.423 Really Simple SSL: by Really Simple Plugins – 6.1.0 Site Reviews: by Paul Ryley – 6.4.1 TI WooCommerce Wishlist: by TemplateInvaders – 2.2.1 Woo Discount Rules PRO 2.0: by Flycart – 2.5.2 Woo Discount Rules: by Flycart – 2.5.3 WPC Product Bundles for WooCommerce (Premium): by WPClever – 7.0.1 WPC Product Bundles for WooCommerce: by WPClever – 7.0.1 Category Discount Woocommerce: by QuanticEdge – 4.7 WooCommerce Google Analytics Integration: by WooCommerce – 1.5.19 WooCommerce Sales By Location Report: by ChuckMac Development – 1.3.2 WooCommerce Shipping & Tax: by WooCommerce – 2.1.1 WooCommerce Square: by WooCommerce – 3.4.2 WooCommerce: by Automattic – 7.3.0 Wordfence Security: by Wordfence – 7.8.2 Yoast SEO: by Team Yoast – 19.14 WP Mail SMTP: by WPForms – 3.7.0 WP Snow Effect: by WPManiax – 1.1.15 WPForms: by WPForms – 1.7.9.1 YITH WooCommerce Quick View: by YITH – 1.23.0 ### Inactive Plugins (2) ### Woomotiv - Live Sales Notification for Woocommerce: by Sabri Taieb – 3.4.1 WP Content Copy Protection & No Right Click: by wp-buy – 3.5.2 ### Dropin Plugins (1) ### object-cache.php: Redis Object Cache Drop-In ### Must Use Plugins (1) ### EasyWP Plugin: by Namecheap Inc. – 1.0.1.1 ### 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) pw gift card (pw-gift-card) simple (simple) variable (variable) woosb (woosb) 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:
</img></img> Enforce Approved Product Download Directories: – Order datastore: WC_Order_Data_Store_CPT ### WC Pages ### Shop base: #5 - /shop/ Cart: #6 - /cart/ Checkout: #7 - /checkout/ My account: #8 - /my-account/ Terms and conditions: #3 - /privacy-policy/ ### Theme ### Name: Storefront Version: 4.2.0 Author URL: <a rel="noreferrer noopener" href="https://woocommerce.com/" target="_blank">https://woocommerce.com/</a> Child Theme:
</img></img> – 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:
</img></img> ### Templates ### Overrides: – ### Pimwick Plugins ### PW WooCommerce Gift Cards Pro: License key: PW-63a1f16ba7619 Result: success Cached: 2023-01-18 ### Square ### Environment: Production Tokenization Enabled: – Debug Mode: Off ### Admin ### Enabled Features: activity-panels analytics coupons customer-effort-score-tracks experimental-products-task experimental-import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing multichannel-marketing mobile-app-banner navigation onboarding onboarding-tasks remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page Disabled Features: minified-js new-product-management-experience settings Daily Cron:
</img></img> Next scheduled: 2023-01-18 22:07:23 -05:00 Options:
</img></img> Notes: 114 Onboarding: completed ### TI WooCommerce Wishlist Templates ### Overrides: – ### Action Scheduler ### Canceled: 108 Oldest: 2022-12-20 12:01:00 -0500 Newest: 2023-01-18 10:16:19 -0500 Complete: 19,514 Oldest: 2022-12-18 23:19:31 -0500 Newest: 2023-01-18 11:28:15 -0500 Failed: 780 Oldest: 2021-10-31 07:48:29 -0400 Newest: 2023-01-18 10:17:21 -0500 Pending: 10 Oldest: 2023-01-18 18:52:09 -0500 Newest: 2023-01-23 14:40:39 -0500 ### Status report information ### Generated at: 2023-01-18 11:56:39 -05:00
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
The topic ‘Critical Error On Website’ is closed to new replies.