• Resolved persoonlijkvaardiger

    (@persoonlijkvaardiger)


    I love the plugin but it has a weird side-effect: activating the plugin logs users out every time they switch pages.
    When users complained about it, I deactivated all plugins and activated them one by one, in different order, to find out what’s causing the logging out. It definitely is CFF. How can I stop this?
    I use Ultimate Member, Elementor, wpForo and some other plugins that I don’t think can have anything to do with this.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @persoonlijkvaardiger

    Thank you very much for using our plugin. It is the first time that issue is reported.

    Could you please follow the steps below and let me know if the issue persists?

    1. Open the “/wp-content/plugins/calculated-fields-form/inc/cpcff_session.inc.php” file with the text editor of your choice.
    2. Go to the snippet of code below:
    @session_start();

    and comment is as follows:

    // @session_start();

    Please let me know if the issue persists.

    Best regards.

    Thread Starter persoonlijkvaardiger

    (@persoonlijkvaardiger)

    Hi, I edited /wp-content/plugins/calculated-fields-form/inc/cpcff_session.inc.php as you suggested. At first it did not seem to work, but after clearing cache it looks like it is fixed now. Probably a good idea to take this into an update?

    Plugin Author codepeople

    (@codepeople)

    Hello @persoonlijkvaardiger

    Thank you very much for letting us know the modification solved the issue on your website.

    Our code check if the session was not created previously before creating it. The complete code is:

    if ( session_id() == '' && ! headers_sent() ) {
      @session_start();
    }

    So, I guess another plugin on your website calls the session_start after our plugin, but without checking if the session was started previously.

    Best regards.

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