Go Back   Pligg CMS Forum > Pligg Development > Bug Report

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-13-2006, 05:55 PM
New Pligger
 
Join Date: Mar 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Fatal error: Call to undefined function: mb_strtolower() ?

Installed 6.01 . everything fine . until I go an test it and I try to post a story

Fatal error: Call to undefined function: mb_strtolower() in /home/web/public_html/libs/tags.php on line 12

i tried searching for the function but it doesn't exist. anyone any ideas? anyone got this script working?

thanks

Dust
Reply With Quote
  #2 (permalink)  
Old 03-13-2006, 06:02 PM
New Pligger
 
Join Date: Mar 2006
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post
Hi,

Which version of PHP are you using? You can find the version by going to
http://[yourpliggurl.com]/info.php

where [yourpliggurl] is the domain you've installed pligg on.

If your PHP is below version 4 then you'll have to upgrade php because mb_strtolower is (PHP 4 >= 4.3.0, PHP 5)

http://www.zend.com/manual/function.mb-strtolower.php

Last edited by garg; 03-13-2006 at 06:07 PM..
Reply With Quote
  #3 (permalink)  
Old 03-13-2006, 07:57 PM
Casual Pligger
 
Join Date: Dec 2005
Location: Brooklyn, NY
Posts: 75
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to KingPin Send a message via AIM to KingPin Send a message via MSN to KingPin Send a message via Yahoo to KingPin
workaround :

goto ./libs/tags.php and on line 12 change

Quote:
function tags_normalize_string($string) {
$string = preg_replace('/[\.\,] *$/', "", $string);
return mb_strtolower($string, 'UTF-8');
}
to

Quote:
function tags_normalize_string($string) {
$string = preg_replace('/[\.\,] *$/', "", $string);
return strtolower($string);
}
in other words change mb_strtolower to strtolower and ($string, 'UTF-8') to ($string).
Reply With Quote
  #4 (permalink)  
Old 03-14-2006, 05:02 AM
New Pligger
 
Join Date: Mar 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
thanks

changed and fixed
Reply With Quote
  #5 (permalink)  
Old 03-18-2006, 02:55 PM
New Pligger
 
Join Date: Mar 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by garg
Hi,

Which version of PHP are you using? You can find the version by going to
http://[yourpliggurl.com]/info.php

where [yourpliggurl] is the domain you've installed pligg on.

If your PHP is below version 4 then you'll have to upgrade php because mb_strtolower is (PHP 4 >= 4.3.0, PHP 5)

http://www.zend.com/manual/function.mb-strtolower.php
I have version 4.3.10 installed and I am getting the same error. I'll try the workaround KingPin suggested, but just wanted to let you know it's not just limited to 4 and below.
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Fatal error: Call to undefined function checklevel() in evansun Installation and Upgrade Help 0 09-14-2007 10:45 PM
[SOLVED] Clean install: Submit New Story = Fatal error: Call to undefined function: starguy Installation and Upgrade Help 4 06-21-2007 11:17 PM
Fatal error: Call to undefined function: get_search_clause() in /var/www/demo/podcas hm2k Bug Report 5 10-06-2006 07:59 AM
Fatal error: Call to undefined function: getmyurl() pligglover Installation and Upgrade Help 1 07-30-2006 12:36 AM
Fatal error: Call to undefined function: sha1() in /libs/html1.ph wo4w Installation and Upgrade Help 0 06-19-2006 05:59 PM


Search Engine Friendly URLs by vBSEO 3.2.0