I implemented this module (6.x-1.0-beta1) and began using it on my node creation pages. When left turned on I would receive the following error messages upon submission of a node:
* warning: mb_eregi_replace() expects parameter 3 to be string, array given in sites/all/modules/pathauto/pathauto.inc on line 236.
* warning: mb_strtolower() expects parameter 1 to be string, array given in includes/unicode.inc on line 441.
After some research it seems to be that the issue is some sort of flawed interaction with pathauto. I have found both of these errors addressed at http://drupal.org/node/324404 and http://drupal.org/node/940560 respectively, but it seems like the error lies in an external module, not with the token module itself. I went through and disabled potential problem modules one by one until I the error disappeared and once I disabled the Phone Number module the errors ceased.
I was wondering if anyone else had this issue? Or if it hasn't come up yet, I just wanted to bring it to the developer's attention.
Thanks!
Comments
Comment #1
Dave ReidI'm guessing there is a conflict with token names. If any other module defines a token 'number' (which probably happens) then when all the token values are merged, this causes the $values['number'] to be an array. I would *highly* recommend renaming your tokens to include the module name (e.g. phone-number, phone-extension, etc.).
Comment #2
ckngUnable to reproduce.
From my test, the token already prepended with field name, is there possibility for it to still conflict with other token name?
e.g. field_phone is the field name
Please provide additional info like what other modules (that provide tokens) that you are using.