WordPress.org

Ready to get started?Download WordPress

Forums

Wp-Insert
[resolved] Fatal error: Call to undefined function mb_internal_encoding() (6 posts)

  1. erwpacc
    Member
    Posted 1 year ago #

    hello,

    i just updated the plugin and got the following error:

    Fatal error: Call to undefined function mb_internal_encoding() in wp-content/plugins/wp-insert/includes/common/geoip/geoip.inc on line 584

    which basically crashed my site, so i had to ssh over to the server and manually delete the directory.

    any ideas what caused this?

    http://wordpress.org/extend/plugins/wp-insert/

  2. namith.jawahar
    Member
    Plugin Author

    Posted 1 year ago #

    Are you on the latest version of WordPress?

    mb_internal_encoding() is a function built in into PHP 5 so it should be available if you are on WordPress 3+ as WordPress 3+ need PHP 5 by default
    http://php.net/manual/en/function.mb-internal-encoding.php

  3. erwpacc
    Member
    Posted 1 year ago #

    i am running wordpress version 3.4.2
    php version 5.3.16

  4. namith.jawahar
    Member
    Plugin Author

    Posted 1 year ago #

    Try asking your host to activate the PHP mbstring extension...

    The function in question is being used by the GEO location API. If more people have issues with the module I will try temporarily deactivating it until a solution is found..

  5. erwpacc
    Member
    Posted 1 year ago #

    lol...
    i am the host... =(
    in anycase, i rebuilt the server w/the extension enabled

    one thing to point out is that mbstring is a non-default extension:
    http://us2.php.net/manual/en/mbstring.installation.php

    so possibly a notice or disclaimer acknowledging the dependency on the extension would be appropriate?

    alternatively, i don't know much about php, but if there is some type of error handling that can be done to exit gracefully if the function call fails, that might be a bit less intrusive.

    thanks for your help and quick responses!
    problem is resolved.

  6. namith.jawahar
    Member
    Plugin Author

    Posted 1 year ago #

    I understand what you are suggesting..The thing preventing me from modifying that files is; its a third party API file which I will have to update regularly to keep up with the GEO location service. But now that I think about it, I can check for all non default extensions the API uses before loading the API or write to GEO IP developers to add some error handling in the API service. I have decided to do both.

    Thanks for your suggestions.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.