• Resolved jordyvdl

    (@jordyvdl)


    Hi there,

    I want to use this plugin, but when I click on the icon to download the invoice nothing happend. What can I do? The preferences are good.

    PHP Version 5.0 5.3.27
    DOMDocument extension Yes 20031129
    PCRE Yes Yes
    Zlib Yes 1.1
    MBString extension Yes Yes
    GD Yes Yes
    opcache For better performances
    No. Recommended for better performances
    GMagick or IMagick Better with transparent PNG images
    No. Recommended for better performances
    WP Memory Limit Recommended: 64MB (128MB for optimal performance)
    See: Increasing memory allocated to PHP 256M

    https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/

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

    (@pomegranate)

    Hi Jordy,
    I’m sorry to hear that it doesn’t work for you. There are several possible reasons that could be causing this, also things that cannot be put in the status panel.

    First thing to check is what happens when you turn on WP_DEBUG. Do you get any errors? If that doesn’t give you any information, output to HTML:

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

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

    Check for errors now, and if you don’t see any errors still, check the page source.
    There’s a fairly good chance that this will help you find the root cause of your problems!

    Thread Starter jordyvdl

    (@jordyvdl)

    These are the errors I get

    Notice: wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the
    wp_enqueue_scripts
    ,
    admin_enqueue_scripts
    , or
    login_enqueue_scripts
    hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home/jordyga58/domains/tekniks.nl/public_html/wp-includes/functions.php on line 3245

    Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/jordyga58/domains/tekniks.nl/public_html/wp-includes/functions.php:3245) in /home/jordyga58/domains/tekniks.nl/public_html/wp-content/plugins/yith-woocommerce-wishlist/class.yith-wcwl.php on line 54

    Warning: Cannot modify header information – headers already sent by (output started at /home/jordyga58/domains/tekniks.nl/public_html/wp-includes/functions.php:3245) in /home/jordyga58/domains/tekniks.nl/public_html/wp-content/plugins/yith-woocommerce-wishlist/functions.yith-wcwl.php on line 118

    Notice: Cookie cannot be set – headers already sent in /home/jordyga58/domains/tekniks.nl/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 375

    Notice: Cookie cannot be set – headers already sent in /home/jordyga58/domains/tekniks.nl/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 375

    Notice: Cookie cannot be set – headers already sent in /home/jordyga58/domains/tekniks.nl/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 375

    Plugin Contributor Ewout

    (@pomegranate)

    This is the problem: your site has several errors which mess up the header (inserting a blank line or more). You need to find the root cause of this error, if you do, this will probably solve your issues. You can start by checking if there is an empty line after the last ?> in your theme’s functions.php (which could be the cause of the headers already sent error). If this is indeed the case, it might already solve the problem with the PDF plugin. You can also try if disabling the yith-woocommerce-wishlist helps, since this is causing the only warnings here.

    Good luck and let me know if you have found the culprit.

    Thread Starter jordyvdl

    (@jordyvdl)

    Now I get the following errors:

    Notice: wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home/jordyga58/domains/tekniks.nl/public_html/wp-includes/functions.php on line 3245

    Notice: Cookie cannot be set – headers already sent in /home/jordyga58/domains/tekniks.nl/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 375

    Notice: Cookie cannot be set – headers already sent in /home/jordyga58/domains/tekniks.nl/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 375

    Notice: Cookie cannot be set – headers already sent in /home/jordyga58/domains/tekniks.nl/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 375

    Plugin Contributor Ewout

    (@pomegranate)

    So there’s still some ‘early output’ somewhere.

    ‘headers already sent’ means that before wordpress expects any output, there has been output already. This could be an error sometimes, but it could also be stuff like empty lines outside of php. This output will become plain text by default, and it cannot be turned into for example a pdf document (in the case of the plugin) or a cookie (like the other errors you see).

    Try to find out whether it’s your theme or a plugin that generates the wp_register_style error. Also, did you check whether there’s a n empty line after the last ?> in functions.php? Note that it’s good practice the remove the last ?> from functions.php entirely (only the one in the very last line of the file!). This will prevent issues like that.

    Plugin Contributor Ewout

    (@pomegranate)

    The issue was resolved: besides the errors it appeared that the logo being used was too big (in MB). So for anyone not being able to generate pdf’s: it might be your logo size!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Doesn't work’ is closed to new replies.