• Resolved bikerv4

    (@bikerv4)


    Hi I have the following error recurring approximately every 5 minutes in the /wp-content/debug.log file:
    [20-Dec-2019 06:43:03 UTC] PHP Warning: session_start(): Cannot start session when headers already sent in /…/wp-content/plugins/wpforo/wpf-includes/class-notices.php on line 16

    I use:
    -nginx version: nginx/1.17.5
    -php 7.3
    -Wordpress 5.3.2
    -Divi 4.0.9

    Assuming a plugin could be affecting the session initiation in the header, I disabled all plugins and keeping wp-Foro and the error disappears. If I disable wp-Foro, with all other plugins activated, the error disappears.

    Then I’ve been trying all plugins 1 by 1. Keeping activated only wp-Foro and the other plugin at a time, fail to be activated (and some also at disabling time in bold) listed below:
    Akismet, Bloom, Health Check & Troubleshooting, Jetpack, W3 Total Cache, Wordfence Security.

    Another fact is that the forum is newly installed, without using even, DB empty.

    Any ideas?

    Thank you

    • This topic was modified 4 years, 11 months ago by bikerv4.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support gVectors Support

    (@gvectorssupport)

    Thread Starter bikerv4

    (@bikerv4)

    I understand that the fault is of the other plugins.

    I still doubt if I keep the other plugins:
    It is affected in wp-Foro operation?

    Thanks

    Plugin Author gVectors Team

    (@gvectors-team)

    It doesn’t affect any important function. It only affects top right notification box when you do some action in forum you may not get confirmation message, something like “You’re successfully subscribed” and so on…

    You should not just check the plugins, as I’ve already mentioned in my post, it can be caused by wrong code in functions.php file of your active theme. If you’ve modified your theme, you should double check it.

    Thread Starter bikerv4

    (@bikerv4)

    I disabled the functions.php file from my Divi Child, is very short. I have turned Zlib on, so I get a error without the following function:

    /**
     * Proper ob_end_flush() for all levels
     *
     * This replaces the WordPress <code>wp_ob_end_flush_all()</code> function
     * with a replacement that doesn't cause PHP notices.
    */ 
    remove_action( 'shutdown', 'wp_ob_end_flush_all', 1 );
    add_action( 'shutdown', function() {
       while ( @ob_end_flush() );
    } );

    The error is (off topic):
    [21-Dec-2019 17:14:23 UTC] PHP Notice: ob_end_flush(): failed to send buffer of zlib output compression (1) in /… /wp-includes/functions.php on line 4552

    I disconnected the list of plugins involved and there is no header error, except mentioned Zlib error.

    I tried leaving together wp-Forum and WordFence, and header error continues.

    I will try to contact the other affected plugins developers.

    Thank you very much for your attention.

    Best regards.

    • This reply was modified 4 years, 11 months ago by bikerv4.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Lot’s of warnings in error logs’ is closed to new replies.