I had UC_Views up and running fine in drupal 6.16, but upon updating to Drupal 6.17 I began getting the following error on the views list page:
warning: htmlspecialchars() expects parameter 1 to be string, array given in /mysite/includes/bootstrap.inc on line 840.
When I went to edit any of my views that contained fields provided by uc_views it gave me a broken handler error.
I tried various solutions to narrow it down, and the only thing that would get rid of the error was uninstalling the uc_views module. Upon re-installing the module the error returned. I implemented the code correction explained in http://drupal.org/node/525036#comment-3046610 but am still having the issue. I can now apparently use the uc_views fields, however there seem to be two options at the bottom of the "Add Fields:Groups" select list that strike me as odd. Under the heading of "Array" are the options are "uc_order" and "Ubercart Order" - seemingly an error pulling the info out of the array and putting it into the select list? I've included a photo of this to show you what I mean.
I have recently also upgraded to Views 6x-2.11 but the error persists.
I have a feeling that these two things are somehow relates, but don't know enough about the inner working of either views of uc_views to understand why.
Thoughts?
Comments
Comment #1
yakker commentedGetting the same error, but not using UC at all. Also immediately after upgrading core to 6.17. I do notice that it always (without fail) occurs in the error log immediately after a comment form BLOCK by captcha. However, not every comment form block is accompanied by the error. Not sure if or how that will help, but figured I'd add my 2c. Good luck!
Comment #2
MatthijsG commentedSame problem here. I use no captcha. And no UC ;-) So i think it's something different (other code)
Googling this, gives me more than 20.000 results. Most of them are sites where the problem is visible.
Comment #3
longwaveThis error can be caused by many things, I cannot reproduce it here. If you are having trouble with Ubercart Views, please delete the entire uc_views folder and redownload either 6.x-3.0 or 6.x-3.x-dev and try again. Feel free to reopen this issue if the problem still occurs after doing this.
Comment #4
asak commentedSame issue here - when disabling uc_views-6.x-3.x-dev (and non dev) the errors vanish.
I'll dig in some more...
Comment #5
vidichannel commentedI am finding this common error (not always line 840) in multiple views including Location views and user profile views that include Facebook-style Status messages. Both separate modules that seem to have a common glitch with Views 3 x.dev.