Hey Lev,
In my testing of the new 7.x-1.x-dev branch, I've been able to successfully subscribe users to Mailchimp from the user registration form. I've also been able to successfully merge fields including the username, user id, and user e-mail address. So that's the good news... :-)
But upon successful registration, I'm also getting the following warning messages on the registration confirmation page:
Warning: array_merge(): Argument #1 is not an array in _form_set_class() (line 3490 of /Users/benkaplan/git/drupal/includes/form.inc).
Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 167 of /Users/benkaplan/git/drupal/includes/entity.inc).
Notice: Array to string conversion in mailchimp_mailchimp_merge_values() (line 762 of /Users/benkaplan/git/drupal/sites/all/modules/mailchimp/mailchimp.module).
Notice: Array to string conversion in mailchimp_mailchimp_merge_values() (line 762 of /Users/benkaplan/git/drupal/sites/all/modules/mailchimp/mailchimp.module).
Notice: Array to string conversion in mailchimp_mailchimp_merge_values() (line 762 of /Users/benkaplan/git/drupal/sites/all/modules/mailchimp/mailchimp.module).
Since I'm merging three variables in my testing (and there are three line 762 notices), the line 762 warning is probably related to all merge variables regardless of which merge variables they are.
Any ideas on how to fix?
Thanks,
Ben
Comments
Comment #1
deepbluesolutions commentedHi
Im experiencing this error, when displaying a node, Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 167 of /includes/entity.inc)
but Im not using Mailchimp, my list of D7 modules are
Drupal core 7.x-dev 7.0-alpha6 Update available
Colorbox 7.x-1.x-dev 7.x-1.x-dev Up to date
Entity API 7.x-1.0-alpha6 7.x-1.0-alpha6 Up to date
Styles 7.x-1.x-dev 7.x-1.0-alpha1 Up to date
getID3() 7.x-1.x-dev 7.x-1.x-dev Up to date
IMCE 7.x-1.0-alpha3 7.x-1.0-alpha3 Up to date
IMCE Wysiwyg bridge 7.x-1.x-dev 7.x-1.x-dev Up to date
Insert 7.x-1.0-alpha3 7.x-1.0-alpha3 Up to date
jQuery UI 7.x-1.x-dev 7.x-1.x-dev Up to date
jQuery Update 7.x-2.x-dev 7.x-2.x-dev Up to date
Libraries API 7.x-1.x-dev 7.x-1.x-dev Up to date
Menu block 7.x-2.0-beta2 7.x-2.0-beta2 Up to date
MimeDetect 7.x-1.x-dev 7.x-1.x-dev Up to date
Module Builder 7.x-2.x-dev 7.x-2.x-dev Up to date
Pathauto 7.x-1.0-alpha2 7.x-1.0-alpha2 Up to date
Search 404 7.x-1.x-dev 7.x-1.x-dev Up to date
Token 7.x-1.0-alpha2 7.x-1.0-alpha2 Up to date
Views 7.x-3.x-dev 7.x-3.x-dev Up to date
Wysiwyg 7.x-2.x-dev 7.x-2.x-dev Up to date
Advanced help 7.x-1.x-dev 7.x-1.x-dev Up to date
APC - Alternative PHP 7.x-1.0-beta1 7.x-1.0-beta1 Up to date
Cache
Custom Breadcrumbs 7.x-1.x-dev 7.x-1.x-dev Up to date
ImageCache Profiles 7.x-1.0-beta2 7.x-1.0-beta2 Up to date
Media 7.x-1.x-dev 7.x-1.x-dev Up to date
Mongodb 7.x-1.0-beta1 7.x-1.0-beta1 Up to date
XML sitemap 7.x-2.0-beta1 7.x-2.0-beta1 Up to date
Zen 7.x-3.x-dev 7.x-3.x-dev Up to date
not sure if there is a common module, between your setup and mine ? and im using d7-dev from 25th August, also noticed when cron runs manually, the error appears twice, but on page refresh it clears from the cron run page, but still shows consistently on the node display.
Im narrowing down, new content nodes of the same content type are ok, so suspect the node, will report back if once i work out what is happening. Have upgraded to new entity-dev, still no joy.
Ok, think the upgrade to entity dev may have sold my problem, I had to delete the node, and recreate but the error has no gone, hooray, onto the next thing, hope this helps in some way.
Comment #2
ilo commentedI've found this same error, and I'm not using MailChimp, so this is not a module issue. I just found it with form_set_error in the actions page of a clean (no modules) D7 install.
Comment #3
ilo commentedNot sure, but mailchimp.module:245 is
The signature for user_load in D7 has changed forn D6 ( http://api.drupal.org/api/function/user_load/7 ) and user_load now should be called with "$uid Integer specifying the user ID to load.".
If you can try to make that change manually and try if the error persist, that might help to fix this issue.
Edited: line should be:
Comment #4
mikeytown2 commentedFYI: issues exist in 6.x as well #939990: Array to string conversion & Undefined index Notices
Comment #5
levelos commented