Hi @antlesma
I hope you are doing well.
Can you please try the following code:
<?php
/**
* Plugin Name: [Forminator Pro] Replace statement_descriptor
* Description: Quick fix to replace statement_descriptor with
* Author URI: https://wpmudev.com
* License: GPLv2 or later
*
* @package WordPress
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
add_action( 'plugins_loaded', 'replace_statement_descriptor_in_stripe_library' );
function replace_statement_descriptor_in_stripe_library() {
// File containing the async request class.
$file = WP_PLUGIN_DIR . '/forminator/library/fields/stripe.php';
// Check if async request file exists.
if ( ! file_exists( $file ) ) {
return;
}
// Get the file contents.
$content = file_get_contents( $file );
// Check if we have content.
if ( ! $content ) {
return;
}
// Change statement_descriptor to statement_descriptor_suffix.
$new_content = str_replace( "['statement_descriptor']", "['statement_descriptor_suffix']", $content );
// Update only if content changed.
if ( $new_content !== $content ) {
file_put_contents( $file, $new_content );
}
}
as a mu-plugin https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/, please test it first on a Staging site.
This is a known situation and our developers will be working on some improvements.
Let us know the result you got.
Best Regards
Patrick Freitas
Hello @antlesma ,
It looks like my colleague’s code helped solve your issue as we haven’t heard back from you for some time now.
I will resolve this topic, but if you have more questions feel free to re-open it.
kind regards,
Kasia
Hello,
I have the same issue. Is It fixed with the latest update since then?
Btw the patch is working on my site.
Kind regards,
Gábor
-
This reply was modified 2 years, 3 months ago by
gaborbolla.
Hi @gaborbolla
The fix is not yet included. Please stay tune to our roadmap: https://wpmudev.com/roadmap/
As for now we suggest to use above snippet shared by Patrick.
Kind Regards,
Kris