Форуми / Cotonti / Bugs / Archive / Error after try to edit a User

scriptor
#1 22.03.2009 05:39
When i trie to edit a User u get this:
Call to undefined function mb_ereg() in /mnt/web5/40/71/52039171/htdocs/system/core/users/users.edit.inc.php on line 96

What can i do?
[url=http://www.freak-forum.de]Freak-Forum.de[/url] - The Freakstyle Community<br />
[url=http://www.adelmann-solutions.com]adelmann-solutions, webdesign Freiburg[/url]
Trustmaster
#2 22.03.2009 13:28
Open that line in that file, find this piece:
mb_ereg(",", $rusername) || mb_ereg("'", $rusername)
and replace it with:
mb_strstr($rusername, ',') || mb_strstr($rusername, "'")

I have noticed mb_ereg() is not present on some hosts even if they have mbstring. So we should probably avoid using mb_ereg() and use alternative functions instead.
May the Source be with you!

Відредаговано: Trustmaster (22.03.2009 13:36, 15 років тому)
Kilandor
#3 22.03.2009 17:27
Well in that situation its pointless to use ereg anyways.
scriptor
#4 22.03.2009 19:50
okay merci ;)
[url=http://www.freak-forum.de]Freak-Forum.de[/url] - The Freakstyle Community<br />
[url=http://www.adelmann-solutions.com]adelmann-solutions, webdesign Freiburg[/url]