• Hi,

    I noticed that the plugin generates a Fatal Error on pretty much every call it does to MailerLite.

    The following seems to be the culprit in /includes/crm-library/class-crmlib-mailerlite.php:87

    if ( is_wp_error( $result ) || 200 !== $result_code ) {

    $message = 'Error: ' . $result->get_error_message() . ' ';

    if ( ! empty( $api_data['error'] ) && is_array( $api_data['error'] ) ) {

    foreach ( $api_data['error'] as $key => $value ) {

    $message .= $key . ': ' . $value . ' ';

    }

    }

    formscrm_error_admin_message( 'ERROR', $message );

    return array(

    'status' => 'error',

    'data' => $message,

    );

    } else {

    return array(

    'status' => 'ok',

    'data' => $api_data,

    );

    }

    Could you remove the part where it checks for a 200 result code? A results code anywhere between 200-299 could be a success code, yet it would still check for an error message, which doesn’t work.

    Thanks in advance!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.