Closed (fixed)
Project:
Mime Mail
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Dec 2011 at 11:03 UTC
Updated:
31 Dec 2011 at 16:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
nerdacus commentedI encountered this exact warning when (un)subscribing to Simplenews newsletters as an anonymous user, but sending out the newsletter e-mails triggered no warning.
After reading #954594: Warning: preg_match(): No ending delimiter '^' found in file_scan_directory() (line 1969 of file.inc). and backtracing, I discovered that the function template_preprocess_mimemail_message() passes '^mail\.css*$' as $mask into file_scan_directory(), while preg_match is expecting $mask to be proper regex string. Simply adding forward slashes (/) on the ends of the string so that it reads '/^mail\.css*$/' on line 95 in mimemail/theme/mimemail.theme.inc halted all warnings of this nature.
Hope this helps. Sorry I'm too busy to set up a proper environment to create/test patches.
-Marcus
Comment #2
awagner commentedHi,
You can find attached to this comment a patch that solves the issue.
Hope this will help you.
Alex
Comment #3
arnested commentedThe patch form #2 works for me.
Comment #4
sgabe commentedThanks, committed to both branches!
Comment #5
sgabe commentedEhh...reverted from D6 since in that case file_scan_directory() uses ereg() and not preg_match().