• Resolved user456

    (@user456)


    Hello, there is some error in my debug log:
    PHP Warning: Cannot modify header information – headers already sent in [other directories]/all-in-one-video-gallery/public/public.php on line 118.

Viewing 1 replies (of 1 total)
  • Plugin Contributor wpvideogallery

    (@wpvideogallery)

    That particular line in the error message uses the PHP’s setcookie function. I confirm we didn’t get this error message in our demo website here.

    Please find the discussion related to this error message here https://wordpress.stackexchange.com/questions/324762/setting-cookie-with-init-hook-causes-header-already-sent?answertab=votes#tab-top

    Do you use any debugging plugin? If yes, please try disabling it. If still the issue remains, please try disabling your plugins one by one to find which causes the issue.

    Alternate solution:

    1. Kindly open the file /wp-content/plugins/all-in-one-video-gallery/public/public.php

    2. Find the lines with the following code (#114, #118),

    setcookie( 'aiovg_rand_seed', $aiovg['rand_seed'], time() + ( 24 * 60 * 60 ), COOKIEPATH, COOKIE_DOMAIN );

    3. and replace it as follows,

    @setcookie( 'aiovg_rand_seed', $aiovg['rand_seed'], time() + ( 24 * 60 * 60 ), COOKIEPATH, COOKIE_DOMAIN );

    4. Save the changes and check now.

    Hope this solved your issue!

    • This reply was modified 5 years, 6 months ago by wpvideogallery. Reason: Typo issues
Viewing 1 replies (of 1 total)

The topic ‘Error: Cannot modify header information – headers already sent’ is closed to new replies.