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

greggles’s picture

Status: Active » Postponed (maintainer needs more info)

This 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

 tags, or it can be caused by placing things like ?, &, etc.

Can you confirm what your setting is for that value?
underpressure’s picture

#,$,%,&,?,!,@,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.

underpressure’s picture

I 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.

greggles’s picture

Component: Miscellaneous » Documentation
Status: Postponed (maintainer needs more info) » Active

Please 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".

anders’s picture

Then, is there a working version of the module that does remove punctuation characters from titles???

greggles’s picture

Status: Active » Fixed

@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.

anders’s picture

Sorry, I am not trying to hijack anything. I will file a spearate issue then.

Anonymous’s picture

Status: Fixed » Closed (fixed)