warning: preg_replace() [function.preg-replace]: Delimiter must not be alphanumeric or backslash in /home/dash/public_html/sites/all/modules/date/date_api.module on line 1241.

This section is just the same as the previous snapshot so I don't know what's up here?

CommentFileSizeAuthor
#3 regex-warning.patch636 bytesjohnalbin

Comments

anthonym’s picture

Priority: Normal » Critical

I just started getting the same error too. Changing priority to critical.

I also have:

warning: Missing argument 2 for date_formatter_process(), called in /sites/all/modules/date/date/date.theme on line 41 and defined in /sites/all/modules/date/date/date.module on line 115.

and

warning: Missing argument 3 for date_formatter_process(), called in /sites/all/modules/date/date/date.theme on line 41 and defined in /sites/all/modules/date/date/date.module on line 115.

These seem to be appearing on any node that has date fields in it. My date browser page which only lists two nodes at the moment has 15 of the above-type errors.

jjohnsonBLC’s picture

I changed line 1234 from:

$regex[] = array('([OZPe])');

to:

$regex[] = '([OZPe])';

and it got rid of the preg-replace errors for me. My content was showing up fine when the errors were present, and they still show up fine. I really don't know if this change will resolve any problems other people are having, I just know that my errors are gone and everything is still working.

johnalbin’s picture

Status: Active » Reviewed & tested by the community
StatusFileSize
new636 bytes

Without this, the date_popup function on a calendar doesn’t work.

This patch is the same as Jeff’s comments; I’ve confirmed that it fixes the bug, so I'm marking RTBC.

johnalbin’s picture

@anthonym, see #263377: Missing argument 2 for date_formatter_process for the other 2 errors you mention.

bcn’s picture

I can also confirm that the patch fixes this issue. Thanks to those who sorted this!

karens’s picture

Status: Reviewed & tested by the community » Fixed

Fix committed. It was right in the D6 version, got screwed up in the D5 version for some reason. Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)

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