Page 1 of 1

Page with protected content shows up without styles.

Posted: Fri Jul 14, 2017 9:31 pm
by amarant
After upgrading from CMSMS 2.1.6 to 2.2.2 a member page shows up with no stylesheets attached.
This page is for members to sign in and to show protected content if the member is signed in.
The FrontEndUser module is version 2.4.4.
After signing in, the page is updated with the Welcome message, the link for changing the settings and the link for signing out, but the protected content stays hidden, all that without any styles.
The content block contains de following:
{FrontEndUsers action="default" nocaptcha="1"}
{feu_protect groups="zleden,mleden,bleden"}
Some content to show to the member.
{/feu_protect}
When i remove the protect tags everything shows up with the styles.
The content type for the page is Content.
I very much would appreciate a solution to this problem?

Re: Page with protected content shows up without styles.

Posted: Sat Jul 15, 2017 7:38 am
by Rolf
Enable debug in config file and see if you get an error message

Re: Page with protected content shows up without styles.

Posted: Sat Jul 15, 2017 10:47 am
by amarant
Opening the page with debug mode on does not give any debug information.
After then signing in the debug is on, with redirecting disabled and no error messages.
After then selecting to redirect to the page this comes up with the Welcome message, the link for changing the settings and the link for signing out, but the protected content stays hidden, all that without any styles.
When the signing in of the member does not pass authentication the page refreshes with only the login form containing the message that the signing in failed because of an invalid user name or password, with the stylesheets applied and with the debug lines without any error messages.
When signing in where the member is already signed in the page refreshes with only the login form containing the message that the user is already logged in, with the stylesheets applied and with the debug lines without any error messages.

Re: Page with protected content shows up without styles.

Posted: Sat Jul 15, 2017 6:40 pm
by DIGI3
It looks like there's a Smarty issue with this, a fix will be out but in the meantime I used:

Code: Select all

{if feu_smarty::is_user_memberof('group1,group2')} [protected content] {/if}
as a workaround method.

Re: Page with protected content shows up without styles.

Posted: Sun Jul 16, 2017 9:59 am
by amarant
Thank you, that solved the problem.