i am encountering this error as soon as I open a view page

Warning: htmlspecialchars() expects parameter 1 to be string, array given in check_plain() (line 1572 of C:\wamp\www\includes\bootstrap.inc).

Comments

ygerasimov’s picture

Status: Active » Postponed (maintainer needs more info)

Please retest this situation and please advise step by step instructions how to recreate a view to get this error.

miroslavbanov’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
marcvangend’s picture

I ran into this problem when, for some unknown reason, Views decided that all field handlers in my solr view were broken or missing. I only noticed this when I opened the view for editing. I made sure all relevant (views & solr related) modules were available and enabled, cleared cache, and the problem disappeared.

This is an old and closed issue, I'm aware, but I hope posting this here will helps someone in the future.

miroslavbanov’s picture

When views cache is being rebuilt, if no connection to solr can be made (or the query times out for some reason), then the handlers can become broken/missing like that - see how apachesolr_views_views_data() makes this call:

    try {
      $solr = apachesolr_get_solr($env_id);
      $solr_fields = $solr->getFields(0);
    }

It then builds the views data with all the fields/filters based on the result of that call. Maybe this is the cause of the original problem.