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

    (@pomegranate)

    Hi Gangsar Swapurba,
    Without some more information I cannot help you.

    • Do you get this problem with the default template or a custom template?
    • How much memory do you have available for WordPress? (check via WooCommerce – System Status)
    • Have you enabled WP_DEBUG? If you do, do you get any errors?
    • Can you output to HTML (see code below) and check for errors?

    Code to output to HTML (put this in your theme’s functions.php, make sure not to put it after the last ?>):

    add_filter( 'wpo_wcpdf_output_html', '__return_true' );
    add_filter( 'wpo_wcpdf_use_path', '__return_false' );
    Thread Starter Gangsar Swapurba

    (@gangsarswapurba)

    Do you get this problem with the default template or a custom template?

    i have not installed similar this plugin, exactly with other plugins which generating pdf

    How much memory do you have available for WordPress? (check via WooCommerce – System Status)

    this is my system status generated by WooCommerce – System Status https://pastebin.com/udgS56hh

    Have you enabled WP_DEBUG? If you do, do you get any errors?

    i have not. i will do try

    Can you output to HTML (see code below) and check for errors?

    this is what i got when generating invoice in WooCommerce – Orders admin page after adding it
    add_filter( ‘wpo_wcpdf_output_html’, ‘__return_true’ );
    add_filter( ‘wpo_wcpdf_use_path’, ‘__return_false’ );
    to my theme functions file.

    https://dinokidz.co.id/wp-content/uploads/2014/02/pdf-html.png

    Thread Starter Gangsar Swapurba

    (@gangsarswapurba)

    i got it

    after doing debug in wp, by adding wp_debug = true in my wp_config.php, its output:

    Fatal error: Uncaught exception ‘Exception’ with message ‘The PHP GD extension is required, but is not installed.’ in /home/

    and i install gd extension in my php.ini.

    now it works.

    i guess this case is resolved.

    Plugin Contributor Ewout

    (@pomegranate)

    Glad to hear you were able to solve the issue so quickly & thanks for reporting.
    Let me know if you have any other questions and leave a review if you like the plugin ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘can not generate pdf’ is closed to new replies.