Error log is filled with the following

TYPE php
DATE Wednesday, 27 October, 2010 - 17:48
USER admin
LOCATION admin/reports/dblog
REFERRER admin/reports
MESSAGE Warning: preg_match(): No ending delimiter '^' found in file_scan_directory() (line 1969 of file.inc).
SEVERITY warning
HOSTNAME xxx.xxx.xxx.xxx
OPERATIONS

Comments

indigoblue’s picture

Version: 7.0-beta2 » 7.0-beta3
Component: dblog.module » file system
Issue tags: +file, +warning, +file_scan_directory

I am seeing the same issue when file_scan_directory is used in D7Beta3.

indigoblue’s picture

Status: Active » Closed (works as designed)

OK, I took a little time to look at the code and can see what is happening. The call to preg_match in file_scan_directory is failing because the mask parameter is not being passed correctly. This is a PHP error and the problem is that $mask expects the regex to properly delimited with '/..../'.

When calling file_scan_directory ensure that the $mask parameter is properly formatted. Check preg_match php docs for more info.

This is not a bug so am changing the status to closed works as designed.