• Resolved thberrid

    (@deway)


    Hi,

    When I try to activate the plugin (5.9) on a wp network, I get this two errors :

    Warning: Cannot modify header information - headers already sent by (output started at C:\wamp64\www\app\wp-content\plugins\wp-cerber\wp-cerber.php:110)

    Notice: Use of undefined constant COOKIEPATH - assumed 'COOKIEPATH' in C:\wamp64\www\app\wp-content\plugins\wp-cerber\wp-cerber.php on line 110

    This messsages do not appear when I install Cerber on a regular (non-network) WP.
    Have you any idea on what it means ?

    Thank you,

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author gioni

    (@gioni)

    Hi!

    I’ve tried to reproduce that issue on an ordinary sub-domains multisite installation. Everything works fine. Do you use sub-directories multisite?

    Thread Starter thberrid

    (@deway)

    Thank you for your time !

    Indeed I use a sub-directories multisite as a multilanguage solution, eg :
    main site : localhost
    english version : localhost/en/
    italian version : localhost/it/

    More : the whole wordpress files & folders are in a subdirectory :
    site_url() = localhost/wordpress
    home_url() = localhost

    Plugin Author gioni

    (@gioni)

    It’s not completely elegant, but I’d recommend to add the following definition to the wp-config.php file.

    define('COOKIEPATH', '/');

    Thread Starter thberrid

    (@deway)

    It works, thank you !

    Why don’t you consider this as an elegant solution ?

    Plugin Author gioni

    (@gioni)

    Cause it should be initialized by WP itself. The way I’ve suggested should work fine unless you get some exotic plugin that expects some other value with COOKIEPATH.

    Thread Starter thberrid

    (@deway)

    Ok, thanks for the explainations.

    willgorham

    (@willgorham)

    Just want to chime in that I’m seeing the same issue with the COOKIEPATH constant notices. Running a subdomain install on Cloudways.

    Plugin Author gioni

    (@gioni)

    @gioni Awesome, thank you!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘COOKIEPATH & headers already sent by errors only on network’ is closed to new replies.