hugofirth / laravel-mailchimp

A composer package for the MailChimp API PHP class (as provided by MailChimp) which supports the Laravel 4 framework.
96 stars 27 forks source link

Subscribe fails. No exceptions thrown; returns `NULL`. #40

Open Yavor-Ivanov opened 8 years ago

Yavor-Ivanov commented 8 years ago

I'm running the following script on two different servers:

$subscriber = MailchimpWrapper::lists()->subscribe(
        '[REDACTED]', array('email' => $data['email']),
        null, 'html', false
);

Server A is able to subscribe users, but server B fails silently. I printed the value of $subscriber on both servers.

Server A: array(3) { ["email"]=> string(29) "test128947823873289@test5.com" ["euid"]=> string(10) "34d92c32b8" ["leid"]=> string(9) "157527861" }

Server B: NULL

This appears to be a configuration issue, but I can't figure out where the problem is. I've copied the config.php file from server A to server B just to make sure, and have run composer update on both servers.

There are no error messages in the laravel.log.