• Resolved abui1970

    (@abui1970)


    Hello,

    i have a order with 69 Positions and the PDF invoice could not be produced:

    Fatal error: Out of memory (allocated 69992448) (tried to allocate 46 bytes) in /html/store/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/lib/dompdf/include/frame_factory.cls.php on line 201

    WordPress PHP-Memory Limit: 256 MB
    WooCommerce Version: 2.0.20
    WooCommerce Datenbank-Version: 2.0.20
    WordPress Version: WPMU 3.8.3
    Webserver Information: HTTPD
    PHP Version: 5.3.27
    MySQL Version: 5.5.17

    I need a customer template but with simple template it also doesn’t work.
    Other invoices ar working.

    Please help me fast.
    Thanks!!!

    https://www.ads-software.com/plugins/woocommerce-pdf-invoices-packing-slips/

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

    (@pomegranate)

    Hello Abui,
    Are you on shared hosting? The wordpress memory limit does not help when you are on shared hosting and other processes are eating up memory. I have not tested with large orders like that. Memory use of the PDF engine is unfortunately not something I can control.

    You could try and run the P3 profiler and see if that gives you information on which are the heavy plugins on your install. WPMU might be part of what causes the heavy load.

    Let me know what you find!

    Ewout

    Thread Starter abui1970

    (@abui1970)

    html output works with this in funktions.php

    add_filter( 'wpo_wcpdf_output_html', '__return_true' );
    add_filter( 'wpo_wcpdf_use_path', '__return_false' );

    BR

    Plugin Contributor Ewout

    (@pomegranate)

    Yes, it’s not the HTML that causes the issue, it’s generating the PDF that consumes memory. P3 profiler is free and can be downloaded here: https://www.ads-software.com/plugins/p3-profiler/

    Thread Starter abui1970

    (@abui1970)

    I profiled my WordPress site’s performance using the Profile Plugin and I wanted
    to share the results with you. Please take a look at the information below:

    WordPress Plugin Profile Report
    ===========================================
    Report date: 25. April 2014
    Theme name: Hamburg Child
    Pages browsed: 9
    Avg. load time: 1.4669 sec
    Number of plugins: 22
    Plugin impact: 50.28% of load time
    Avg. plugin time: 0.7376 sec
    Avg. core time: 0.5765 sec
    Avg. theme time: 0.0972 sec
    Avg. mem usage: 43.06 MB
    Avg. ticks: 11,440
    Avg. db queries : 112.78
    Margin of error : 0.0557 sec
    
    Plugin list:
    ===========================================
    P3 (Plugin Performance Profiler) - 0.0093 sec - 1.26%
    Backup Creator - 0.0914 sec - 12.40%
    Backwpup Pro - 0.0016 sec - 0.22%
    Blog Copier - 0.0013 sec - 0.18%
    BM Custom Login - 0.0194 sec - 2.62%
    CodeStyling Localization - 0.0120 sec - 1.63%
    Contact Form 7 - 0.0391 sec - 5.31%
    Duplicator - 0.0100 sec - 1.36%
    Mod Woocommerce Magiczoomplus  - 0.0685 sec - 9.28%
    Ns Cloner Site Copier - 0.0015 sec - 0.20%
    Post Types Order - 0.0609 sec - 8.26%
    Regenerate Thumbnails - 0.0025 sec - 0.33%
    WooCommerce Print Invoices & Delivery Notes - 0.0073 sec - 0.99%
    Woocommerce Pdf Invoices Packing Slips - 0.0086 sec - 1.16%
    WooCommerce PDF Invoices & Packing Slips Premium Templates - 0.0004 sec - 0.06%
    WooCommerce Role Based Prices — Custom Functions - 0.0054 sec - 0.74%
    Woocommerce Role Based Prices - 0.0163 sec - 2.20%
    WooCommerce - 0.3186 sec - 43.19%
    WP Overnight Sidekick - 0.0055 sec - 0.74%
    Members - 0.0073 sec - 1.00%
    WooCommerce Deutsch (de_DE) - 0.0179 sec - 2.43%
    WP Native Dashboard - 0.0327 sec - 4.44%

    and now?
    thanks!!

    Plugin Contributor Ewout

    (@pomegranate)

    Now you have a better overview of what plugins are affecting your site load. I don’t see anything strange, so I cannot say what the issue is here. Again, it could be the fact that you run Multisite (how many sites are under this install?), and/or your hosts available memory. You can set the WordPress memory limit very high but if there’s no memory available then that doesn’t help… Especially for multisite.

    At this point I’m not sure if I could help out further.

    On a sidenote, the ‘out of memory’ reports that it’s out of memory at 66.75MB (69992448 bytes). Your ‘default’ load as per P3 is 43.06MB, so there’s relatively little room for the PDF engine. Also, the 66,75 doesn’t correspond with the 256MB wordpress limit. I recommend contacting your host about this issue.

    Thread Starter abui1970

    (@abui1970)

    Hi Ewout,
    I’ve moved to a “bigger” server and need for the PDF generation with 70 positions 300 MB memory.
    So it works now!

    Plugin Contributor Ewout

    (@pomegranate)

    Great! Thanks for the feedback – enjoy!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Too much positions in order’ is closed to new replies.