Page with protected content shows up without styles.

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
amarant
Forum Members
Forum Members
Posts: 32
Joined: Thu Mar 28, 2013 10:40 am

Page with protected content shows up without styles.

Post 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?
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Page with protected content shows up without styles.

Post by Rolf »

Enable debug in config file and see if you get an error message
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
amarant
Forum Members
Forum Members
Posts: 32
Joined: Thu Mar 28, 2013 10:40 am

Re: Page with protected content shows up without styles.

Post 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.
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1629
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Page with protected content shows up without styles.

Post 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.
Not getting the answer you need? CMSMS support options
amarant
Forum Members
Forum Members
Posts: 32
Joined: Thu Mar 28, 2013 10:40 am

Re: Page with protected content shows up without styles.

Post by amarant »

Thank you, that solved the problem.
Post Reply

Return to “The Lounge”