same need ; that’s a big big problem that it don’t work with php8
please hope you will answer quickly
thanks in advance
2 Solutions
Solution 1:
In wp_cassify configuration, add a false url in “White List URL(s)”
Solution 2:
To make it works you need to modify one file
wp-cassify/classes/wp_cassify_plugin.php
insert line 1138 : if (trim($wp_cassify_redirect_url_white_list)!==”) {
and line 1147 : }
The function should look like this
private function wp_cassify_is_in_while_list( $url ) {
$is_in_while_list = false;
$wp_cassify_redirect_url_white_list = WP_Cassify_Utils::wp_cassify_get_option( $this->wp_cassify_network_activated, 'wp_cassify_redirect_url_white_list' );
if (trim($wp_cassify_redirect_url_white_list)!=='') {
$white_list_urls = explode( ';', $wp_cassify_redirect_url_white_list );
if ( ( is_array( $white_list_urls ) ) && ( count( $white_list_urls ) > 0 ) ){
foreach( $white_list_urls as $white_url ) {
if ( strrpos( $url, $white_url, -strlen( $url ) ) !== false ) {
$is_in_while_list = true;
}
}
}
}
return $is_in_while_list;
}
-
This reply was modified 1 year, 11 months ago by
franck86.
Hi,
The wp-cassify plugin version 2.3.2 is now compatible with PHP 8 and remains compatible with PHP 7.
Cheers