Why am I suddenly getting this Warning my sight when I'm logged out as an anonymous user?

Warning: Invalid argument supplied for foreach() in mailchimp_lists_auth_newsletter_form() (line 399 of /home8/kpcprodu/public_html/americanwrc/sites/all/modules/mailchimp/modules/mailchimp_lists/mailchimp_lists.module).

I was not getting this last night all I did this morning was enable the Log in using OpenID module.

Comments

nathancollins44’s picture

OK......... this is wired... I went in and disabled the Log in using OpenID module and then the Warning went away. I then re-enabled the Log in using OpenID module and I do not see the Warning.

I no longer see this Warning as an anonymous user, so I guess it fixed it self some how...

levelos’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

damiandab’s picture

Priority: Normal » Critical
Status: Closed (fixed) » Active

I have the same problem, tested with lastest stable version and dev version :(

damiandab’s picture

I get also another warning :

Warning: fsockopen(): unable to connect to us4.api.mailchimp.com:80 (Connection timed out) in MCAPI->callServer() (line 2426 of /var/www/vhosts/..../httpdocs/sites/all/modules/mailchimp/MCAPI.class.php).

Has someone similar problem?

damiandab’s picture

I could find an issue about above problem http://drupal.org/node/1220684
But , how can I see , it's still not fixed :(

damiandab’s picture

No one has the same problem ? It make impossible to use this module!

levelos’s picture

Status: Active » Closed (fixed)

That error is due to you not being able to connect the MailChimp API. It's been discussed in several threads, and is not an issue specific issue to this module. The recommended 7x.-2.x branch addresses many of the performance issues.

netmate’s picture

Version: 7.x-2.0 » 7.x-2.4

I have the same problem.

I had it in 2.4.

Then I tried to update to 2.6

I got the following message:
mailchimp_lists module

Update #7202
Failed: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'delta' cannot be null: UPDATE {block} SET delta=:db_update_placeholder_0 WHERE (bid = :db_condition_placeholder_0) ; Array ( [:db_update_placeholder_0] => [:db_condition_placeholder_0] => 63 ) in mailchimp_lists_update_7202() (line 250 of /home/mysterys/public_html/sites/all/modules/mailchimp/modules/mailchimp_lists/mailchimp_lists.install).

I still get the same message but on another row.

It is due to $mc_list = mailchimp_get_list($list->mc_list_id); returns nothing

This seemes to be a major problem, since the search "Warning: Invalid argument supplied for foreach() in mailchimp_lists_auth_newsletter_form() (line" returned 481 hits in sites on google.

(Our site is multilingual and this only shows on one language out of three.)

Before the module worked fine. This issue has just arrived suddenly.

Any suggestions?

netmate’s picture

Status: Closed (fixed) » Active

! active right!?

levelos’s picture

Status: Active » Closed (fixed)

This ticket is about an invalid argument warning, as the title indicates. That has been fixed. Please do not introduce second and third issues in the same tickets. The issue about block deltas has been extensively addressed in a second ticket. The issue about API connectivity it not at all related and has been addressed. Thanks and sorry for the curtness, but we're trying our best to manage this ticket and respond to legitimate bugs as best we can. Thanks.