When cloning a profile, I get the following error message:

warning: preg_match_all() [function.preg-match-all]: Compilation failed: unrecognized character after (?< at offset 4 in /var/www/virtual/divesitebuddy.com/htdocs/modules/ckeditor/includes/ckeditor.admin.inc on line 222.

That part of that file looks like this on a command line:

214 if (arg(3) == 'clone') {
215 //load all profiles to check their names
216 $profiles = ckeditor_profile_load();
217 $oldname = $profile->name;
218 $maxsize=128; //default max name length
219
220 $res=array();
221 $pat = "/^(?.*?)_(?[0-9]*)$/";
222 if (preg_match_all($pat, $oldname, $res)) { // oldname like 'name_nr'
223 $name=$res['name'][0];
224 $num=$res['n'][0]+1;
225 }
226 else{
227 $name=$oldname;
228 $num=2;
229 }

I don't know if it's related, but i also don't see the text areas that ckeditor should be on. Both in FF 3.5.8 and in Chrome 5.0 beta, both on Mac OS X 10.6.2

Comments

wwalc’s picture

Status: Active » Fixed

This one should work better:

...
    $pat = "/^(.*?)_([0-9]+)$/";
    if (preg_match($pat, $oldname, $res)) {     // oldname like 'name_nr'
      $name=$res[1];
      $num=$res[2]+1;
    }
...

Fixed in CVS. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.