Support the ongoing development of Laravel.io →
posted 11 years ago
Packages

Hi everybody

I'm using mailchimp with laravel 4.1 and have some problems.

  1. when I want to use that with this :

    $list_id='mylist_id'; $email_address='saha.0000@yahoo.com'; $first_name='saha'; $last_name='sa'; MailChimpWrapper::lists()->subscribe($list_id, array('email' => $email_address), array('FirstName' => $first_name, 'LastName' => $last_name));

it gives me this error: Non-static method Hugofirth\Mailchimp\MailchimpWrapper::lists() should not be called statically, assuming $this from incompatible context

2)I have the same problem with sentry and when I change the alias array in app.php from Sentry to SentryTest everything were gonna be ok .but when I do something like that for Mailchimp the first problem is ok and gives me a new error:

Undefined index: CURLOPT_FOLLOWLOCATION 

in this path: laravel\vendor\mailchimp\mailchimp\src\Mailchimp.php

3)and my last question: how can I get $list_id automatically? with out going to maichimp site and get it from my profile "list" section?

thanks for your time .

Last updated 3 years ago.
0

take a look to offricial mailchimp repo

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

prgmsaha prgmsaha Joined 20 May 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.