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
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

dereine - November 9, 2009 - 07:45

Do the following code into before 777

if (function_exists('dsm')) {
  dsm(views_trace());
}

You need devel for this.

#2

robbertnl - November 9, 2009 - 09:19

Same here

#3

leevester - November 9, 2009 - 23:30

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

dereine - November 9, 2009 - 23:52

In which line is this called?

#5

robbertnl - November 10, 2009 - 08:23

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

merlinofchaos - November 10, 2009 - 16:59
Status:active» fixed

Ahh this is another case of styles needing to be updated.

#7

tavaressimon - November 12, 2009 - 18:23

I have downgraded to 6.x.2.6 but I still have the same issue.

#8

robbertnl - November 13, 2009 - 15:33

Strange, did you try changing the view styles / making a new view?

#9

colorado - November 22, 2009 - 07:40

http://drupal.org/node/525036 fixed it for me, with no side effects

#10

System Message - December 6, 2009 - 07:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.