• Resolved crownpoint

    (@crownpoint)


    I upgraded our staging site to PHP8, using sandbox mode of your plugin. I have been able to transact for a few years in sandbox mode on our staging site. After upgrading to PHP8, On the frontend, when I submit, I get an “internal server error.” Looking in the logs, I see an error that begins with: The magic method WC_Cardpay_Authnet::__wakeup() must have public visibility.

    I’m not sure how to proceed.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author cardpaysolutions

    (@cardpaysolutions)

    We just released an update to address this issue. Let us know if you encounter any other problems after updating to the latest version. Thanks.

    Thread Starter crownpoint

    (@crownpoint)

    Thanks, I’m still getting an internal server error, along with a new PHP message: PHP Warning: Illegal string offset ‘transaction_type’ in /wp-content/plugins/authnet-cim-for-woo/includes/class-wc-cardpay-authnet-gateway.php on line 358 in the logs.

    It appears the order is submitting to WooCommerce, but not clearing out the cart and not showing that the transaction has completed on the frontend.

    Plugin Author cardpaysolutions

    (@cardpaysolutions)

    Hello. We did some testing with PHP 8.0 and were unable to reproduce this error. Please let us know if you have any additional details that might help us identify the issue.

    Thread Starter crownpoint

    (@crownpoint)

    We have store configuration with plugins like WooCommerce Deposits, but it’s been working fine. Dev site at https://staging-polyguardcovers.kinsta.cloud/shop/.

    Full error is below, except I edited the paths for security reasons. I have no idea how to troubleshoot this.

    FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /wp-content/plugins/authnet-cim-for-woo/includes/class-wc-cardpay-authnet-gateway.php:358
    Stack trace:
    #0 /wp-content/plugins/authnet-cim-for-woo/woocommerce-cardpay-authnet.php(158): WC_Cardpay_Authnet_Gateway->process_capture(7993)
    #1 /wp-includes/class-wp-hook.php(309): WC_Cardpay_Authnet->process_capture(7993)
    #2 /wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #3 /wp-includes/plugin.php(476): WP_Hook->do_action(Array)
    #4 /wp-content/plugins/woocommerce/includes/class-wc-order.php(364): do_action('woocommerce_ord...', 7993, Object(WCDP_Payment))
    #5 /wp-content/plugins/woocommerce/includes/class-wc-order.php(222): WC_Order->status_transition()
    #6 while reading response header from upstream, client: 2607:fb91:1189:4a6f:49f3:49b3:5d8f:a72e, server: staging-polyguardcovers.kinsta.cloud, request: "POST /?wc-ajax=checkout HTTP/1.1", upstream: "fastcgi://unix:/var/run/php8.0-fpm-polyguardcovers.sock:", host: "staging-polyguardcovers.kinsta.cloud:19096", referrer: "https://staging-polyguardcovers.kinsta.cloud/checkout/"
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error when upgrading to PHP 8’ is closed to new replies.