WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Wp-Insert] Fatal error: Call to undefined function mb_internal_encoding()

[Resolved] [Plugin: Wp-Insert] Fatal error: Call to undefined function mb_internal_encoding()

  • 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/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author namith.jawahar
    Participant

    @namithjawahar

    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

    i am running wordpress version 3.4.2
    php version 5.3.16

    Plugin Author namith.jawahar
    Participant

    @namithjawahar

    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..

    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.

    Plugin Author namith.jawahar
    Participant

    @namithjawahar

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] [Plugin: Wp-Insert] Fatal error: Call to undefined function mb_internal_encoding()’ is closed to new replies.