• Resolved tinpeas

    (@tinpeas)


    Hi Guys

    I would like to report an issue with the Square plugin. I tried to sort this with WooCommerce support yesterday but didn’t get anywhere. I/they also posted the issue on Codeable but I didn’t get a response on there.

    I have therefore got my server support team to look at the issue. The issue is that a Square payment is taking far to long to complete an order, the spinner goes round for ages.

    Following the investigation this is what the support team have come up with:

    “We have made an amendment to your open_basedir setting in Plesk for our domains?and you may wish to test, but further checks here would indicate it appears to be a problem with the woocommerce-square plugin looking in an incorrect place for a php.ini file. This seems to have occurred since an update to that plugin, and doesn’t appear to be a server issue as such.

    Its possible that the plugin is not compatible with PHP 8 and we would recommend that you check and raise the issue directly with the software vendor here, rather than Square directly as I cannot see it a Square issue but a plugin issue:?

    [Tue Apr 25 13:38:43.721514 2023] [proxy_fcgi:error] [pid 28848:tid 140471695279872] [client 185.158.243.21:49234] AH01071: Got error ‘PHP message: PHP Warning: parse_ini_file(): open_basedir restriction in effect. File(/opt/plesk/php/8.0/etc/php.ini) is not within the allowed path(s): (/var/www/vhosts/domain-removed-for-privacy/:/tmp/) in /var/www/vhosts/domain-removed-for-privacy/httpdocs/wp-content/plugins/woocommerce-square/vendor/apimatic/jsonmapper/src/JsonMapper.php on line 119PHP”

    The server guys have also asked if you could advise any further configuration that could help

    Can this please be investigated as I have run out of ideas for a solution and the problem is effecting multiple websites. I have ruled out a plugin/theme conflict.

    Thanks in advance.

    Cheers

    Gary

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @tinpeas

    Thanks for reaching out!

    I am sorry to hear that you are having issues with the Square plugin wherein payment is taking too long to complete an order and the spinner goes round for ages.

    Can you please provide further information about your issue here? Does this happen to all products on your site? Do you see any patterns or similarities about this issue?

    If a screenshot would be helpful, I’d recommend using https://snipboard.io. You can share the direct link to the image as a response to this topic.

    Meanwhile, I replicated the scenario on my personal site running on the default Storefront theme, however, I am unable to reproduce the issue on my end. I am able to process an order using Square’s Sandbox Mode.

    For us to investigate this further, can you please try to switch to the default Storefront theme and only WooCommerce and Square plugins are enabled and see if you are able to place an order successfully?

    If so, then this kind of problem is usually caused by your theme or a third-party plugin present on your site. We can run a conflict test to verify this. I’d recommend cloning your site to a staging environment and performing the tests described on this guide 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.

    If this was caused by a third-party plugin present on your site, it would be best to reach out to the developers for further assistance here.

    If this did not resolve the issue, please share your System Status Report, that will help us further troubleshoot.

    You can find it via WooCommerce > Status. Select Get system report and then Copy for support. Once you’ve done that, you can paste it into your reply here.

    If you could also provide the fatal error logs (if any) under WooCommerce > Status > Logs.

    You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.

    Let us know how it goes!

    Thread Starter tinpeas

    (@tinpeas)

    Hi @xue28

    I have tried the Storefront theme with everything disabled apart from WooCommerce and Square but I get the same result.

    The order does complete but it just takes ages, the sandbox did not work at all but normal payments appear to work all be it slowly.

    I have already spoke to WooCommerce support twice, they put me on to Codeable where I got no response.

    WooCommerce support already checked out the hosting, it’s a dedicated box with loads of RAM and solid state drives. Every site has a huge amount of resources allocated to it. The sites themselves are very fast, it’s just the Square checkout that is an issue, it was fine and now it’s not.

    As I said in my post this is happening on multiple sites, with a different setups.

    I can see no errors in the WooCommerce logs, it’s all a bit frustrating as as I feel like I’ve got nowhere to go with this, the server guys say it’s the plugin and you guys say everything is fine.

    Anyway, not sure where to go from here other than advising clients to switch payment provider.

    Thanks for your help so far.

    Cheers

    Gary

    Hi Gary,

    So sorry to hear that.

    It would be great if you share your System Status Report, found under WooCommerce > Status, on your site.

    You can navigate to WooCommerce > System Status > Logs to see if there are errors generated, if so, let us know what you find.

    That will provide us more information to investigate.

    Thomas Jarvis

    (@thomasjarvisdesign)

    I am getting the exact same error code in Plesk since moving a website to the live environment for a client.

    There appears to be a compatibility problem with the latest Square payments plugin and Plesk Servers. This is an error as described on line 119

    /var/www/vhosts/domain-removed-for-privacy/httpdocs/wp-content/plugins/woocommerce-square/vendor/apimatic/jsonmapper/src/JsonMapper.php on line 119

    WordPress Environment
    
    WordPress address (URL): https://www.hirekaraoke.co.uk
    Site address (URL): https://www.hirekaraoke.co.uk
    WC Version: 7.7.2
    REST API Version: ? 7.7.2
    WC Blocks Version: ? 10.0.6
    Action Scheduler Version: ? 3.5.4
    Log Directory Writable: ?
    WP Version: 6.2.2
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    External object cache: –
    
    Server Environment
    
    Server Info: Apache
    PHP Version: 8.0.28
    PHP Post Max Size: 16 MB
    PHP Time Limit: 120
    PHP Max Input Vars: 3000
    cURL Version: 7.81.0
    OpenSSL/3.0.2
    
    SUHOSIN Installed: –
    MySQL Version: 10.6.12-MariaDB-0ubuntu0.22.04.1
    Max Upload Size: 16 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    Database
    
    WC Database Version: 7.7.2
    WC Database Prefix: LkxroSS_
    Total Database Size: 23.26MB
    Database Data Size: 20.09MB
    Database Index Size: 3.17MB
    LkxroSS_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    LkxroSS_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    LkxroSS_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    LkxroSS_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    LkxroSS_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    LkxroSS_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    LkxroSS_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    LkxroSS_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    LkxroSS_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    LkxroSS_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    LkxroSS_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    LkxroSS_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    LkxroSS_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    LkxroSS_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    LkxroSS_actionscheduler_actions: Data: 0.09MB + Index: 0.11MB + Engine InnoDB
    LkxroSS_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    LkxroSS_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    LkxroSS_actionscheduler_logs: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    LkxroSS_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    LkxroSS_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    LkxroSS_email_log: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    LkxroSS_ewwwio_images: Data: 0.39MB + Index: 0.25MB + Engine InnoDB
    LkxroSS_ewwwio_queue: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    LkxroSS_gdpr_cc_options: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    LkxroSS_layerslider_drafts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    LkxroSS_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    LkxroSS_options: Data: 3.41MB + Index: 0.16MB + Engine InnoDB
    LkxroSS_ph_bookings_availability_calculation_data: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    LkxroSS_pmxe_exports: Data: 0.03MB + Index: 0.00MB + Engine InnoDB
    LkxroSS_pmxe_google_cats: Data: 0.38MB + Index: 0.00MB + Engine InnoDB
    LkxroSS_pmxe_posts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    LkxroSS_pmxe_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    LkxroSS_pmxi_files: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    LkxroSS_pmxi_hash: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    LkxroSS_pmxi_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    LkxroSS_pmxi_images: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    LkxroSS_pmxi_imports: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    LkxroSS_pmxi_posts: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    LkxroSS_pmxi_templates: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    LkxroSS_postmeta: Data: 7.52MB + Index: 0.48MB + Engine InnoDB
    LkxroSS_posts: Data: 4.52MB + Index: 0.13MB + Engine InnoDB
    LkxroSS_sbi_feeds: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    LkxroSS_sbi_feed_caches: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    LkxroSS_sbi_instagram_feeds_posts: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    LkxroSS_sbi_instagram_feed_locator: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    LkxroSS_sbi_instagram_posts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    LkxroSS_sbi_sources: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    LkxroSS_shortpixel_queue: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    LkxroSS_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    LkxroSS_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    LkxroSS_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    LkxroSS_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    LkxroSS_tm_taskmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    LkxroSS_tm_tasks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    LkxroSS_usermeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    LkxroSS_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    LkxroSS_wcpdf_invoice_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    LkxroSS_wcpdf_packing_slip_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    LkxroSS_wc_admin_notes: Data: 0.08MB + Index: 0.00MB + Engine InnoDB
    LkxroSS_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    LkxroSS_wc_bookings_availability: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    LkxroSS_wc_bookings_availabilitymeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    LkxroSS_wc_booking_relationships: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    LkxroSS_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    LkxroSS_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    LkxroSS_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    LkxroSS_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    LkxroSS_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    LkxroSS_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    LkxroSS_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    LkxroSS_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    LkxroSS_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    LkxroSS_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    LkxroSS_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    LkxroSS_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    LkxroSS_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    LkxroSS_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    LkxroSS_wfpklist_template_data: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    LkxroSS_woocommerce_square_customers: Data: 0.14MB + Index: 0.00MB + Engine InnoDB
    LkxroSS_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    LkxroSS_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    LkxroSS_wpr_rocket_cache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    LkxroSS_wpr_rucss_used_css: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    LkxroSS_yoast_indexable: Data: 0.11MB + Index: 0.09MB + Engine InnoDB
    LkxroSS_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    LkxroSS_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    LkxroSS_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    LkxroSS_yoast_seo_links: Data: 0.17MB + Index: 0.11MB + Engine InnoDB
    
    Post Type Counts
    
    attachment: 216
    avia_framework_post: 10
    bookable_resource: 6
    flamingo_contact: 3
    nav_menu_item: 37
    page: 53
    post: 19
    product: 11
    shop_order: 3
    shop_order_refund: 1
    tm_global_cp: 5
    wc_booking: 282
    wp_global_styles: 1
    wpcf7_contact_form: 1
    
    Security
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    Active Plugins (21)
    
    WPElite Plugins Updater: by WPElitePlugins – 1.0.2
    Auto Image Attributes From Filename With Bulk Updater: by Arun Basil Lal – 4.3.1
    Crisp: by Crisp – 0.43
    Email Log: by Sudar – 2.4.8
    EWWW Image Optimizer: by Exactly WWW – 7.0.2
    GDPR Cookie Compliance: by Moove Agency – 4.12.3
    reCAPTCHA for WooCommerce: by WPElitePlugins – 1.2.0
    Regenerate Thumbnails Advanced: by ShortPixel – 2.4.1
    User Role Editor: by Vladimir Garagulya – 4.63.3
    WooCommerce Bookings: by WooCommerce – 1.16.0
    PDF Invoices & Packing Slips for WooCommerce: by WP Overnight – 3.5.5
    WooCommerce Square: by WooCommerce – 3.8.3
    Extra Product Options & Add-Ons for WooCommerce: by ThemeComplete – 6.3.2
    WooCommerce: by Automattic – 7.7.2
    WordPress Importer: by wordpressdotorg – 0.8.1
    Yoast SEO: by Team Yoast – 20.8
    WP Mail SMTP: by WP Mail SMTP – 3.8.0
    WP Rocket | Disable Google Font Optimization: by WP Rocket Support Team –
    WP Rocket: by WP Media – 3.13.4
    WPS Hide Login: by WPServeur
    NicolasKulka
    wpformation – 1.9.8
    
    WPS Limit Login: by WPServeur
    NicolasKulka
    wpformation – 1.5.6
    
    Inactive Plugins (10)
    
    Better Search Replace: by WP Engine – 1.4.2
    Contact Form 7: by Takayuki Miyoshi – 5.7.7
    Flamingo: by Takayuki Miyoshi – 2.4
    Honeypot for Contact Form 7: by Nocean – 2.1.1
    Smash Balloon Instagram Feed: by Smash Balloon – 6.1.5
    WP-Optimize - Clean, Compress, Cache: by David Anderson
    Ruhani Rabin
    Team Updraft – 3.2.15
    
    WP All Export - WooCommerce Export Add-On Pro: by Soflyy – 1.0.6
    WP All Export Pro: by Soflyy – 1.8.3
    WP All Import - WooCommerce Import Add-On Pro: by Soflyy – 3.3.4
    WP All Import Pro: by Soflyy – 4.8.0
    
    Dropin Plugins (2)
    
    advanced-cache.php: advanced-cache.php
    maintenance.php: maintenance.php
    
    Settings
    
    API Enabled: –
    Force SSL: –
    Currency: GBP (£)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: booking (booking)
    external (external)
    grouped (grouped)
    phive_booking (phive_booking)
    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: –
    Enforce Approved Product Download Directories: ?
    HPOS feature screen enabled: –
    HPOS feature enabled: –
    Order datastore: WC_Order_Data_Store_CPT
    HPOS data sync enabled: –
    
    WC Pages
    
    Shop base: #59 - /book-karaoke-hire-online/
    Cart: #60 - /cart/
    Checkout: #61 - /checkout/
    My account: #62 - /my-account/
    Terms and conditions: #3 - /karaoke-and-disco-equipment-hire-terms-and-conditionskaraoke-and-disco-e/
    
    Theme
    
    Name: thinkjarvis
    Version: 1.0
    Author URL: https://www.thomasjarvisdesign.co.uk
    Child Theme: ?
    Parent Theme Name: Enfold
    Parent Theme Version: 5.6.2
    Parent Theme Author URL: https://kriesi.at
    WooCommerce Support: ?
    
    Templates
    
    Overrides: thinkjarvis/checkout/form-shipping.php
    
    Templates
    
    Overrides: thinkjarvis/woocommerce-bookings/emails/customer-booking-confirmed.php
    
    Square
    
    Environment: Production
    Tokenization Enabled: –
    Debug Mode: Off
    
    Admin
    
    Enabled Features: activity-panels
    analytics
    coupons
    customer-effort-score-tracks
    import-products-task
    experimental-fashion-sample-products
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    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: product-block-editor
    minified-js
    new-product-management-experience
    product-variation-management
    settings
    
    Daily Cron: ? Next scheduled: 2023-06-09 08:36:13 +01:00
    Options: ?
    Notes: 116
    Onboarding: completed
    
    Action Scheduler
    
    Canceled: 1
    Oldest: -0001-11-29 23:58:45 -0001
    Newest: -0001-11-29 23:58:45 -0001
    
    Complete: 200
    Oldest: 2023-05-09 07:31:34 +0100
    Newest: 2023-06-08 22:50:23 +0100
    
    Pending: 11
    Oldest: 2023-06-08 22:50:04 +0100
    Newest: 2023-06-15 21:22:10 +0100
    
    Status report information
    
    Generated at: 2023-06-08 22:58:46 +01:00
    `
    Thomas Jarvis

    (@thomasjarvisdesign)

    Following on from the above message.

    This error occurs when logged in to WordPress and does not seem to occur when viewing the front end.

    Our server is a beast. Its an 8 core vps with 24gb of ram and plenty of spare storage space.

    Plesk is flagging the error with the default setup.

    Hi, @thomasjarvisdesign

    Thank you for taking this to our attention.

    Please create your own thread for your issue – https://www.ads-software.com/support/plugin/woocommerce-square//#new-topic-0. I understand the issue could be the same, however your site configuration could be different and might require a different troubleshooting steps.

    https://www.ads-software.com/support/forum-user-guide/faq/#i-have-the-same-problem-can-i-just-reply-to-someone-elses-post-with-me-too

    We’ll be happy to help.

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