• Resolved hishams

    (@hishams)


    Hi,

    I am getting a fatal error in the checkout when using the Dojo for Woocommerce plugin, it seems like it might be related to PHP 8 compatibility as it works and proceeds to the card payment fine on php7.4

    Fatal error: Uncaught TypeError: Unsupported operand types: string * int in /mnt/www/limetree.affinityagency.co.uk/www/wp-content/plugins/dojo-for-woocommerce/includes/class-wc-dojo-checkout.php:1051 Stack trace: #0 /mnt/www/limetree.affinityagency.co.uk/www/wp-content/plugins/dojo-for-woocommerce/includes/class-wc-dojo-checkout.php(1000): WC_Dojo->get_order_items() #1 /mnt/www/limetree.affinityagency.co.uk/www/wp-content/plugins/dojo-for-woocommerce/includes/class-wc-dojo-checkout.php(1256): WC_Dojo->build_request_create_payment_intent() #2 /mnt/www/limetree.affinityagency.co.uk/www/wp-content/plugins/dojo-for-woocommerce/includes/class-wc-dojo-checkout.php(216): WC_Dojo->show_payment_form() #3 /mnt/www/limetree.affinityagency.co.uk/www/wp-includes/class-wp-hook.php(308): WC_Dojo->receipt_page() #4 /mnt/www/limetree.affinityagency.co.uk/www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #5 /mnt/www/limetree.affinityagency.co.uk/www/wp-includes/plugin.php(517): WP_Hook->do_action() #6 /mnt/www/limetree.affinityagency.co.uk/www/wp-content/plugins/woocommerce/templates/checkout/order-receipt.php(44): do_action() #7 /mnt/www/limetree.affinityagency.co.uk/www/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('...') #8 /mnt/www/limetree.affinityagency.co.uk/www/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php(231): wc_get_template() #9 /mnt/www/limetree.affinityagency.co.uk/www/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php(59): WC_Shortcode_Checkout::order_pay() #10 /mnt/www/limetree.affinityagency.co.uk/www/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(72): WC_Shortcode_Checkout::output() #11 /mnt/www/limetree.affinityagency.co.uk/www/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(95): WC_Shortcodes::shortcode_wrapper() #12 /mnt/www/limetree.affinityagency.co.uk/www/wp-includes/shortcodes.php(355): WC_Shortcodes::checkout() #13 [internal function]: do_shortcode_tag() #14 /mnt/www/limetree.affinityagency.co.uk/www/wp-includes/shortcodes.php(227): preg_replace_callback() #15 /mnt/www/limetree.affinityagency.co.uk/www/wp-includes/class-wp-hook.php(308): do_shortcode() #16 /mnt/www/limetree.affinityagency.co.uk/www/wp-includes/plugin.php(205): WP_Hook->apply_filters() #17 /mnt/www/limetree.affinityagency.co.uk/www/wp-includes/post-template.php(255): apply_filters() #18 /mnt/www/limetree.affinityagency.co.uk/www/wp-content/themes/limetree/parts/global/cms-content.php(2): the_content() #19 /mnt/www/limetree.affinityagency.co.uk/www/wp-content/themes/limetree/functions/site-functions.php(64): include('...') #20 /mnt/www/limetree.affinityagency.co.uk/www/wp-content/themes/limetree/page-checkout.php(9): get_template_part_vars() #21 /mnt/www/limetree.affinityagency.co.uk/www/wp-includes/template-loader.php(106): include('...') #22 /mnt/www/limetree.affinityagency.co.uk/www/wp-blog-header.php(19): require_once('...') #23 /mnt/www/limetree.affinityagency.co.uk/www/index.php(17): require('...') #24 {main} thrown in /mnt/www/limetree.affinityagency.co.uk/www/wp-content/plugins/dojo-for-woocommerce/includes/class-wc-dojo-checkout.php on line 1051

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author dojopayments

    (@dojopayments)

    Hi @hishams ??
    Thank you for bringing this to our attention. We suspect that the issue you’re encountering may indeed be related to PHP 8 compatibility. We are looking into this and are committed to resolving this as quickly as possible.

    In the meantime, we recommend downgrading your PHP version to 7.4 temporarily.

    We understand that this is not an ideal solution, and we appreciate your patience as we work to make our plugin fully compatible with PHP 8. As soon as we have a plugin update, we’ll make sure to inform you.

    Thanks from the team at Dojo

    Thread Starter hishams

    (@hishams)

    Thank you for getting back,

    Our client would prefer not to downgrade the PHP version and is asking for a rough estimate of when they can expect to use the updated version

    Thanks

    Plugin Author dojopayments

    (@dojopayments)

    Hi @hishams ??

    Apologies for the delay. Unfortunately, I haven’t been able to recreate this issue using PHP 8.2.6. Can we please take this issue private by emailing [email protected]? We can troubleshoot this issue privately, as it may be specific to your client’s site.

    Thanks from the team at Dojo

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error (Uncaught TypeError: Unsupported operand types: string * int)’ is closed to new replies.