modify function pro_license_test() to the following code, should fix the problem.I removed the update I added![]()
public function pro_license_test() {
check_ajax_referer( 'health-check-site-status' );
if ( ! current_user_can( 'view_site_health_checks' ) ) {
wp_send_json_error();
}
$result = array(
'label' => esc_html__( 'WP Mail SMTP Pro license is active and valid', 'wp-mail-smtp-pro' ),
'status' => 'good',
'badge' => array(
'label' => wp_mail_smtp()->get_site_health()->get_label(),
'color' => \WPMailSMTP\SiteHealth::BADGE_COLOR,
),
'description' => '',
'actions' => sprintf(
'<p><a href="%s">%s</a></p>',
esc_url( wp_mail_smtp()->get_admin()->get_admin_page_url() ),
esc_html__( 'View license setting', 'wp-mail-smtp-pro' )
),
'test' => 'wp_mail_smtp_pro_license_check',
);
$license_status = wp_mail_smtp()->pro->get_license()->get_status();
$result['description'] = $license_status['message'];
if ( $license_status['valid'] === false ) {
$result = array(
'label' => esc_html__( 'WP Mail SMTP Pro license is active and valid', 'wp-mail-smtp-pro' ),
'status' => 'good',
'badge' => array(
'label' => wp_mail_smtp()->
get_site_health()->get_label(),
'color' => \WPMailSMTP\SiteHealth::BADGE_COLOR,
),
'description' => '',
'actions' => sprintf(
'<p><a href="%s">%s</a></p>>',
esc_url( wp_mail_smtp()->get_admin()->get_admin_page_url() ),
esc_html__( 'View license setting', 'wp-mail-smtp-pro' )
),
'test' => 'wp_mail_smtp_pro_license_check',
);
}
wp_send_json_success( $result );
}
yeah its true in me tooThe plugin (3.5.2) crashed instantly on installation. There is a serious problem with this version. I suggest that no one set up the plugin.
Edit: Php code worked. Problem seems to be fixed. Thank you.
/src/Pro/SiteHealth.php:110-158
Work! Thanks)modify function pro_license_test() to the following code, should fix the problem.
/src/Pro/SiteHealth.php:110-158
PHP:public function pro_license_test() { check_ajax_referer( 'health-check-site-status' ); if ( ! current_user_can( 'view_site_health_checks' ) ) { wp_send_json_error(); } $result = array( 'label' => esc_html__( 'WP Mail SMTP Pro license is active and valid', 'wp-mail-smtp-pro' ), 'status' => 'good', 'badge' => array( 'label' => wp_mail_smtp()->get_site_health()->get_label(), 'color' => \WPMailSMTP\SiteHealth::BADGE_COLOR, ), 'description' => '', 'actions' => sprintf( '<p><a href="%s">%s</a></p>', esc_url( wp_mail_smtp()->get_admin()->get_admin_page_url() ), esc_html__( 'View license setting', 'wp-mail-smtp-pro' ) ), 'test' => 'wp_mail_smtp_pro_license_check', ); $license_status = wp_mail_smtp()->pro->get_license()->get_status(); $result['description'] = $license_status['message']; if ( $license_status['valid'] === false ) { $result = array( 'label' => esc_html__( 'WP Mail SMTP Pro license is active and valid', 'wp-mail-smtp-pro' ), 'status' => 'good', 'badge' => array( 'label' => wp_mail_smtp()-> get_site_health()->get_label(), 'color' => \WPMailSMTP\SiteHealth::BADGE_COLOR, ), 'description' => '', 'actions' => sprintf( '<p><a href="%s">%s</a></p>>', esc_url( wp_mail_smtp()->get_admin()->get_admin_page_url() ), esc_html__( 'View license setting', 'wp-mail-smtp-pro' ) ), 'test' => 'wp_mail_smtp_pro_license_check', ); } wp_send_json_success( $result ); }
You just need to modify a file according to my post above and it will work normally.Can someone upload newest and fixed error version ?
Yes but someone deleted v3.5.2 from Download tab. Can u reup that with your fixed ?You just need to modify a file according to my post above and it will work normally.
can u give me your edited versionmodify function pro_license_test() to the following code, should fix the problem.
/src/Pro/SiteHealth.php:110-158
PHP:public function pro_license_test() { check_ajax_referer( 'health-check-site-status' ); if ( ! current_user_can( 'view_site_health_checks' ) ) { wp_send_json_error(); } $result = array( 'label' => esc_html__( 'WP Mail SMTP Pro license is active and valid', 'wp-mail-smtp-pro' ), 'status' => 'good', 'badge' => array( 'label' => wp_mail_smtp()->get_site_health()->get_label(), 'color' => \WPMailSMTP\SiteHealth::BADGE_COLOR, ), 'description' => '', 'actions' => sprintf( '<p><a href="%s">%s</a></p>', esc_url( wp_mail_smtp()->get_admin()->get_admin_page_url() ), esc_html__( 'View license setting', 'wp-mail-smtp-pro' ) ), 'test' => 'wp_mail_smtp_pro_license_check', ); $license_status = wp_mail_smtp()->pro->get_license()->get_status(); $result['description'] = $license_status['message']; if ( $license_status['valid'] === false ) { $result = array( 'label' => esc_html__( 'WP Mail SMTP Pro license is active and valid', 'wp-mail-smtp-pro' ), 'status' => 'good', 'badge' => array( 'label' => wp_mail_smtp()-> get_site_health()->get_label(), 'color' => \WPMailSMTP\SiteHealth::BADGE_COLOR, ), 'description' => '', 'actions' => sprintf( '<p><a href="%s">%s</a></p>>', esc_url( wp_mail_smtp()->get_admin()->get_admin_page_url() ), esc_html__( 'View license setting', 'wp-mail-smtp-pro' ) ), 'test' => 'wp_mail_smtp_pro_license_check', ); } wp_send_json_success( $result ); }
Check it as I edited and updated on 3 sites.can u give me your edited version
attach here thanks so much
Download WP Mail SMTP Pro v3.5.2 Nulled Free
Big Thanks To @ayyaz