- Posts: 6
COMMUNITY FORUM
Error on Category creation....
- Wolf Kuhlemeier
-
Topic Author
- Offline
- New Member
Fatal error: Call to undefined function mb_ereg_replace() in /xxx/xxx/xxx/administrator/components/com_k2/tables/k2category.php on line 49.
I can't seem to figure out what I'm dealing with at this point. Please advise.
Please Log in or Create an account to join the conversation.
- iImagine 'n' iKnow Ltd.
-
- Offline
- Senior Member
- Posts: 44
I have now built a brand new Joomla site 1.5.14 and installed simple image and the full K2 from unified installer - all I had was warning because I do not have joofish....
So, just tried to add a category, entered a name, pressed save and bang same error as previous poster.
Fatal error: Call to undefined function mb_internal_encoding() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\curry2\administrator\components\com_k2\tables\k2category.php on line 46
Can we please have some guidance on what we are doing wrong please....!!!!
george
Please Log in or Create an account to join the conversation.
- iImagine 'n' iKnow Ltd.
-
- Offline
- Senior Member
- Posts: 44
mine in the code looks like:
mb_internal_encoding("UTF-8");
$this->alias = trim(mb_strtolower($this->alias));
$this->alias = str_replace('-', ' ', $this->alias);
$this->alias = mb_ereg_replace(':space:+', ' ', $this->alias);
$this->alias = trim(str_replace(' ', '-', $this->alias));
$this->alias = str_replace('.', '', $this->alias);
$stripthese = ',|~|!|@|%|^|(|)|<|>|:|;|{|}|[|]|&|`|„|‹|’|‘|“|�|•|›|«|´|»|°';
$strips = explode('|', $stripthese);
foreach ($strips as $strip) {
$this->alias = str_replace($strip, '', $this->alias);
So I need someone with mysql knowledge to tell me how I enable this - or is it something we need to enable in php
HELP PLEASE!!!
George Szubinski said:I had this and I put it down to the fact that I did a new install and should have done an upgrade...
I have now built a brand new Joomla site 1.5.14 and installed simple image and the full K2 from unified installer - all I had was warning because I do not have joofish....
So, just tried to add a category, entered a name, pressed save and bang same error as previous poster.
Fatal error: Call to undefined function mb_internal_encoding() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\curry2\administrator\components\com_k2\tables\k2category.php on line 46
Can we please have some guidance on what we are doing wrong please....!!!!
george
Please Log in or Create an account to join the conversation.
- iImagine 'n' iKnow Ltd.
-
- Offline
- Senior Member
- Posts: 44
Wolf - look at www.phpbuilder.com/board/showthread.php?t=10335517 for background.
also www.sugarcrm.com/forums/showthread.php?t=39431 for more background.
All you need to do is go and edit your php.ini file - search for mbstring and remove the comment to enable it and resave your ini file. Go and restart Apache.
george
George Szubinski said:ok, these seem to be using new functions:
mine in the code looks like:
mb_internal_encoding("UTF-8");
$this->alias = trim(mb_strtolower($this->alias));
$this->alias = str_replace('-', ' ', $this->alias);
$this->alias = mb_ereg_replace(':space:+', ' ', $this->alias);
$this->alias = trim(str_replace(' ', '-', $this->alias));
$this->alias = str_replace('.', '', $this->alias);
$stripthese = ',|~|!|@|%|^|(|)|<|>|:|;|{|}|[|]|&|`|„|‹|’|‘|“|�|•|›|«|´|»|°';
$strips = explode('|', $stripthese);
foreach ($strips as $strip) {
$this->alias = str_replace($strip, '', $this->alias);
So I need someone with mysql knowledge to tell me how I enable this - or is it something we need to enable in php
HELP PLEASE!!!
George Szubinski said:I had this and I put it down to the fact that I did a new install and should have done an upgrade... I have now built a brand new Joomla site 1.5.14 and installed simple image and the full K2 from unified installer - all I had was warning because I do not have joofish....
So, just tried to add a category, entered a name, pressed save and bang same error as previous poster.
Fatal error: Call to undefined function mb_internal_encoding() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\curry2\administrator\components\com_k2\tables\k2category.php on line 46
Can we please have some guidance on what we are doing wrong please....!!!!
george
Please Log in or Create an account to join the conversation.
- Wolf Kuhlemeier
-
Topic Author
- Offline
- New Member
- Posts: 6
Wolf
George Szubinski said:ok resolved now:
Wolf - look at www.phpbuilder.com/board/showthread.php?t=10335517 for background.
also www.sugarcrm.com/forums/showthread.php?t=39431 for more background.
All you need to do is go and edit your php.ini file - search for mbstring and remove the comment to enable it and resave your ini file. Go and restart Apache.
george
George Szubinski said:ok, these seem to be using new functions: mine in the code looks like:
mb_internal_encoding("UTF-8");
$this->alias = trim(mb_strtolower($this->alias));
$this->alias = str_replace('-', ' ', $this->alias);
$this->alias = mb_ereg_replace(':space:+', ' ', $this->alias);
$this->alias = trim(str_replace(' ', '-', $this->alias));
$this->alias = str_replace('.', '', $this->alias);
$stripthese = ',|~|!|@|%|^|(|)|<|>|:|;|{|}|[|]|&|`|„|‹|’|‘|“|�|•|›|«|´|»|°';
$strips = explode('|', $stripthese);
foreach ($strips as $strip) {
$this->alias = str_replace($strip, '', $this->alias);
So I need someone with mysql knowledge to tell me how I enable this - or is it something we need to enable in php
HELP PLEASE!!!
George Szubinski said:I had this and I put it down to the fact that I did a new install and should have done an upgrade... I have now built a brand new Joomla site 1.5.14 and installed simple image and the full K2 from unified installer - all I had was warning because I do not have joofish....
So, just tried to add a category, entered a name, pressed save and bang same error as previous poster.
Fatal error: Call to undefined function mb_internal_encoding() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\curry2\administrator\components\com_k2\tables\k2category.php on line 46
Can we please have some guidance on what we are doing wrong please....!!!!
george
Please Log in or Create an account to join the conversation.
- iImagine 'n' iKnow Ltd.
-
- Offline
- Senior Member
- Posts: 44
A little bit scary for the uninitiated..... looks like there must have been a design decision to reduce problems with string handling to use the mbstring functions... would have been nice to make a note of those and include it in the comms.... but I know how these things work, there has been a huge amount of work on this release and this bit has been missed...
Hope folk pick it up here.
If anyone is tracking this from K2 - it would be good to begin a different Topic with known 'bugs' and solutions????
thanks
george
Wolf Kuhlemeier said:Thanks George...We'll try to get something done on this. Has it solved your problems?
Wolf
George Szubinski said:ok resolved now: Wolf - look at www.phpbuilder.com/board/showthread.php?t=10335517 for background.
also www.sugarcrm.com/forums/showthread.php?t=39431 for more background.
All you need to do is go and edit your php.ini file - search for mbstring and remove the comment to enable it and resave your ini file. Go and restart Apache.
george
George Szubinski said:ok, these seem to be using new functions: mine in the code looks like:
mb_internal_encoding("UTF-8");
$this->alias = trim(mb_strtolower($this->alias));
$this->alias = str_replace('-', ' ', $this->alias);
$this->alias = mb_ereg_replace(':space:+', ' ', $this->alias);
$this->alias = trim(str_replace(' ', '-', $this->alias));
$this->alias = str_replace('.', '', $this->alias);
$stripthese = ',|~|!|@|%|^|(|)|<|>|:|;|{|}|[|]|&|`|„|‹|’|‘|“|�|•|›|«|´|»|°';
$strips = explode('|', $stripthese);
foreach ($strips as $strip) {
$this->alias = str_replace($strip, '', $this->alias);
So I need someone with mysql knowledge to tell me how I enable this - or is it something we need to enable in php
HELP PLEASE!!!
George Szubinski said:I had this and I put it down to the fact that I did a new install and should have done an upgrade... I have now built a brand new Joomla site 1.5.14 and installed simple image and the full K2 from unified installer - all I had was warning because I do not have joofish.... So, just tried to add a category, entered a name, pressed save and bang same error as previous poster.
Fatal error: Call to undefined function mb_internal_encoding() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\curry2\administrator\components\com_k2\tables\k2category.php on line 46
Can we please have some guidance on what we are doing wrong please....!!!!
george
Please Log in or Create an account to join the conversation.
- iImagine 'n' iKnow Ltd.
-
- Offline
- Senior Member
- Posts: 44
Aleksandr said:Which line in php.ini file remove the comment for mbstring?
George Szubinski said:ok resolved now: Wolf - look at www.phpbuilder.com/board/showthread.php?t=10335517 for background.
also www.sugarcrm.com/forums/showthread.php?t=39431 for more background.
All you need to do is go and edit your php.ini file - search for mbstring and remove the comment to enable it and resave your ini file. Go and restart Apache.
george
Please Log in or Create an account to join the conversation.
- giggles
-
- Offline
- Junior Member
- Posts: 22
Please Log in or Create an account to join the conversation.
- Dani Carull
-
- Offline
- New Member
- Posts: 2
I'm getting the same error, but i don't have access to the php.ini file because my hosting service don't have de option.
Is there another way to solve this problem? modifying something in K2 files?
congratulations for this extension! I hope you could help us with this!
thks!
George Szubinski said:ok resolved now:Wolf - look at www.phpbuilder.com/board/showthread.php?t=10335517 for background.also www.sugarcrm.com/forums/showthread.php?t=39431 for more background.All you need to do is go and edit your php.ini file - search for mbstring and remove the comment to enable it and resave your ini file. Go and restart Apache.georgeGeorge Szubinski said:ok, these seem to be using new functions:mine in the code looks like:mb_internal_encoding("UTF-8");$this->alias = trim(mb_strtolower($this->alias));$this->alias = str_replace('-', ' ', $this->alias);$this->alias = mb_ereg_replace(':space:+', ' ', $this->alias);$this->alias = trim(str_replace(' ', '-', $this->alias));$this->alias = str_replace('.', '', $this->alias);$stripthese = ',|~|!|@|%|^|(|)|<|>|:|;|{|}|[|]|&|`|„|‹|’|‘|“|�|•|›|«|´|»|°';$strips = explode('|', $stripthese);foreach ($strips as $strip) {$this->alias = str_replace($strip, '', $this->alias);So I need someone with mysql knowledge to tell me how I enable this - or is it something we need to enable in phpHELP PLEASE!!!George Szubinski said:I had this and I put it down to the fact that I did a new install and should have done an upgrade...I have now built a brand new Joomla site 1.5.14 and installed simple image and the full K2 from unified installer - all I had was warning because I do not have joofish....So, just tried to add a category, entered a name, pressed save and bang same error as previous poster.Fatal error: Call to undefined function mb_internal_encoding() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\curry2\administrator\components\com_k2\tables\k2category.php on line 46Can we please have some guidance on what we are doing wrong please....!!!!george
Please Log in or Create an account to join the conversation.
- iImagine 'n' iKnow Ltd.
-
- Offline
- Senior Member
- Posts: 44
I forgot - I am doing all this locally on my dev box until I deploy but it does raise a good point about deployment:
You just need to contact the hosting company support and ask them to enable access to the dll exactly as I have described - it should not pose any problems to other customers at all.
george
Dani Carull said:Hi!
I'm getting the same error, but i don't have access to the php.ini file because my hosting service don't have de option.
Is there another way to solve this problem? modifying something in K2 files?
congratulations for this extension! I hope you could help us with this!
thks!
George Szubinski said:ok resolved now:Wolf - look at www.phpbuilder.com/board/showthread.php?t=10335517 for background.also www.sugarcrm.com/forums/showthread.php?t=39431 for more background.All you need to do is go and edit your php.ini file - search for mbstring and remove the comment to enable it and resave your ini file. Go and restart Apache.georgeGeorge Szubinski said:ok, these seem to be using new functions:mine in the code looks like:mb_internal_encoding("UTF-8");$this->alias = trim(mb_strtolower($this->alias));$this->alias = str_replace('-', ' ', $this->alias);$this->alias = mb_ereg_replace(':space:+', ' ', $this->alias);$this->alias = trim(str_replace(' ', '-', $this->alias));$this->alias = str_replace('.', '', $this->alias);$stripthese = ',|~|!|@|%|^|(|)|<|>|:|;|{|}|[|]|&|`|„|‹|’|‘|“|�|•|›|«|´|»|°';$strips = explode('|', $stripthese);foreach ($strips as $strip) {$this->alias = str_replace($strip, '', $this->alias);So I need someone with mysql knowledge to tell me how I enable this - or is it something we need to enable in phpHELP PLEASE!!!George Szubinski said:I had this and I put it down to the fact that I did a new install and should have done an upgrade...I have now built a brand new Joomla site 1.5.14 and installed simple image and the full K2 from unified installer - all I had was warning because I do not have joofish....So, just tried to add a category, entered a name, pressed save and bang same error as previous poster.Fatal error: Call to undefined function mb_internal_encoding() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\curry2\administrator\components\com_k2\tables\k2category.php on line 46Can we please have some guidance on what we are doing wrong please....!!!!george
Please Log in or Create an account to join the conversation.
- Dani Carull
-
- Offline
- New Member
- Posts: 2
after some support tickets in my hosting service, they have actived both extensions.
Only one thing: my hosting is under Linux. could be a prolem?
copenhagen.hostgo.com/phpinfo.php
In this link you can see both services in actived, but the problem is persisting.
what do you think?
thank you for your help.
best regards
dani.
Please Log in or Create an account to join the conversation.
- iImagine 'n' iKnow Ltd.
-
- Offline
- Senior Member
- Posts: 44
Ask them for the contents of /usr/local/php4/lib/php.in and post here, my phpinfo makes no mention of dbstring so we need to look at the php.ini file to see (a) if it is enabled and (b) where its finding the extension - it maybe missing...
Linux should not be an issue, but they seem to be using older versions of both Apache and PHP .. and probably older versions of mbstring.
They are using Apache I am using Apache 2.2, they are using PHP 4.4.9 PHP Extensions 20020429 I am using PHP 5.2.9-2 PHP Extensions 2006.06.13 - THESE are more likely to be the problem.
They really need to upgrade both or you need different hosting provider - they are not providing you with the latest stable service
george
Dani Carull said:Hi geroge, after some support tickets in my hosting service, they have actived both extensions.
Only one thing: my hosting is under Linux. could be a prolem?
copenhagen.hostgo.com/phpinfo.php
In this link you can see both services in actived, but the problem is persisting.
what do you think?
thank you for your help.
best regards
dani.
Please Log in or Create an account to join the conversation.
- Hankins Development
-
- Offline
- New Member
- Posts: 4
Thanks
CH
George Szubinski said:DaniI forgot - I am doing all this locally on my dev box until I deploy but it does raise a good point about deployment:You just need to contact the hosting company support and ask them to enable access to the dll exactly as I have described - it should not pose any problems to other customers at all.georgeDani Carull said:Hi!I'm getting the same error, but i don't have access to the php.ini file because my hosting service don't have de option.Is there another way to solve this problem? modifying something in K2 files?congratulations for this extension! I hope you could help us with this!thks!George Szubinski said:ok resolved now:Wolf - look at www.phpbuilder.com/board/showthread.php?t=10335517 for background.also www.sugarcrm.com/forums/showthread.php?t=39431 for more background.All you need to do is go and edit your php.ini file - search for mbstring and remove the comment to enable it and resave your ini file. Go and restart Apache.georgeGeorge Szubinski said:ok, these seem to be using new functions:mine in the code looks like:mb_internal_encoding("UTF-8");$this->alias = trim(mb_strtolower($this->alias));$this->alias = str_replace('-', ' ', $this->alias);$this->alias = mb_ereg_replace(':space:+', ' ', $this->alias);$this->alias = trim(str_replace(' ', '-', $this->alias));$this->alias = str_replace('.', '', $this->alias);$stripthese = ',|~|!|@|%|^|(|)|<|>|:|;|{|}|[|]|&|`|„|‹|’|‘|“|�|•|›|«|´|»|°';$strips = explode('|', $stripthese);foreach ($strips as $strip) {$this->alias = str_replace($strip, '', $this->alias);So I need someone with mysql knowledge to tell me how I enable this - or is it something we need to enable in phpHELP PLEASE!!!George Szubinski said:I had this and I put it down to the fact that I did a new install and should have done an upgrade...I have now built a brand new Joomla site 1.5.14 and installed simple image and the full K2 from unified installer - all I had was warning because I do not have joofish....So, just tried to add a category, entered a name, pressed save and bang same error as previous poster.Fatal error: Call to undefined function mb_internal_encoding() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\curry2\administrator\components\com_k2\tables\k2category.php on line 46Can we please have some guidance on what we are doing wrong please....!!!!george
Please Log in or Create an account to join the conversation.
- Viper Web Solutions
-
- Offline
- New Member
- Posts: 1
mbstring.detect_order: auto
mbstring.encoding_translation: off
mbstring.func_overload: 0
mbstring.http_input: auto
mbstring.http_output: SJIS
mbstring.internal_encoding: EUC-JP
mbstring.language: Japanese (I don't know what this is)
mbstring.substitute_character: none
Please Log in or Create an account to join the conversation.
- Heleen Heijnis
-
- Offline
- New Member
- Posts: 4
I encounter the same problem: Fatal error: Call to undefined function mb_ereg_replace() in /mnt/web4/53/33/51645033/htdocs/administrator/components/com_k2/tables/k2category.php on line 49
However, when I look at my PHP settings in Joomla, Multibyte string support is enabled.
What could be the problem?
Thanks in advance!
Please Log in or Create an account to join the conversation.
- Toryalai Hart
-
- Offline
- New Member
- Posts: 9
Fatal error: Call to undefined function mb_internal_encoding() in /xxx/xxx/public_html/xxx/administrator/components/com_k2/tables/k2category.php on line 49
Please Log in or Create an account to join the conversation.
- Toryalai Hart
-
- Offline
- New Member
- Posts: 9
Please Log in or Create an account to join the conversation.