After enabling a module in "Index Module Assets", I receive the following error on context edit pages: Warning: preg_match() [function.preg-match]: No ending delimiter '.' found in file_scan_directory() (line 2035 of /www/content/htdocs/ [...] /includes/file.inc).

CommentFileSizeAuthor
#2 index_module_files-1335430-2.patch501 bytesdoublejosh

Comments

progzy’s picture

I had the same problem.

Warning: preg_match(): No ending delimiter '.' found in file_scan_directory() (line 2035 ... includes/file.inc).

It is a delimiter problem in a regex as reported and fixed here: http://drupal.org/node/1393184

doublejosh’s picture

Status: Active » Needs review
StatusFileSize
new501 bytes

Here is the patch to fix this problem.
The _context_addassets_scandir function creates it's preg_match mask incorrectly. Just need backslashing.

Marking this later issue as a dupe: #1396246: Regex pattern warning + bad src path for module search

doublejosh’s picture

Priority: Normal » Major

Marking major since this is a key element of the module.

doublejosh’s picture

Ping. - This really needs to get patched.

BrockBoland’s picture

I'm not sure what happened here: I downloaded beta1 and it looks like this patch has already been applied.

jtwalters’s picture

Version: 7.x-1.0-beta1 » 7.x-1.x-dev
Issue summary: View changes
Status: Needs review » Fixed

Pretty sure this is fixed in 7.x-1.x-dev.

jtwalters’s picture

Status: Fixed » Closed (fixed)