Support » Plugin: WP Post to PDF Enhanced » Clean WP install plus plugin – 500 error

  • Resolved SteveCliff

    (@stevecliff)


    I’ve tested on a clean 4.5 WP install with only this plugin installed. I’ve not changed any parameters from default but when I click on the PDF symbol on a page I simply get a 500 error from the server.

    I’m not sure where to start looking to be honest! The nginx logs show this though (I’ve amended some info for security reasons):

    2016/04/17 18:50:09 [error] 11030#0: *2681 FastCGI sent in stderr: “PHP message: PHP Fatal error: Call to undefined function mb_detect_encoding() in /usr/share/nginx/smc/wp-content
    /plugins/wp-post-to-pdf-enhanced/simplehtmldom/simple-html-dom.php on line 988″ while reading response header from upstream, client: x.x.x.x, server: smc.xxx.net, reque
    st: “GET /hello-world/?format=pdf HTTP/1.0”, upstream: “fastcgi://unix://var/run/php-fpm/php-fpm.sock:”, host: “smc.xxx.net”, referrer: “https://smc.xxx.net/”

    Would you have any ideas why this is happening? (I see a couple of other posts regarding error 500 as well, although obviously I understand it’s a server error not actually your PHP code)

    Thanks!
    Steve.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Lewis Rosenthal

    (@lewisr)

    Hi, Steve…

    Your first clue is:

    Call to undefined function mb_detect_encoding()

    TCPDF (and thus, this plugin) relies on mbstring. So, make sure that the mbstring module is installed in PHP as well as the GD library.

    Good luck!

    Lewis

    Spot on Lewis! I’m a bit new to this 🙂
    I installed mbstring and voila – I have a PDF!

    Thanks – I appreciate the quick response.

    Cheers,
    Steve.

    Plugin Author Lewis Rosenthal

    (@lewisr)

    Glad I could help, Steve!

    Now to find some time to test against WP 4.5 and push some updates…

    Cheers

    Lewis

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Clean WP install plus plugin – 500 error’ is closed to new replies.