# warning: preg_replace() [function.preg-replace]: Compilation failed: nothing to repeat at offset 26 in /home/username/public_h

underpressure - September 19, 2007 - 21:27
Project:Pathauto
Version:5.x-2.0-beta3
Component:Documentation
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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?

#1

greggles - September 20, 2007 - 07:38
Status:active» active (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?

#2

underpressure - September 21, 2007 - 14:09

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

#3

underpressure - September 21, 2007 - 14:32

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.

#4

greggles - September 21, 2007 - 15:02
Component:Miscellaneous» Documentation
Status:active (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".

#5

anders - September 21, 2007 - 15:28

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

#6

greggles - September 22, 2007 - 08:07
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.

#7

anders - September 24, 2007 - 09:43

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

#8

Anonymous - October 8, 2007 - 09:52
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.