I got this warning message after updated the following modules to the latest version: filefield_path-6.x-1.0.tar.gz, views-6.x-2.4,devel-6.x-116

I do not know which one cause problem, mainly happen when I try to do edit on content and content type (manage fields)

* warning: preg_match() expects parameter 2 to be string, array given in /Library/WebServer/Documents/shwaware/sites/all/modules/admin_menu/admin_menu.inc on line 244.
* warning: preg_match() expects parameter 2 to be string, array given in /Library/WebServer/Documents/shwaware/sites/all/modules/admin_menu/admin_menu.inc on line 244.

Comments

yched’s picture

Component: field system » menu system
Status: Active » Postponed (maintainer needs more info)

Wrong component, obviously.
This most probably comes from a broken 3rd party module, trouble is finding which one.
You'll have to be more specific on which exact pages trigger the error.

greenbeans’s picture

I'm getting this error too after updating Devel to 1.16. Presumably a bug in that module.

avpaderno’s picture

Title: * warning: preg_match() expects parameter 2 to be string, array given in /Library/WebServer/Documents/shwaware/sites/all/m » preg_match() expects parameter 2 to be string

I agree: it's more probable the error is caused by a third-party module.

fenstrat’s picture

Same as #2 after updating to Devel 1.16 - preg_match() warning: expects parameter 2 to be string, array given in admin_menu.inc on line 244

avpaderno’s picture

Project: Drupal core » Devel
Version: 6.10 » 6.x-1.6
Component: menu system » devel
Status: Postponed (maintainer needs more info) » Active

I am moving the issue to the issue queue that seems more appropiate, basing on the last comments.

Feel free to move it if it doesn't seems the correct queue.

s.daniel’s picture

Same error after update. (In a multisite envoironment where devel is simlinked)

avpaderno’s picture

Version: 6.x-1.6 » 6.x-1.9

I am changing the referring version to the last official release; is the issue still valid (I ask my apologies in the case I have not understood correctly what s.Daniel meant)?

greenbeans’s picture

Version: 6.x-1.9 » 6.x-1.16

Current version (version with problem) is 1.16, not 1.6 or 1.9.

avpaderno’s picture

Usually, if the problem has been fixed in the latest official release, the users who have an issue with a previous version should pass to the latest official release.

In Drupal, when the maintainer fixes a bug with an official release, he must create a new official release, as it's not possible to commit the fixed code and keep the old version number.

What is the need to fix a bug if the users still use the bugged version?

greenbeans’s picture

People updating the metadata of this bug report misread a) the version number it was being reported against, and b) the latest version number of the module. The bug is being seen in the latest version (1.16). (See OP, #2, and #4).

Johnny vd Laar’s picture

The devel module now returns an array instead of a string. the dev version of the admin menu has this solved so you should use the latest dev version of the admin menu to solve this

seaneffel’s picture

Status: Active » Fixed

Confirming this last comment from Johnny. Updating to the 6.x-3.x-dev Administration Menu module put an end to this error message. Marking as fixed.

s.daniel’s picture

Seems to be fixed with 6.x-1.x-dev as well but 1.x dev introduces a new error: http://drupal.org/node/433016

EmanueleQuinto’s picture

Status: Fixed » Closed (duplicate)