Closed (fixed)
Project:
Pathauto
Version:
5.x-2.0-beta3
Component:
Documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Sep 2007 at 21:27 UTC
Updated:
8 Oct 2007 at 09:52 UTC
I get the following error everytime I update the title of an image node.
# warning: preg_replace() [function.preg-replace]: Compilation failed: nothing to repeat at offset 26 in /home/username/public_html/sites/all/modules/pathauto/pathauto.inc on line 108.
I had many alias created but I had deleted all because I didn't like the style of the URLs now i get this error.
Any advice?
Comments
Comment #1
gregglesThis is usually caused by placing unexpected values into the "strings to remove" area. That can be caused by a WYSIWYG editor on admin pages which inserts
Comment #2
underpressure commented#,$,%,&,?,!,@,a,an,as,at,before,but,by,for,from,is,in,into,like,of,off,on,onto,per,since,than,the,this,that,to,up,via,with
I have FCKeditor installed and I had it removed from the pathauto settings page.
I can confirm that after re-installing pathauto it worked fine until I added the additional characters shown above.
Comment #3
underpressure commentedI can now confirm that after following your recommendation everything works fine.
Issue resolved, great module, thank you.
should be part of core and Clean URLs if you ask me.
Comment #4
gregglesPlease remove "#,$,%,&,?,!,@" from that field. Insert them one at a time to test out which are possible and which are not. I believe most are not.
Whatever you find I will add some help text to say "don't put punctuation in here".
Comment #5
anders commentedThen, is there a working version of the module that does remove punctuation characters from titles???
Comment #6
greggles@anders - please don't hijack someone else's issue. There are two versions of this module (5.x-1.x and 5.x-2.x) both of them have bugs, but the bugs are slightly different. Try them both out and see which works for you. Ultimately 5.x-1.x branch of code is not going to be ported to 6.x so you should help test and provide patches to make sure that any bugs in 5.x-2.x get fixed.
@underpressure - I'm glad that your problem got solved.
I also added the text "Do not place punctuation in here and do not use WYSIWYG editors on this field." to the help text for the field.
Comment #7
anders commentedSorry, I am not trying to hijack anything. I will file a spearate issue then.
Comment #8
(not verified) commented