MiniFrontPage - Fatal error: Call to undefined function mb_subst

I have upgraded a website to Joomla 2.5.9.
I did the upgrade on a WAMP on my computer and MiniFrontPage worked perfectly.

I uploaded it to the web server and had the following error: Fatal error: Call to undefined function mb_substr() in /web1/user28377/website/modules/mod_minifrontpage/helper.php on line 480

As a result the whole of the page concerned will not load (not just the MiniFrontpage module).

Details:
MiniFrontpage 2.2.0
Joomla 2.5.9 stable
PHP Version 5.2.17
Web Server Apache/2.2.3 (CentOS)
Database Version 5.1.54-1ubuntu4

I should be very grateful for your help
11 years 2 weeks ago #1 by K Warr

Please Log in or Create an account to join the conversation.

HEllo
It looks like your php does not have mbstring enabled.
mbstring (mb_substr function) is not a built-in extension. You must enable it by having the appropriate files and configuring PHP correctly. Some information can be found in the link provided, your webhost should be able to help you with the rest.
11 years 2 weeks ago #2 by erwinschro

Please Log in or Create an account to join the conversation.

Thank you for your rapid reply.

I have been in correspondence with the hosting company.

It turns out that mbstring was enabled. To my surprise they hacked the helper.php file and Minifrontpage is now working on our website.

I tried to attach the edited file to this message but it prevented me from submitting the message. I think that their hack was to replace mb_substr with substr.

Many thanks

Kip Warr
11 years 1 week ago #3 by K Warr

Please Log in or Create an account to join the conversation.

Hi Kip

Can you zip the edited helper.php file and use Upload Attachement below so we can take a look and test too?

thanks
11 years 1 week ago #4 by erwinschro

Please Log in or Create an account to join the conversation.

Here it is.

Kip
11 years 1 week ago #5 by K Warr

Please Log in or Create an account to join the conversation.

Kip

yes they've changed all mb_substr function to just substr(). So is it 100% working now on your site? no strange character exist or anything?
11 years 1 week ago #6 by erwinschro

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum