• Resolved tonyclemmey

    (@tonyclemmey)


    Hi,

    Please see below PHP Notices, Warnings and Fatal errors in WP debug when testing “test_” mode, using PHP8, WP v5.7.2 and Trust Payments 3.0.5.

    ——————————————–
    PHP Notice: wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.) in /public_html/wp-includes/functions.php on line 5313

    PHP Warning: Undefined array key “wc-st_gateway-payment-token” in /public_html/wp-content/plugins/secure-trading-gateway-for-woocommerce/classes/class-wc-st-gateway.php on line 804

    PHP Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /public_html/wp-content/plugins/secure-trading-gateway-for-woocommerce/vendor/securetrading/stpp_json/src/AbstractRequest.php:20
    ——————————————–

    As well as the above I can see the printed HTML on the order received page still shows HTML <br> tags as opposed to being correctly rendered.

    “Payment<br>Last 4 digits of card used: 2701<br>Card Type: VISA”

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

    (@joshbedford)

    Hi @tonyclemmey, this plugin hasn’t been tested with PHP8. However we have a new plugin (currently undergoing UAT with Trust Payments) which supports this as well as 3DSv2 payments. We will hopefully be due for release on the new version within a month.

    Thanks

    When will support for 3DSv2 be available.

    We get the following error currently:

    Fatal error: Uncaught Error: Call to a member function get_total() on bool in /var/www/html/wp-content/plugins/secure-trading-gateway-for-woocommerce/classes/class-wc-st-gateway.php:1570 Stack trace: #0 /var/www/html/wp-includes/class-wp-hook.php(287): WC_ST_Gateway->secure_3d_process_response('') #1 /var/www/html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array) #2 /var/www/html/wp-includes/plugin.php(484): WP_Hook->do_action(Array) #3 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-api.php(161): do_action('woocommerce_api...') #4 /var/www/html/wp-includes/class-wp-hook.php(287): WC_API->handle_api_requests(Object(WP)) #5 /var/www/html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #6 /var/www/html/wp-includes/plugin.php(551): WP_Hook->do_action(Array) #7 /var/www/html/wp-includes/class-wp.php(388): do_action_ref_array('parse_request', Array) #8 /var/www/html/wp-includes/class-wp.php(745): WP->parse_request('') #9 /var/www/html/wp-includes/functions.php(1291): W in /var/www/html/wp-content/plugins/secure-trading-gateway-for-woocommerce/classes/class-wc-st-gateway.php on line 1570
    There has been a critical error on this website.
    
    Learn more about debugging in WordPress.
    Plugin Author Josh Bedford

    (@joshbedford)

    Hi @theboywonder1, the updates to 3DSv2 support are still with Trust Payments for UAT but we hope to have the go-ahead for release very soon. Apologies for the wait.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Fatal Errors, Warnings – PHP8’ is closed to new replies.