Closed (outdated)
Project:
Pathauto
Version:
6.x-1.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Jan 2011 at 17:35 UTC
Updated:
22 Jun 2021 at 12:02 UTC
Jump to comment: Most recent
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
Comment #1
heyyo commentedthis 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).Comment #2
gregglesPlease update to the latest version of token module and then visit admin/reports/status
It should tell you which modules are causing this problem.
Comment #3
heyyo commentedI 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 ?
Comment #4
gregglesSorry 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.
Comment #5
heyyo commentedThe 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
I know that Taxonomy translation(i18n) delcares these 2 tokens but how could I find the other module which declares them too ?
Comment #6
heyyo commentedFinally I found that Taxonomy translation(i18n) declares these 2 tokens twice.
Comment #7
tcibah commentedWe 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
Comment #8
richard cheung commentedI find that computed field: http://drupal.org/project/computed_field will cause this problem.
Comment #9
admin@azhark.com commented