Error Message - warning: preg_match() expects parameter 2
leevester - November 9, 2009 - 04:08
| Project: | Views |
| Version: | 6.x-2.7 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Just upgraded to Views 6.x.2-7 and this error appeared on a number of my pages which are built using views but not all pages built using Views.
"warning: preg_match() expects parameter 2 to be string, array given in /home/website/public_html/test/includes/bootstrap.inc on line 777."
Downgrading to Views 6.x.2.6 clears the problem.
Error appeared for all users on my site.
Drupal 6.14
MySQL 5.1.33
PHP 5.2.9
All contributed modules are up to date as of today with the exception of Views.
Posted this also on http://drupal.org/node/320145
What other information can I provide?

#1
Do the following code into before 777
if (function_exists('dsm')) {dsm(views_trace());
}
You need devel for this.
#2
Same here
#3
After adding the code from #1 and enabling the Devel module, I followed one of the errors to the views_plugin_display.inc. According to the manifest it should be v 1.27.2.4. When I checked the file, it reads v 1.27.2.1 2009/10/28. I compared this file to the CVS repository, it is 1.27.2.1.
Thinking that I might have messed up with the upgrade, I downloaded Views again and unpacked it into another directory. The 1.27.2.1 is in still there.
Tried patching the file up to 1.27.2.4 but my problem still exists.
If you can give me a hint on how to store the Devel Error messages for you, I will be glad to send a couple your way, if you think it will help.
#4
In which line is this called?
#5
The fieldvalues are also empty in combination with gmaps. Reverting to views 6.x-2.6 resolves both problems (warning message and empty fields).
#6
Ahh this is another case of styles needing to be updated.
#7
I have downgraded to 6.x.2.6 but I still have the same issue.
#8
Strange, did you try changing the view styles / making a new view?
#9
http://drupal.org/node/525036 fixed it for me, with no side effects
#10
Automatically closed -- issue fixed for 2 weeks with no activity.