Error when using the tag for ccuser for protected content

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
mlestat1131
Forum Members
Forum Members
Posts: 41
Joined: Sat Sep 15, 2012 9:12 pm

Error when using the tag for ccuser for protected content

Post by mlestat1131 »

I get the following error when going to a page that is restricted on login using the {if !$ccuser->loggedin()}{redirect_page page='login'}{/if} call.

Fatal error: Call to a member function loggedin() on a non-object in /home3/execdirector/public_html/upgrade/lib/smarty/sysplugins/smarty_internal_templatebase.php(165) : eval()'d code on line 29

When i remove the {if !$ccuser->loggedin()}{redirect_page page='login'}{/if} code from the template page, it loads the page fine... but does not require them to be logged in.

Any help with this?

I am running the newest CMSMS 2.01.1 This was not happening prior to installing the update.

Thanks
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Error when using the tag for ccuser for protected conten

Post by velden »

Read the changelog and release notes of Frontend Users module in the forge (starting from 1.26)

Obviously you should read those before upgrading.
mlestat1131
Forum Members
Forum Members
Posts: 41
Joined: Sat Sep 15, 2012 9:12 pm

Re: Error when using the tag for ccuser for protected conten

Post by mlestat1131 »

Excellent, thanks... This works beautifully...

I need to remember to read the change log...
Post Reply

Return to “The Lounge”