CMS MADE SIMPLE FORGE

Frontend Users

 

[#8618] {if !$ccuser->loggedin()}{redirect_page page='login'}{/if}

avatar
Created By: Gerrit Duran (gdur)
Date Submitted: Wed Nov 07 09:50:51 -0500 2012

Assigned To: Robert Campbell (calguy1000)
Version: 1.20
CMSMS Version: 1.11.2.1
Severity: Critical
Resolution: Invalid
State: Closed
Summary:
{if !$ccuser->loggedin()}{redirect_page page='login'}{/if}
Detailed Description:
For reasons I meanwhile now understand it was impossible to upgrade CMSMS 1.10.3
to 1.11.2.1 or any version in between. Having dealth with a lot of issues while
migrating my production site to a newly build one the last step was to include
the ever and successfully used "Hiding Private Content in CMS Made Simple" .
This doesn't seem to work anymore and it appears the code is broken.
Putting the statement  {if !$ccuser->loggedin()}{redirect_page
page='login'}{/if} in whatever template according to the guidelines provided and
as used for many years is no longer accepted and stored. Hitting the submit
button while trying to store a template results in a page redirect to the home
page of the site(???). After going back into the admin space the template has
not been stored. I've noticed that after the 1.10.3 version template storage at
least has become more restrictive and maybe for a good reason but resulting in
these kind of issues isn't very helpfull. Either the core needs to be addapted
(preferably) or FEU need to be addapted to get this working again.
Looking forward to a rapid fix. Easiest to test using the default template as
appears using "Add new template" and stick the code where it belongs.


History

Comments
avatar
Date: 2012-11-07 09:57
Posted By: Robert Campbell (calguy1000)

This is not an FEU bug it's a change in the way templates are processed in the
CMSMS backend.

use {if isset($ccuser)}{if !$ccuser->loggedin()}{redirect_page
page='login'}{/if}{/if}
      
avatar
Date: 2012-11-07 10:49
Posted By: Gerrit Duran (gdur)

Hi Robert,

Thanks for your fast response. As I already suggested that this might be caused
by the core however, the fix you just have suggested doesn't resolve the issue.
Still the same behaviour...
      
avatar
Date: 2012-11-11 01:46
Posted By: Gerrit Duran (gdur)

I see you now have changed the statement and turned it into a double "if"
however, I figured that the problem in my case is that the smarty
"redirect_page" is the one causing the problems. I still had another "old"
custom smarty called "redirect" and that one does the job as should. At least it
let you save the template and for now I haven't seen any odd and unexpected
behaviour.
Last night I have posted another FEU problem at the forum but it might be
related to this one as well. FEU with the default setting of "Captcha on" leads
to wrong behaviour of the "Forgot Password" routine.
      
avatar
Date: 2012-11-11 01:50
Posted By: Gerrit Duran (gdur)

Oh, forgot to report the error message:
Syntax Error in template "module_db_tpl:FrontEndUsers;notification_template"  on
line 69 "{var_dump}" unknown tag "var_dump" shows up after updating the
password.
      
Updates

Updated: 2012-11-11 09:12
state: Open => Closed

Updated: 2012-11-07 09:57
resolution_id: 5 => 9

Updated: 2012-11-07 09:53
description: For reasons I meanwhile now understand it was impossible to upgrade CMSMS 1.10.3 to 1.11.2.1 or any version in between. Having dealth with a lot of issues while migrating my production site to a newly build one the last step was to include the ever and su => For reasons I meanwhile now understand it was impossible to upgrade CMSMS 1.10.3 to 1.11.2.1 or any version in between. Having dealth with a lot of issues while migrating my production site to a newly build one the last step was to include the ever and su
resolution_id: => 5