WordPress.org

Forums

WP Post to PDF Enhanced
[resolved] Fatal error (5 posts)

  1. tson
    Member
    Posted 1 year ago #

    Hi,
    I've installed the plugin and it is displaying the pdf icon as it should. However, when I click on the icon I get the following message:

    Fatal error: Call to undefined function mb_detect_encoding() in /public_html/wp-content/plugins/wp-post-to-pdf-enhanced/simplehtmldom/simple-html-dom.php on line 988

    Any ideas?
    Thanks

    https://wordpress.org/plugins/wp-post-to-pdf-enhanced/

  2. Lewis Rosenthal
    Member
    Plugin Author

    Posted 1 year ago #

    Apologies for the delay.

    This error is a result of your PHP installation not including the mbstring extension (see the PHP manual for more info).

    Good luck.

    Lewis

  3. tson
    Member
    Posted 1 year ago #

    Thanks for the reply. I'm not a developer and I don't know anything about PHP so could you just tell me if this is something my hosting provider needs to do or something I can do myself in WordPress?

  4. Lewis Rosenthal
    Member
    Plugin Author

    Posted 1 year ago #

    You're welcome.

    Indeed, this is something which needs to be done on the server side (by your hosting provider, if you don't self-host). PHP has some modules which are compiled into the executable and a number of dynamic modules (extensions) which may be loaded on startup (specified in the configuration file). The mbstring extension is one such module. Without it loaded, any applications which depend upon it will fail.

    I'll add a note about this dependency in the docs. As mbstring is a pretty "standard" extension (i.e., shipped in the typical PHP distribution and used by many things), I hadn't even considered that it might not be loaded in a standard web server configuration (not that I was specifically aware of Simple HTML Dom's dependency, though it makes sense; anything doing string matches with potentially multi-byte character sets is likely going to want it).

    Again, good luck with this.

    Lewis

  5. tson
    Member
    Posted 1 year ago #

    Thanks very much for taking the time to explain it. I'll get on to my hosting provider!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Post to PDF Enhanced
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.