Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By kevinlebo on
The Error Message:
warning: Unknown modifier 'C' in /home/webmaster/webpage/includes/theme.inc on line 200.
Two weird things about this:
1) There is no modifier 'C' in theme.inc on any line. Also is used to say 'v' instead of 'C'.
2. This message goes away when I log into the site.
I probably did this but I'm really not sure where I did. i haven't messed with too much code yet. Any ideas?
Comments
this means there is a bad regular expression
somewhere in your code (possibly in your block path settings). see [1] and google for
"Unknown modifier" php
or
"Unknown modifier" faq
or similar.
[1] http://www.php.net/manual/en/ref.pcre.php
ax, thank you so much. It mu
ax, thank you so much. It must have been in the block path settings because when I removed it (there was only one that I had changed), it cleared it right up.
nevermind. also note
that, some time ago, the syntax of the block path regular expressions has changed to require the regexp delimiters to be included into the pattern, eg. ^/ now must be <^/> or #^/# or similar. maybe that was your problem.
Does anyone know why this was changed?
I don't see a good reason for this, but maybe I am missing something?
--
Kjartan
this is a long story
some references:
http://drupal.org/node/view/1855
http://lists.drupal.org/archives/drupal-devel/2003-06/msg01361.html
i think it is a good thing to include the delimiters. unfortunately, the documentation for the path setting is well hidden in a sub-sub-sub-menu (administer > configuration > blocks > help). i think it would make much sense - and avoid people getting confused / making errors - if this would be linked more visible straight from the block configuration help. i would send a patch, but i don't really get how to link to an anchor within a page (#path_settings) with this new menu/help system ...
What is the enduser requirement ?
None of the links really explain the reasoning for why. What does the user gain as functionality? None of the pattern modifiers are really that critial from what I can tell. The only one that looks usable is /i, but that isn't hard to replicate.
Ah well, I have some ideas on how to improve block management so it probably wont matter in the long run. Just need time to write them down and implement them.
--
Kjartan