• Resolved t.tousif

    (@ttousif)


    My debug log is filled with the following only
    Please fix

    Cannot start session when headers already sent in public_html/wp-content/plugins/myworks-woo-sync-for-quickbooks-online/includes/class-myworks-wc-qbo-sync-qbo-lib.php on line 46

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author MyWorks Software

    (@myworksdesign)

    @ttousif Thanks for reaching out! Have you been able to open a ticket in your account with us yet, at https://support.myworks.software? This will help our team best assist you, as the above PHP warning does not occur with our sync under normal circumstances – but is possibly the result of a conflict with another plugin on your site utilizing PHP sessions in a way that conflicts with ours. We’d be happy to help troubleshoot this further with you, of course!

    I fixed it by changing the line to:

    if(!session_id() && $this->is_allow_php_session() && !headers_sent()) {

    I’m not immediately sure how to narrow down the source.

    The explanation is here:
    https://stackoverflow.com/questions/8028957/how-to-fix-headers-already-sent-error-in-php

    I don’t see why the plugin is running on the frontend anyway. Maybe it should just run on is_checkout(), cron and admin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.