• Resolved Ivan Salloum

    (@ivansalloum1)


    Hello,

    after installing the plugin, I’m getting this php error:

    ini_set(): Session ini settings cannot be changed when a session is active

    I have these lines in the wp-config.php file:

    @ini_set('session.cookie_httponly', true);
    @ini_set('session.cookie_secure', true);
    @ini_set('session.use_only_cookies', true);
    @ini_set('session.cookie_samesite', 'Strict');

    What is the problem here?

    • This topic was modified 6 months, 4 weeks ago by Ivan Salloum.
Viewing 1 replies (of 1 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    What’s happening here is those lines in your wp-config.php file are triggering a PHP error which is suppressed with the @ symbol. This means the error always happens but it’s just hidden until you activate Query Monitor.

    The Query Monitor plugin can see these errors and is reporting them for you. Suppressing an error with the @ symbol is a bad idea because it hides the problem. Looking at the error message, one of those lines is not doing what you are expecting it to.

    Your best bet is to contact whoever put those lines in place and ask for advice.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Error – ini_set()’ is closed to new replies.