• Resolved dimal

    (@dimalifragis)


    After this today’s update, tones of those:

    PHP Warning: Cannot modify header information – headers already sent in /home/wp-content/plugins/very-simple-contact-form/vscf.php on line 133

    thanks

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Guido

    (@guido07111975)

    Hi,

    Thanks for reporting, have to look into this. This might be a conflict with another plugin, because I don’t have this issue.

    Guido

    Thread Starter dimal

    (@dimalifragis)

    Downgraded to previous version and all ok now.

    Plugin Author Guido

    (@guido07111975)

    Was whole site down or only a warning?

    Current version uses a cookie, somehow it causes the headers already sent issue in some cases.

    Guido

    Thread Starter dimal

    (@dimalifragis)

    Just the warnings on debug log.

    Plugin Author Guido

    (@guido07111975)

    Hi,

    I have updated multiple sites but no issue with this. So I think it’s a conflict with another plugin.

    Are you able/willing to do a test after you’ve updated plugin?
    If you are, open the plugin editor, go to file vscf and look for:

    add_action( 'init', 'vscf_cookie', 10 );

    Change into:

    add_action( 'send_headers', 'vscf_cookie' );

    Does this solve your error?

    Guido

    Thread Starter dimal

    (@dimalifragis)

    I will and update here.

    Thread Starter dimal

    (@dimalifragis)

    That change seems to fix the issue.

    Plugin Author Guido

    (@guido07111975)

    Thanks, I will update plugin today.
    I may remove the newly added cookie feature again, because in some cases it may cause a conflict with other plugins and I don’t have control over that. This makes VS Contact Form less stable.

    Guido

    Plugin Author Guido

    (@guido07111975)

    Hi again @dimalifragis

    Did your warning/error only include a reference to my plugin or was there a reference to another plugin or theme as well?

    Guido

    Thread Starter dimal

    (@dimalifragis)

    Hi, no the error pointed only to your plugin.

    Plugin Author Guido

    (@guido07111975)

    Thanks, thought about it some more and will not add cookie again. Besides your issue there’s also GDPR (privacy) and adblockers that may cause problems.

    Guido

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘PHP Warning: Cannot modify header information’ is closed to new replies.