WordPress.org

Forums

[Plugin: StatPress Reloaded] Error after update (7 posts)

  1. The_Smurf
    Member
    Posted 6 years ago #

    Updated to latest version and was met with this "Fatal error: Call to undefined function mb_substr() in /home/data/www/blog/wp-content/plugins/statpress-reloaded/statpress.php on line 295" after enableing it again clicking in "Statpress" in the menu.

    Help anyone ?

    It worked fine before update.

  2. matrixagent
    Member
    Posted 6 years ago #

    It seems you have quite an outdated PHP version.
    mb_substr() needs (PHP 4 >= 4.0.6, PHP 5), what's your version?

  3. Doniaa
    Member
    Posted 6 years ago #

    I have the same problem

    PHP Version 4.4.7

  4. matrixagent
    Member
    Posted 6 years ago #

    MultiByte-Support needs to be enabled, there should be an extensions called "php_mbstring" - it is needed to be activated in your php-configuration.

  5. Doniaa
    Member
    Posted 6 years ago #

    I can't do it, I can't edit the php-configuration, it's my provider who can !

    This means I won't be able to use the plugin anymore?

  6. matrixagent
    Member
    Posted 6 years ago #

    I fear so. MultiByte-support is a PHP feature that any provider should support by now, it has been in there for years. Sadly it's no default-on option, as more and more software is using it (next major vBulletin for example will also require it iirc).

  7. hironico
    Member
    Posted 6 years ago #

    hi folks,

    I got the same problem.
    I looked at the statpress.php file and discovered that unless you're living in a country with multibyte characters (eg Japan, China etc...) then you can safely use the old 'normal' version of this function. Here's what you have to do:

    please open the file named statpress.php with your favorite TEXT file editor (notepad will be fine). then replace all occurences of the word 'mb_substr' with 'substr'. Save the changes and upload the newly modified statpress.php file on your webserver. Et voila !

    Cheers!

    hironico.

Topic Closed

This topic has been closed to new replies.

About this Topic