• Resolved CSTMCLDSADMN

    (@cstmcldsadmn)


    Hi,

    I tried all this now.

    wp-content/plugins/woocommerce-pdf-invoices-packing-slips/tmp/

    ..this is writable according to the plugin status but I can’t make it unwritable. I change this by right click on the tmp folder but It simply doens’t change in my backend plugin status.

    Further I got these error codes when DEBUG is true.

    Invoice:

    Fatal error: Allowed memory size of 100663296 bytes exhausted (tried to allocate 5252240 bytes) in /var/www/web651/html/dabstorecom/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/lib/dompdf/lib/class.pdf.php on line 3894

    Packing Slip:

    Warning: tempnam() [function.tempnam]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/web651/html/:/var/www/web651/phptmp/:/var/www/web651/files/:/var/www/web651/atd/:/usr/share/php/) in /var/www/web651/html/dabstorecom/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/lib/dompdf/lib/class.pdf.php on line 3909

    Warning: tempnam() [function.tempnam]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/web651/html/:/var/www/web651/phptmp/:/var/www/web651/files/:/var/www/web651/atd/:/usr/share/php/) in /var/www/web651/html/dabstorecom/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/lib/dompdf/lib/class.pdf.php on line 3914

    Fatal error: Allowed memory size of 100663296 bytes exhausted (tried to allocate 1313060 bytes) in /var/www/web651/html/dabstorecom/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/lib/dompdf/lib/class.pdf.php on line 3978

    I set my memory limit in WP to 256 and it didn’t change anything.

    According to another plugin I have 96MB = 72% in use. It worked just fine a few weeks ago and i haven’t add any plugins. Just 2 pictures and deleted them again. So my memory should be fine. As I said it worked fine 3 weeks ago.

    I would love to use this plugin as many others do.

    Thank you

    https://ww.wp.xz.cn/plugins/woocommerce-pdf-invoices-packing-slips/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi there,
    There’s two issues here:

    Fatal error: Allowed memory size etc.
    This is definitely because the plugin doesn’t have enough memory available. This is working memory, so it’s not related to memory used by uploading pictures or installing plugins. If changing it to 256 didn’t change a thing, then it sounds like it’s capped on the server level. You need to contact your site admin/host and ask them if they can change the php memory limit for you. 256M should definitely fix it.

    Warning: open_basedir restriction in effect.
    This is only a warning and does not necessarily mean the plugin won’t work. It’s possible that you can’t use any remote fonts for example, but the plugin might just work fine otherwise – I can’t tell from here. Again, you send that error to your site host, they should be able to help you with this. Note that this has nothing to do with the plugins tmp folders, but with the php tmp folder! This is completely outside of the wordpress domain. This error may even be the cause of the fatal error, because the pdf engine can’t write to a tmp file it needs to keep everything in memory (not 100% sure about that though).

    I hope you’ll be able to solve the issue with the above!

    Ewout

    Thread Starter CSTMCLDSADMN

    (@cstmcldsadmn)

    Hi,

    thank you very much.

    I solved the problem by contacting my hoster and switching my PHP Version from 5.3 to 5.4. This increased my memory limit with 60%.

    Thank you

    Plugin Contributor Ewout

    (@pomegranate)

    That’s great! I didn’t know the PHP version makes such a big difference in memory use – good to know.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Still fatal error’ is closed to new replies.