Error with Website Membership plugin

18 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: May 30, 2020   (RSS)

By andreasml - April 5, 2020

Hi

I have a website built in Wordpress. I also use the CMSB to run a database on a different folder of the website. I have been using the Website Membership plugin (WMP) to let users signup and log in the database, for more than one year now. Up to a couple months ago, everything ran smoothly. Nevertheless, the last few weeks I have come across a serious problem. If a user is logged in the database and tries to open any page of the website, the website freezes and the following message appears:

Currently, Fatal error: setPrefixedCookie: Can't set cookie(loginsession, ==QfxIzM3kDM2gTNxojIzNXZjNWQ0NXYsJCLiMWYlVzN3ATY5czM1UDMzADNwMmN4ITYyIDNlNDMkZTN4MTY0MWMkdDJxEGazRiI6ICazFGSkJ3b3N3chBnIsICbtNXYlJHZuFmI6ISZtFmbyV2c1Jye), headers already sent! Output started in /var/www/vhosts/vascularregistry.gr/httpdocs/wp-includes/class.wp-styles.php line 287. in /var/www/vhosts/vascularregistry.gr/httpdocs/registry/lib/common.php on line 742

When the user logs off everything runs again well. 

Similarly, when I deactivate the WMP both CMSB and the website run well. However, this way, users cannot sign up or log in the database through the website as they used to do previously. 

The versions of CMSB and PhP are 3.50 and 7.3.16, respectively.

I have seen some similar topics in the Forum but I have not managed to sort it out. 

Any help would be much appreciated. 

Kind regards,

Andreas Lazaris

By andreasml - April 5, 2020

A short followup

I deactivated all the plugins from the wordpress website, and the problem comes back whenever i want to run a .php file (eg /user-login.php) from within the website. 

Regards

Andreas

By daniel - April 7, 2020

Hi Andreas,

This portion of the error leads me to believe that some portion of WordPress is being loaded and outputting page content before CMSB is loaded:

Output started in /var/www/vhosts/vascularregistry.gr/httpdocs/wp-includes/class.wp-styles.php line 287

CMSB can't set the user's session after page output has started, so if WP is loading first then that will cause issues. I'm not entirely sure why this would have worked for a time, but I do know some server settings can mitigate this issue but not prevent it completely.

Given this, my first thing to look at would be how you are including CMSB on the website - are you using CMSB on WP pages or vice-versa?

Thanks,

Daniel
Technical Lead
interactivetools.com

By andreasml - April 7, 2020

Hi Daniel,

The website is in WP. The CMSB is in a different folder and there is no direct connection between these two. I just run the two php files (user-login.php and user-signup.php) from two different pages of the WP website.

Thanks,

Andreas 

By daniel - April 8, 2020

Hi Andreas,

That's a very curious issue - could you send a 2nd level support request (https://www.interactivetools.com/support/request/) with the CMS/FTP details as well as a user login that can be used to demonstrate the issue? As we haven't seen a lot of interaction between WP and CMSB before, I think it would be easier to troubleshoot this first-hand.

Thanks!

Daniel
Technical Lead
interactivetools.com

By andreasml - April 8, 2020

Hi Daniel

Thank you for your quick response. I have sent a 2nd level support request.

Regards

Andreas

By andreasml - April 8, 2020

Hi Daniel

To avoid malfunction of the website as long as you are having a look at it at the 2nd level support, I have created a new webpage (https://vascularregistry.gr/login-page-2/) that demonstrates the problem. 

Regards

Andreas

By andreasml - May 26, 2020

Hi again,

I have been trying to solve this issue using all the tricks I have read in the Forum and have been told by the 2nd level support. The final one was to change the "Output buffering" in .user.ini and php.ini files from "Off" to "4096", but again the same message appears when I am logged in CMSB and at the same time I call a webpage from the WP website that contains any php script:

E_USER_ERROR: setPrefixedCookie: Can't set cookie(loginsession, ==Qf1UDN4ATNwkTNxojIzNXZjNWQ0NXYsJCLiMWYlVzN3ATY5czM1UDMzADNwMmN4ITYyIDNlNDMkZTN4MTY0MWMkdDJxEGazRiI6ICazFGSkJ3b3N3chBnIsICbtNXYlJHZuFmI6ISZtFmbyV2c1Jye), headers already sent! Output started in /var/www/vhosts/vascularregistry.gr/httpdocs/wp-includes/class.wp-styles.php line 287.
/var/www/vhosts/vascularregistry.gr/httpdocs/registry/lib/common.php (line 742)
https://vascularregistry.gr/dashboard/

It is really quite annoying as the page freezes and I am able to do nothing at all. Is there anything else I could do? 

Regards

Andreas

By daniel - May 26, 2020

Hi Andreas,

I'm sorry to hear that this issue keeps troubling you.

the same message appears when I am logged in CMSB and at the same time I call a webpage from the WP website that contains any php script:

Could you give me an example of the PHP script on a page that triggers the error?

Thanks,

Daniel
Technical Lead
interactivetools.com