• Resolved persoonlijkvaardiger

    (@persoonlijkvaardiger)


    I’m creating a UM membership site with wpForo. I got everythng working.

    But somehow, its keep logging the users out, with every page change. Also, when logging in, users get a 404 error at the first attempt. Admin is also logged out. Can anyone help?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • @persoonlijkvaardiger

    Please post your UM integration issues in the “wpForo” plugin support Forum.
    The “wpForo” developers are responsible for their UM integration.

    Thread Starter persoonlijkvaardiger

    (@persoonlijkvaardiger)

    It is not said this problem is caused by wpForo integration.
    Therefore I posted this on several forums, ’cause I use several plugins.
    Ex. Calculated Field Form stated that one plugin I use calls the session_start after their plugin, but without checking if the session was started previously.
    They offered me a workaround, which makes it better, but does not solve it. They told me to change

    @session_start();

    to

    // @session_start();

    in their plugin’s php.
    Are you sure UM is only starting sessions after checking if the session was started previously?

    @persoonlijkvaardiger

    <!– Page supported by LiteSpeed Cache 6.2.0.1 on 2024-05-31 16:52:06 –>

    If you have UM pages cached disable the WP plugin caching.

    https://docs.ultimatemember.com/article/1595-caching-problems

    Yes UM is checking session status.

    /**
     * Checks if session has been started
     *
     * @return bool
     */
    function um_is_session_started() {
    
    	if ( php_sapi_name() !== 'cli' ) {
    		if ( version_compare( phpversion(), '5.4.0', '>=' ) ) {
    			return session_status() === PHP_SESSION_ACTIVE ? true : false;
    		} else {
    			return session_id() === '' ? false : true;
    		}
    	}
    
    	return false;
    }
    Plugin Support yuriinalivaiko

    (@yuriinalivaiko)

    Hi @persoonlijkvaardiger

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread if any other questions come up and we’d be happy to help. ??

    Regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.