Warning: mb_eregi_replace() expects parameter 3 to be string, array given in pathauto_cleanstring() (line 136 of /home/XXXX/domains/www.XXXXX.com/prod/sites/all/modules/pathauto/pathauto.inc).

I made the upgrade to the last dev of token but I still have this error.

Any idea ?

Comments

heyyo’s picture

this error is followed by this one

Warning: mb_strtolower() expects parameter 1 to be string, array given in drupal_strtolower() (line 441 of /home/3u4u/domains/www.rimonim-israel.com/prod/includes/unicode.inc).

greggles’s picture

Status: Active » Postponed (maintainer needs more info)

Please update to the latest version of token module and then visit admin/reports/status

It should tell you which modules are causing this problem.

heyyo’s picture

I have already the last token module Token 6.x-1.x-dev (2010-Dec-15), but I don't see anything about Token in admin/reports/status. Do I have to uninstall it a reinstall ?

greggles’s picture

Sorry about that, I thought that would show the problem there.

This is basically a case of one of your token modules implementing the same token as another one. Instead of overwriting a value, php merges them into an array. To identify it you will need to add some debugging code somewhere or you could just disable modules one by one (on a test site) until the problem goes away. That will let you know which are causing the problem and you can probably update those or look in the issue queue for them to get a fix.

heyyo’s picture

The patch for token(http://drupal.org/node/587148#comment-3163454) is only in cvs and not in dev.
After applying it I saw that tokens i18n-term and i18n-term-raw are declared twice in /admin/reports/dblog

More than one module has defined the i18n-term token.
More than one module has defined the i18n-term-raw token.

I know that Taxonomy translation(i18n) delcares these 2 tokens but how could I find the other module which declares them too ?

heyyo’s picture

Finally I found that Taxonomy translation(i18n) declares these 2 tokens twice.

tcibah’s picture

We are getting those error messages, given below.

Our Drupal isntall is updated regularly; here is the current startus:
Pressflow/D6.20
No Internationalization, no Taxonomy translation(i18n)
Token 1.15
Pathauto 1.5

The error:
• Warning: mb_eregi_replace() expects parameter 3 to be string, array given in pathauto_cleanstring() (line 136 of /home/user1/public_html/drupal/sites/all/modules/pathauto/pathauto.inc).
• Warning: mb_strtolower() expects parameter 1 to be string, array given in drupal_strtolower() (line 441 of /home/user1/public_html/drupal/includes/unicode.inc).
• Warning: mb_eregi_replace() expects parameter 3 to be string, array given in pathauto_cleanstring() (line 136 of /home/user1/public_html/drupal/sites/all/modules/pathauto/pathauto.inc).
• Warning: mb_strtolower() expects parameter 1 to be string, array given in drupal_strtolower() (line 441 of /home/user1/public_html/drupal/includes/unicode.inc

Appreciate your efforts.

Edit: the errors specifically show in user content profile

richard cheung’s picture

I find that computed field: http://drupal.org/project/computed_field will cause this problem.

admin@azhark.com’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (outdated)