Closed (fixed)
Project:
Location
Version:
5.x-3.0-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
7 Oct 2008 at 10:18 UTC
Updated:
3 Nov 2008 at 17:12 UTC
Hi,
After upgrade test3 -> rc1 I've found lot of these errors in watchdog reports:
preg_match() expects parameter 2 to be string, array given w pliku /mydrupaldir/includes/bootstrap.inc, linia 670.
GMap RC1 works fine.
Szy.
Comments
Comment #1
szy commented(Drupal 5.10,
GMap 5.x-1.0-rc1,
Location 5.x-3.0-test3 -> rc1,
PHP 5.2.0-8+etch11,
MySQL 5.0.32)
Szy.
Comment #2
bdragon commentedLooking into it.
Comment #3
bdragon commentedI'm pretty sure something is calling check_plain() on an array.
It's easier to debug if you install xdebug and get a backtrace, by the way ;)
Comment #4
mburak commentedI think it's in the location.token.inc file. I'm having a similar error when submitting a node.
The part of the code calling the check_plain() is here:
I wrapped the $values... line with a
if(!is_array($value)){but i don't know if it's the best way.Comment #5
bdragon commentedThat was one of the points I was suspecting, seeing as there was some mention in pathauto about the error.
Could you check what fields are causing the problem?
Something like
followed by checking admin/reports/dblog should do the trick...
Comment #6
mburak commentedIt seems that the field is locpick.
Comment #7
bdragon commentedOh, of course... That makes sense.
I went ahead and added the
if (!is_array())check.http://drupal.org/cvs?commit=144994
http://drupal.org/cvs?commit=144996
Comment #8
szy commentedThanks, now it works fine.
And thank you for all your work :]
Szy.
Comment #9
bdragon commented#314032: preg_match() expects parameter 2 to be string instead array marked dupe.
Comment #10
bneel commentedOk it's working. Thanks again bdragon
Comment #11
elioshI confirm that mburak comment #4 works perfectly.
Comment #12
bdragon commentedI just rolled rc2 mainly because of people running into this.
Comment #13
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.