Title: PHP Fatal Errors, Warnings &#8211; PHP8
Last modified: May 23, 2021

---

# PHP Fatal Errors, Warnings – PHP8

 *  Resolved [tonyclemmey](https://wordpress.org/support/users/tonyclemmey/)
 * (@tonyclemmey)
 * [5 years ago](https://wordpress.org/support/topic/php-fatal-errors-warnings-php8/)
 * 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](https://wordpress.org/support/article/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](https://wordpress.org/support/users/joshbedford/)
 * (@joshbedford)
 * [5 years ago](https://wordpress.org/support/topic/php-fatal-errors-warnings-php8/#post-14475220)
 * Hi [@tonyclemmey](https://wordpress.org/support/users/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
 *  [theboywonder1](https://wordpress.org/support/users/theboywonder1/)
 * (@theboywonder1)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/php-fatal-errors-warnings-php8/#post-14578536)
 * 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](https://wordpress.org/support/users/joshbedford/)
 * (@joshbedford)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/php-fatal-errors-warnings-php8/#post-14578729)
 * Hi [@theboywonder1](https://wordpress.org/support/users/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.

 * ![](https://s.w.org/plugins/geopattern-icon/secure-trading-gateway-for-woocommerce_d4adba.
   svg)
 * [Trust Payments Gateway for WooCommerce](https://wordpress.org/plugins/secure-trading-gateway-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/secure-trading-gateway-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/secure-trading-gateway-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/secure-trading-gateway-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/secure-trading-gateway-for-woocommerce/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [Josh Bedford](https://wordpress.org/support/users/joshbedford/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/php-fatal-errors-warnings-php8/#post-14578729)
 * Status: resolved