Support » Plugin: Mailjet Email Marketing » error when clicking on the mailjet button

  • Hello,

    I have a problem with the mailjet wordpress plugin.
    When clicking on the mailjet button(on the admin toolbar), I just see a blank page and the error :
    “Uncaught Error: Call to undefined method MailjetClient::addRequestOption() in XXXXX/wp-content/plugins/mailjet-for-wordpress/src/includes/MailjetApi.php:37”

    This is not the only problem I have with Mailjet. When clicking on the wordpress customize button, the same error is displayed. When I desactivate mailjet plugin, everything works well. It was working few days ago…I don’t understand what is going wrong…

    thank you !

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mailjet



    Please can you check which plugin version you are using. Looking at the file mentioned in the error there is no MailjetClient around line 37.

    In case your file is different please can you post a screenshot of the part of the file around line 37 so we can see what is going on.


    Plugin Author Mailjet


    @titimal, have you been able to check the file?

    Hi @mailjet !

    Thank you very much for your answer. I was not able to check the file yet but I’ll come back to you when I’ll do it.

    Thank you !

    Hi @mailjet

    I checked the file and I have exactly the same file that the one you tagged. it seems that the the method here is not mailjetclient but addRequestOption(), which is a method of the mailjetclient class.

    $mjClient = new Client($mailjetApikey, $mailjetApiSecret);
    $mjClient->addRequestOption(CURLOPT_USERAGENT, ‘wordpress-‘ . MAILJET_VERSION);

    another idea of what could go wrong ?

    thank you !

    Plugin Author Mailjet


    Thank you for your patience. We are looking into this issue and will come back as soon as we know more.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘error when clicking on the mailjet button’ is closed to new replies.