Closed (fixed)
Project:
Pathauto
Version:
6.x-1.2
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
14 Sep 2007 at 22:53 UTC
Updated:
30 Nov 2010 at 05:41 UTC
I keep receiving this warning:
warning: preg_replace() [function.preg-replace]: Unknown modifier 'p' in /home..... /modules/pathauto/pathauto.module on line 263.
when using path auto. I have looked at line 263 ( see code below) - and dont' understand what is wrong or how to fix it. I was using alias index but am not any more.
// Get rid of words that are on the ignore list
$ignore_re = "\b". preg_replace("/,/", "\b|\b", variable_get('pathauto_ignore_words', $ignore_words)) ."\b";
263 > $output = preg_replace("/$ignore_re/ie", "", $output);
Can anyone enlighten em as to the problem? I hope to take the site live in a few days.
Comments
Comment #1
Artem commentedSimilar things happen to me with Pathauto 5.x-2.0-beta2:
Comment #2
greggleshttp://drupal.org/node/167309
Comment #3
sinewaver commentedI did as you suggested - and updated to the latest dev. version, but still have preg issues. They have now moved to:
warning: preg_replace() [function.preg-replace]: Unknown modifier 'p' in .... /modules/pathauto/pathauto.inc on line 108
(Previously in 5.1.2, warnings were first line 263 - then lines 44, and 72, in pathauto module)
Does this help pinpoint the issue?
Comment #4
alpinejag commentedI've been getting errors similar to this with the previous and most recent releases.
preg_replace() [function.preg-replace]: Compilation failed: nothing to repeat at offset 219 in .../modules/pathauto/pathauto.inc on line 108.
Right now I'm using 5.x-2.0-beta3. Php 5.2 with Zend Optimizer.
Comment #5
charmer commentedsimilar problem here:
I have Drupal 5.3, latest development version of PathAuto and PHP 5.2 with Zend.
When trying to submit a node I get the following message about 100 times at a time:
warning: preg_replace() [function.preg-replace]: Unknown modifier 'p' in /usr/share/drupal5/modules/pathauto/pathauto.inc on line 123.The real problem is the alias isn't created. I have [title-raw] template with transliteration turned on for nodes but I get 'Page not found' when attempting to access aliased node URL.
I have another drupal instance with Pathauto in version
v 1.1.2.2 2007/01/17 17:02:42 greggles Exp $that seems to be working fine.
Comment #6
greggles@charmer - are you using a WYSIWYG editor? Does it try to apply formatting to the "strings to remove" box?
Comment #7
charmer commentedYes, you are right, in both cases I use FCKEditor, but in the newer Drupal instance I had it configured the way that editor would apply to every textarea field, thus FCKEditor added
<p>around the list of strings to remove.I fixed it by setting "Minimum rows" in "Visibility setting" of FCKEditor to 5 so that the list would remain in plain text all the time.
Thanks a lot for the hint.
Comment #8
simohell commentedMore flexible still is to go to "admin/settings/fckeditor/edit/Advanced"
and add as option to "Exclude fields, will disable the editor on all selected fields" the field ID:
edit-pathauto-ignore-words
(or the appropriate field ID should there be changes in the respective modules)
ps. One needs to remember also to remove the
<p> </p>already added by FCKeditorComment #9
xamox commentedAhh, this worked for me, at first was confused, to clarify you need to remove the <p> from the "Strings to remove" in the pathauto module configuration page in the general settings section. Thanks for the help.
Comment #10
Chad_Dupuis commentedThanks for the last note - going into the pathauto settings, clicking on view source, and removing the
and
around the strings to exclude worked perfectly.
It would be great if this note got added into the readme/install info...
Comment #11
gregglesGood idea.
Comment #12
gregglesI added
To the README.txt and the project homepage. Let me know if you have any ideas on how to make it better.
Comment #13
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #14
foo commentedI'm on FCK 5.x-2.1-beta2, Pathauto 5.x-2.1, and Drupal 5.6, I've excluded 'edit-pathauto-ignore-words' and 'admin/settings/pathauto', but I still get this:
warning: preg_match() [function.preg-match]: Unknown modifier 't' in /home/username/public_html/sites/all/modules/fckeditor/fckeditor.module on line 1702.I've checked all text fields on /admin/settings/pathauto, and nothing seems to have html or WYSIWYG badness.
Any ideas?
-Foo
Comment #15
DrumLib commentedHow do you remove the
<p> </p>already added by FCKeditor?Comment #16
Zvone commentedAfter edit any node with Wysiwyg I find over 50 error messages in log:
mb_eregi_replace() [function.mb-eregi-replace]: mbregex compile err: unmatched close parenthesis in ...sites\all\modules\pathauto\pathauto.inc in line 136.
I tried to use some hints here but with no success.
Any help?
Comment #17
Zvone commentedSorry for spamming, I found a mistake; I added :) in exclude list. After removing, the error is not shown anmore.