Closed (won't fix)
Project:
Mailchimp
Version:
6.x-2.x-dev
Component:
General
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Jun 2010 at 03:52 UTC
Updated:
28 Jun 2016 at 16:20 UTC
Jump to comment: Most recent
Comments
Comment #1
levelos commentedSorry, but I can't replicate this error on a fresh install of the latest version of Drupal, with either RC4 or the dev release, and no one else has reported it. Perhaps a conflict with another module?
Comment #2
waynemichel commentedthe update to rc5 solved the error messages
Comment #3
dungcan88 commentedI have just updated to Drupal 6.17 and now I have the same warning as waynemichel had. Can someone help?
Comment #4
a3dse commentedPlease look at this post: http://drupal.org/node/320145#comment-2673928
Comment #5
yakker commentedAnother proposed solution here: http://drupal.org/node/800600. Tried it because I never had issues in 6.16 when I first upgraded. But upgrading to 6.17 was the first time we had our caching settings a bit more optimized. Not sure if it will work - I'll report an update on the thread I just indicated.
UPDATE:
Didn't work - error still occurs. :s
Comment #6
waynemichel commentedmailchimp-6.x-2.0-rc5 works, but mailchimp-6.x-2.0 breaks again.
Comment #7
waynemichel commentedComment #8
xurizaemonwayne, please add debug code to bootstrap.inc in check_plain()
That will show what's getting fed to check_plain() that isn't suitable.
Post the result here - you may need to debug further to identify the origin of the offending array.
Comment #9
ikeigenwijs commentedsubscribe
Comment #10
waynemichel commentedoutput from log file after adding the code:
htmlspecialchars() expects parameter 1 to be string, array given in /home/chs90122/public_html/cms/includes/bootstrap.inc on line 867.
Err - array is not a string:Array ( )
Comment #11
xurizaemonOh, an empty array isn't so helpful is it? Sorry Wayne - a bit more debugging to do then.
Try this and see if you can capture more info this time -
That will spit out a lot of debug info, which should allow us to see what hooks/functions are feeding the incorrect array() into check_plain().
Please do the following -
0. Make sure the debug code I've posted leaves you with a working site first. check_plain() is used often enough that hitting your front page should reveal if there's an error.
1. Gather your backtrace info by triggering the error.
2. Search the backtrace for private info before posting. Eg, search for your database login and password and obscure any such 'private' details first.
3. Rather than pasting the backtrace here in entirety, post your backtrace on http://drupalbin.com/ then link to it from your comment here. The backtrace will be long, and the notification email will be ugly and mostly unhelpful to other people on this thread.
Thanks!
PS. You changed from 6.x-2.x-dev to 6.x-2.0 - does this issue not occur on 2.x-dev?
Comment #12
levelos commentedHey gang - Finally fixed in the 6.x-2.x branch. It was definitely due to the introduction of hidden "groups" from MC. They are now filtered out.
Comment #14
eric.chenchao commentedHi levelos,
This issue seems still happens in v2.5
Warning: htmlspecialchars() expects parameter 1 to be string, array given in check_plain() (line 1152 of /srv/www/test/public_html/includes/bootstrap.inc).Comment #15
myregistration commentedsubscribe
Comment #16
myregistration commentedsubscribe
Comment #17
agileware commentedSeeing a lot of these errors using 6.x-2.6 and also when trying the latest 6.x-2.x-dev (2011-Oct-04).
warning: htmlspecialchars() expects parameter 1 to be string, array given in /public_html/includes/bootstrap.inc on line 865.Adding some debug code to includes/bootstrap.inc about line 848
Results in this track back which indicates a problem in Mailchimp.
Comment #18
nrackleff commented“And now our watch [for support of the 6.x version of the MailChimp module] has ended…” With the end of Drupal 6 support, I’m sad to say we too must turn the page.
Fret not! The 7.x-4.x and 8.x versions come highly recommended. Both are using Mailchimp’s new API 3.0 and are being actively maintained. “What is dead may never die, but rises again, harder and stronger!”