I am running the latest version of pathauto (6.x-1.1) and cck (6.x-2.5)
I have a content type with a node reference field and it allows multiple node references per node. When i save the node with multiple references then i receive the following error:
warning: mb_eregi_replace() expects parameter 3 to be string, array given in /home/btst/drupal/drupal-6.10/sites/bjs.internetunlimited.nl/modules/drupal.org/pathauto/pathauto.inc on line 184.
this error is caused because the node reference field returns an array with nid values as a token instead of a string value for the token.
I have uncommented this line: $tokens['nid'] = $item['nid']; in includes/content.token.inc on line 97 to remove the error but this makes the token be unavailable.
I was unsure whether this bug belongs in the token/pathauto module issue queue but it seems to me that tokens are simply string replacements and having an array as token value sounds as a bug in the node reference module to me.