WordPress.org

Forums

WP Post to PDF
[resolved] Love this plugin but my site is getting errors (10 posts)

  1. mshanhun
    Member
    Posted 2 years ago #

    Whenever I save a post I get the following error.
    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 1050586 bytes) in /home/mshanhun/digitalscrapbookinghq.com/wp-content/plugins/wp-post-to-pdf/wp-post-to-pdf.php on line 255

    Also, my site is now very slow. Would this be to do with the plugin?

    Any suggestions?

    Thanks!

    http://wordpress.org/extend/plugins/wp-post-to-pdf/

  2. mshanhun
    Member
    Posted 2 years ago #

    Also, my PDF for the page I edited was blank :(

  3. Neerav Dobaria
    Member
    Plugin Author

    Posted 2 years ago #

    That error is because of script is running out of memory when generating PDF file. You need to ask your host to update allowed memory limit and plugin will work fine.

    Plugin will not slow down your site by any way. PDF is generated when you update/create your post. If you have already created post, in that case it will be created when first attempt to download. Rest of the time, already existed PDF is delivered to user so nothing to worry for speed.

    Regarding blank PDF, that issue has been reported many times but nobody ever wanted to share more details with me. In my test it just run fine. If you are ready to share details with me, I'll be able to fix it.

    Regards,
    Neerav

  4. mshanhun
    Member
    Posted 2 years ago #

    Sure

    I generated the PDF from an existing page
    It worked fine

    Then I went into the post, edited it and saved it.

    Then I got this error
    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 491520 bytes) in /home/mshanhun/digitalscrapbookinghq.com/wp-content/plugins/wp-post-to-pdf/tcpdf/tcpdf.php on line 10225

    However, the PDF was fine this time. Odd

    What is causing the error?

  5. mshanhun
    Member
    Posted 2 years ago #

    Ok now I'm getting a blank file for digitalscrapbookinghq.com/store

  6. Neerav Dobaria
    Member
    Plugin Author

    Posted 2 years ago #

    I have released new version with fix for blank PDF. Thanks for directing me to page where you have that error.

    For following error,

    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 491520 bytes) in /home/mshanhun/digitalscrapbookinghq.com/wp-content/plugins/wp-post-to-pdf/tcpdf/tcpdf.php on line 10225

    You have to increase memory limit of your server. You may have to consult your hosting provider for that.

  7. mshanhun
    Member
    Posted 2 years ago #

    Ok I did increase the memory

    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 122880 bytes) in /home/mshanhun/digitalscrapbookinghq.com/wp-content/plugins/wp-post-to-pdf/tcpdf/tcpdf.php on line 20748

    Still having issues

  8. Neerav Dobaria
    Member
    Plugin Author

    Posted 2 years ago #

    That means its still not sufficient. You have to set it to at least 128M.

  9. mshanhun
    Member
    Posted 2 years ago #

    Thanks it's working now!

  10. Neerav Dobaria
    Member
    Plugin Author

    Posted 2 years ago #

    Glad to hear that!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic