Download & Extend

Indexing site with ND Search enabled produces error: warning: preg_match() expects parameter 2 to be string

Project:Node displays contributions
Version:6.x-2.x-dev
Component:ND Search
Category:bug report
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)

Issue Summary

I don't know if this is related to my previous ND Search issue, but when ND Search is enabled, and I index/re-index my site content, I get the following error message for almost every item being indexed when I run cron:

warning: preg_match() expects parameter 2 to be string, array given in [...]/includes/bootstrap.inc on line 896

At the end, it says "Cron ran successfully." With ND Search disabled, I don't get these error messages when I re/index my content.

From bootstrap.inc, lines 895-896:

// For performance reasons this logic is duplicated in check_plain().
return (preg_match('/^./us', $text) == 1);

Any thoughts on why I'm receiving this error?

Module versions:
* Display suite: Latest dev versions for ND and ND contrib (and DS, CD, and VD)
* Apache Solr: 6.x-2.x-dev

Comments

#1

Status:active» closed (fixed)

I am now able to index the site with ND Search enabled. I didn't change anything with Solr or DS. I think it may be related to a Solr-related patch that was recently released for Content Taxonomy, which I applied.

#2

Status:closed (fixed)» active

I face the same problem when enabling ND search.

#3

Status:active» postponed (maintainer needs more info)

I need more info, which version of apache solr, other modules that might be enabled which can cause this problem.

#4

the same warning.
Apache Solr Search Integration 6.x-2.0-beta2 (other versions incompatible with certain used modules)
Apache Solr PHP Client Library: Correct version "Revision: 22"
Display suite 6.x-1.4
this warning appears immediately after changing ND->APache SOLR->build mode=Products in catalog grid view.

#5

additional information:

Backtrace:
preg_match(a:2:{i:0;s:6:"/^./us";i:1;a:0:{}})[bootstrap.inc:896];
.drupal_validate_utf8(a:1:{i:0;a:0:{}})[filter.module:996];
..filter_xss(a:2:{i:0;a:0:{}i:1;a:0:{}})[apachesolr.index.inc:14];
...apachesolr_clean_text(a:1:{i:0;a:0:{}})[apachesolr.index.inc:132];
....apachesolr_node_to_document(array)[apachesolr.module:365];
.....apachesolr_index_nodes(array)[apachesolr_search.module:95];
......apachesolr_search_cron(a:0:{})[?:?];
.......call_user_func_array(a:2:{i:0;s:22:"apachesolr_search_cron";i:1;a:0:{}})[module.inc:483];
........module_invoke_all(a:1:{i:0;s:4:"cron";})[common.inc:2745];
.........drupal_cron_run(a:0:{})[system.admin.inc:1742];
..........system_run_cron(a:0:{})[?:?];
...........call_user_func_array(a:2:{i:0;s:15:"system_run_cron";i:1;a:0:{}})[menu.inc:348];
............menu_execute_active_handler(a:0:{})[index.php:18];
.............index.php