Page 1 of 1

Error when using the tag for ccuser for protected content

Posted: Wed Oct 07, 2015 7:01 pm
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

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

Posted: Wed Oct 07, 2015 9:30 pm
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.

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

Posted: Thu Oct 08, 2015 2:01 pm
by mlestat1131
Excellent, thanks... This works beautifully...

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