• When utilizing your plugin with a site that is hosted on a platform with varnish as a caching proxy your dependency throws the following error. This will happen on most popular hosting providers as varnish is pretty standard nowadays.

    PHP Warning: session_start(): Cannot start session when headers already sent in /wp-content/plugins/automatic-youtube-video-posts/vendor/ternstyle/wordpress/src/class/wordpress.php on line 53

    I saw your recommendation to another user however this will not really work properly

    session_start([
    'read_and_close'	=>	true,
    ]);

    Below is a great write-up about the cons of utilizing sessions. You could more than likely accomplish what you are doing with transients or object cache.

    https://pantheon.io/docs/wordpress-sessions

  • The topic ‘session_start() error when varnish is used’ is closed to new replies.