• Resolved chrisb76

    (@chrisb76)


    Hi Ewout,
    Following your advice yesterday, we’ve had our server upgraded today to:
    PHP Version 7.0.21
    Which includes the: PHP MBString module (which we didn’t have yesterday)
    We tried upgrading the plugin again and got these messages:

    Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Flatsome_Recent_Post_Widget has a deprecated constructor in /home/electricalironmo/public_html/wp-content/themes/flatsome/inc/widgets/recent-posts.php on line 15

    Warning: Cannot modify header information – headers already sent by (output started at /home/electricalironmo/public_html/wp-content/themes/flatsome/inc/widgets/recent-posts.php:15) in /home/electricalironmo/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/wcpdf-functions.php on line 132

    Warning: Cannot modify header information – headers already sent by (output started at /home/electricalironmo/public_html/wp-content/themes/flatsome/inc/widgets/recent-posts.php:15) in /home/electricalironmo/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/wcpdf-functions.php on line 133

    The chap who looks after these things for me is looking into it now but any pointers you could give would be greatly appreciated.

    Meanwhile I’ve gone back to the old version again and that’s all working fine.

    Many thanks,
    Chris

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

    (@pomegranate)

    Hi Chris,
    The headers already sent error comes from the fact that there’s a premature PHP error, preventing the PDF Invoice from outputting the correct headers.
    This is a PHP warning that is caused by the “Flatsome Recent Post Widget” that is not PHP7 compatible.

    You can resolve this by either updating the Flatsome Recent Post Widget (if there’s a PHP7 compatible version available), or turning off debug output (which I would always recommend on a live site!). If you have ‘Debug output’ enabled in the PDF Invoice > Status tab settings, turn that off and make sure you have WP_DEBUG disabled. WordPress has instructions for how to enable debug logging so that the errors are written to a text file rather than the frontend: Example wp-config.php for Debugging

    Hope that helps!

    p.s. did you downgrade the PDF invoice plugin or the PHP version? Note that in the latest release (2.0.2) I have actually built in an extra check that should make it work even when PHP MB string is not installed.

    Thread Starter chrisb76

    (@chrisb76)

    Hi Ewout,
    Thanks for your reply.
    Sorry – I downgraded the plugin not the PHP Version.
    I’ll take a look at all you mentioned and I’ve forwarded your reply to the man who looks after my site when it gets a bit complicated for me!!!
    Between us all we’ll get there in the end.
    Thanks as always,
    Chris

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

The topic ‘(More) Errors after upgrading plugin and PHP Version’ is closed to new replies.