Re: Error with Website Membership plugin

By andreasml - April 15, 2023 - edited: April 15, 2023

In response to: https://www.interactivetools.com/forum/forum-posts.php?postNum=2244757#post2244757

Just an update to a similar problem in the signup form that was solved in the same way as Daniel had suggested.

In particular, the following message appeared when signing up as a new user:

Fatal error: setPrefixedCookie: Can't set cookie(lastUrl, /registry/admin.php?menu=_myaccount), headers already sent! Output started in /var/www/vhosts/vascularregistry.gr/httpdocs/wp-includes/class.wp-styles.php line 290. in /var/www/vhosts/vascularregistry.gr/httpdocs/registry/lib/http_functions.php on line 292

Following Daniel's advice (on the previous post), I commented out the following line...

setPrefixedCookie('lastUrl', $GLOBALS['WEBSITE_LOGIN_PROFILE_URL']);

to...

// setPrefixedCookie('lastUrl', $GLOBALS['WEBSITE_LOGIN_PROFILE_URL']);

... and it worked. 

Thanks again, Daniel and the support team!

Andreas