Users cannot access their private archives they get looped in the wp-login.php

Accueil Forums Premium add-ons support Users cannot access their private archives they get looped in the wp-login.php

6 sujets de 21 à 26 (sur un total de 26)
  • Auteur
    Messages
  • #790672
    Thomas Lartaud
    Admin bbPress

    Hi,

    We’ve found an issue from 7.9.X that should probably the cause of this.
    I think that this is related to PHP Sessions. This will be fixed in the next incoming version (first week of October).

    If you can’t wait for this version, could you please try this temporary fix:
    Open the file src/php/core-classes/plugin.class.php, line 446, and replace the whole start_session() function by this one:

    public function start_session()
            {
                if (version_compare(PHP_VERSION, '7.0.0') >= 0)
                {
                    if (function_exists('session_status') && session_status() === PHP_SESSION_NONE)
                    {
                        session_start([
                            'cache_limiter' => 'private_no_expire',
                        ]);
                    }
                }
                else if (version_compare(PHP_VERSION, '5.4.0') >= 0)
                {
                    if (function_exists('session_status') && session_status() === PHP_SESSION_NONE)
                    {
                        session_cache_limiter('private_no_expire');
                        session_start();
                    }
                }
                else
                {
                    if (session_id() === '')
                    {
                        if (version_compare(PHP_VERSION, '4.0.0') >= 0)
                        {
                            session_cache_limiter('private_no_expire');
                        }
                        session_start();
                    }
                }
            }

    Do not hesitate to tell me if it fixed your issue.

    Best regards.

    #793930
    Maria Quintero
    Participant
    Cette réponse a été marquée comme privée.
    #803611
    r.mantpress
    Participant

    Hello

    Is the new update ready? It will solve the problem?

    Thanks

    #814127
    Thomas Lartaud
    Admin bbPress

    Hi,

    Could you please try updating to 7.10.1 and tell me if it change anything?

    Regards.

    #824232
    Maria Quintero
    Participant

    Apologies for the delay. I’ve run some tests and looks like it is working well!

    just curious. what was the root cause?

    Best,
    María.

    #824258
    Thomas Lartaud
    Admin bbPress

    Hi,

    It is because WP does not handle PHP sessions very well so we replaced them with database sessions.

    Regards.

6 sujets de 21 à 26 (sur un total de 26)
  • Vous devez être connecté pour répondre à ce sujet.