Pathauto preg_replace() error
blogjunkie - November 29, 2007 - 16:33
Guys,
Anybody know why Pathauto is giving me this error??
warning: preg_replace() [function.preg-replace]: Unknown modifier 'p' in /Users/blogjunkie/Sites/olc/sites/all/modules/pathauto/pathauto.inc on line 123.
I got it right after I changed the default path pattern to '[type]/[nid]/[title-raw]'. Could it be that its choking on a custom content type?
Thanks

Here are the PHP errors I've
Here are the PHP errors I've been getting from my php_error log
[30-Nov-2007 12:41:51] PHP Notice: Undefined variable: no_theme_preprocess in /Users/blogjunkie/Sites/olc/includes/common.inc on line 1493
[30-Nov-2007 12:42:04] PHP Notice: Trying to get property of non-object in /Users/blogjunkie/Sites/olc/includes/form.inc on line 324
[30-Nov-2007 12:42:04] PHP Notice: Undefined index: comment in /Users/blogjunkie/Sites/olc/includes/install.inc on line 207
[30-Nov-2007 12:42:04] PHP Notice: Undefined index: comment in /Users/blogjunkie/Sites/olc/includes/install.inc on line 207
Same here but now fixed
I got it immediately then as well.
The problem is actually with the Strings To Remove field and that particular field being used by a WYSIWYG editor adding in formatting strings.
Flick over to Plain Text editing, remove the paragraph HTML, save and you should be OK
looks like it worked!
Hi rastarr, thanks so much for your tip. You saved my bottom this time.
For everyone else who is having this problem, here are more detailed instructions:
1) In Pathauto settings (admin/settings/pathauto)
Open up the General Settings group and look for the Strings to Remove field. Delete the
<p>and</p>characters.To make sure that this doesn't happen again,
2) Go to FCKeditor settings (admin/settings/fckeditor)
Select a profile to edit (e.g. Advanced). Click the Visibility Settings group, then add this string to the Selected fields or paths field : edit-pathauto-ignore-words
This 2nd step makes sure that FCKeditor doesn't automatically attach itself to the Strings to Remove field again.
THANK YOU!!
I have no idea how you tracked this down, but thank you, thank you, thank you!