Fix for the isUserLoggedIn conflict is in, should be in the nightly tomorrow
On Monday, August 10, 2015 at 8:20:38 PM UTC-4, Marcus F wrote: > > Awesome, glad it worked :) > > I submitted this fix a few days ago but it hasn't been approved yet, in > the meantime we just have to do the change manually. > > On Monday, August 10, 2015 at 8:17:20 PM UTC-4, MiniFireDragon wrote: >> >> Restarting was the problem solver! Thanks everyone. >> >> On 8/10/2015 1:29 PM, Marcus F wrote: >> >> Restarting your app/server would be my next advice as well. >> >> On Monday, August 10, 2015 at 12:03:49 PM UTC-4, Ben wrote: >>> >>> You'll actually just need to restart you application. It caches the cfc >>> file in memory and any changes need to have the application reset to pick >>> them up. >>> >>> On Mon, Aug 10, 2015 at 9:52 AM, Ernest McCloskey < >>> [email protected]> wrote: >>> >>>> No typos. I copied and pasted change. >>>> >>>> However, I see: >>>> >>>> Application.administrator.isUserLoggedInNow() >>>> >>>> >>>> Should that be: >>>> >>>> Application.admin.isUserLoggedInNow() >>>> >>>> I am not the best coder in the world, but I do not see any >>>> administrator initialized, I do see an admin though. >>>> >>>> >>>> On 8/10/2015 8:45 AM, Marcus F wrote: >>>> >>>> Just to make sure, there are 3 places in Base.cfc and 1 >>>> in bluedragon\administrator\Application.cfc >>>> >>>> Double-checked typos etc. >>>> >>>> Just pointing it out, as the error says it can't find the function, >>>> implies you either didn't rename it, or typo'd. >>>> >>>> On Sunday, August 9, 2015 at 11:34:11 PM UTC-4, MiniFireDragon wrote: >>>>> >>>>> Yes it is night. >>>>> >>>>> I tried changing the 4 items names isUserLoggedIn() to >>>>> isUserLoggedInNow() and it still gives errors. Different now: >>>>> >>>>> CFML Runtime Error >>>>> Need some help? Visit our manual <http://openbd.org/manual/> >>>>> http://openbd.org/manual/ >>>>> General Runtime Error >>>>> Request /bluedragon/administrator/index.cfm >>>>> File Trace >>>>> /opt/tomcat/webapps/mytarottable/bluedragon/administrator/index.cfm >>>>> | >>>>> +-- >>>>> /opt/tomcat/webapps/mytarottable/bluedragon/administrator/Application.cfc >>>>> >>>>> Type Object >>>>> Function(s) onRequestStart >>>>> (/opt/tomcat/webapps/mytarottable/bluedragon/administrator/Application.cfc, >>>>> >>>>> Line=62, Column=2) >>>>> Detail Method isUserLoggedInNow could not be found. Check that the >>>>> method is publicly accessible, the correct number of arguments are >>>>> specified and that the argument types match >>>>> Tag Context CFIF >>>>> (/opt/tomcat/webapps/mytarottable/bluedragon/administrator/Application.cfc, >>>>> >>>>> Line=140, Column=62) >>>>> | >>>>> +-- CFFUNCTION >>>>> (/opt/tomcat/webapps/mytarottable/bluedragon/administrator/Application.cfc, >>>>> >>>>> Line=62, Column=2) >>>>> Source >>>>> >>>>> 137: </cfif> >>>>> 138: >>>>> 139: <cfif !Application.administrator.isUserLoggedInNow() && >>>>> ListLast(CGI.SCRIPT_NAME, "/") != "login.cfm" && >>>>> 140: ListLast(CGI.SCRIPT_NAME, "/") != "_loginController.cfm"> >>>>> 141: <cfset contextPath = >>>>> getPageContext().getRequest().getContextPath() /> >>>>> >>>>> ^ Snippet from underlying CFML source >>>>> >>>>> >>>>> >>>>> On 8/9/2015 10:32 PM, Marcus F wrote: >>>>> >>>>> If you're running nightly, try changing the name of the function >>>>> isUserLoggedIn() to something else in: >>>>> bluedragon/adminapi/Base.cfc >>>>> bluedragon/administrator/Application.cfc >>>>> >>>>> There's a conflict with a function that I recently added to the engine >>>>> with the same name, if you're not running nightly I don't think this is >>>>> the >>>>> issue. >>>>> >>>>> On Sunday, August 9, 2015 at 10:11:34 PM UTC-4, MiniFireDragon wrote: >>>>>> >>>>>> So, now that I got my test server up and running, I downloaded the >>>>>> Administrator Panel from GitHub and installed, logged in with the >>>>>> admin. >>>>>> >>>>>> Then I immediately went to the Security Page to change my password >>>>>> and >>>>>> (same on every page): >>>>>> >>>>>> CFML Runtime Error >>>>>> Need some help? Visit our manual <http://openbd.org/manual/> >>>>>> http://openbd.org/manual/ >>>>>> Login required to perform this action >>>>>> Request /bluedragon/administrator/settings/_controller.cfm >>>>>> File Trace >>>>>> /opt/tomcat/webapps/mytarottable/bluedragon/administrator/settings/_controller.cfm >>>>>> >>>>>> >>>>>> | >>>>>> +-- >>>>>> /opt/tomcat/webapps/mytarottable/bluedragon/adminapi/Administrator.cfc >>>>>> | >>>>>> +-- >>>>>> /opt/tomcat/webapps/mytarottable/bluedragon/adminapi/Base.cfc >>>>>> >>>>>> Type bluedragon.adminapi.security >>>>>> Function(s) setPassword >>>>>> (/opt/tomcat/webapps/mytarottable/bluedragon/adminapi/Administrator.cfc, >>>>>> >>>>>> Line=50, Column=47) >>>>>> | >>>>>> +--checkLoginStatus >>>>>> (/opt/tomcat/webapps/mytarottable/bluedragon/adminapi/Base.cfc, >>>>>> Line=95, >>>>>> Column=103) >>>>>> Tag Context CFTHROW >>>>>> (/opt/tomcat/webapps/mytarottable/bluedragon/adminapi/Base.cfc, >>>>>> Line=97, >>>>>> Column=7) >>>>>> | >>>>>> +-- CFIF >>>>>> (/opt/tomcat/webapps/mytarottable/bluedragon/adminapi/Base.cfc, >>>>>> Line=96, Column=5) >>>>>> | >>>>>> +-- CFFUNCTION >>>>>> (/opt/tomcat/webapps/mytarottable/bluedragon/adminapi/Base.cfc, >>>>>> Line=95, >>>>>> Column=103) >>>>>> | >>>>>> +-- CFSET >>>>>> (/opt/tomcat/webapps/mytarottable/bluedragon/adminapi/Administrator.cfc, >>>>>> >>>>>> Line=55, Column=5) >>>>>> | >>>>>> +-- CFFUNCTION >>>>>> (/opt/tomcat/webapps/mytarottable/bluedragon/adminapi/Administrator.cfc, >>>>>> >>>>>> Line=50, Column=47) >>>>>> | >>>>>> +-- CFSET >>>>>> (/opt/tomcat/webapps/mytarottable/bluedragon/administrator/settings/_controller.cfm, >>>>>> >>>>>> >>>>>> Line=59, Column=6) >>>>>> | >>>>>> +-- CFTRY >>>>>> (/opt/tomcat/webapps/mytarottable/bluedragon/administrator/settings/_controller.cfm, >>>>>> >>>>>> >>>>>> Line=58, Column=4) >>>>>> | >>>>>> +-- CFELSE >>>>>> (/opt/tomcat/webapps/mytarottable/bluedragon/administrator/settings/_controller.cfm, >>>>>> >>>>>> >>>>>> Line=57, Column=2) >>>>>> | >>>>>> +-- CFIF >>>>>> (/opt/tomcat/webapps/mytarottable/bluedragon/administrator/settings/_controller.cfm, >>>>>> >>>>>> >>>>>> Line=54, Column=7) >>>>>> | >>>>>> +-- CFCASE >>>>>> (/opt/tomcat/webapps/mytarottable/bluedragon/administrator/settings/_controller.cfm, >>>>>> >>>>>> >>>>>> Line=45, Column=5) >>>>>> | >>>>>> +-- CFSWITCH >>>>>> (/opt/tomcat/webapps/mytarottable/bluedragon/administrator/settings/_controller.cfm, >>>>>> >>>>>> >>>>>> Line=43, Column=3) >>>>>> | >>>>>> +-- CFSILENT >>>>>> (/opt/tomcat/webapps/mytarottable/bluedragon/administrator/settings/_controller.cfm, >>>>>> >>>>>> >>>>>> Line=24, Column=1) >>>>>> Source >>>>>> >>>>>> 94 : <cffunction name="checkLoginStatus" access="package" >>>>>> output="false" returntype="void" >>>>>> 95 : hint="Checks login status and throws a security >>>>>> exception >>>>>> if there is no valid logged in user"> >>>>>> 96 : <cfif !isUserLoggedIn()> >>>>>> 97 : <cfthrow message="#variables.msg.security.notLoggedIn#" >>>>>> type="bluedragon.adminapi.security" /> >>>>>> 98 : </cfif> >>>>>> >>>>>> ^ Snippet from underlying CFML source >>>>>> >>>>>> locals >>>>>> struct >>>>>> arguments >>>>>> struct [empty] >>>>>> Expanded Debug Details - Click to expand the detailed variables >>>>>> application >>>>>> cffile >>>>>> cfthread >>>>>> cgi >>>>>> client >>>>>> cookie >>>>>> form >>>>>> request >>>>>> server >>>>>> session >>>>>> super >>>>>> url >>>>>> variables >>>>>> 3.2 @ 22:08:02.192 Sunday, 9 August 2015 >>>>>> >>>>> -- >>>>> -- >>>>> online documentation: <http://openbd.org/manual/> >>>>> http://openbd.org/manual/ >>>>> http://groups.google.com/group/openbd?hl=en >>>>> >>>>> --- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "Open BlueDragon" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to [email protected]. >>>>> For more options, visit <https://groups.google.com/d/optout> >>>>> https://groups.google.com/d/optout. >>>>> >>>>> >>>>> -- >>>> -- >>>> online documentation: http://openbd.org/manual/ >>>> http://groups.google.com/group/openbd?hl=en >>>> >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "Open BlueDragon" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> For more options, visit <https://groups.google.com/d/optout> >>>> https://groups.google.com/d/optout. >>>> >>>> >>>> -- >>>> -- >>>> online documentation: http://openbd.org/manual/ >>>> http://groups.google.com/group/openbd?hl=en >>>> >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "Open BlueDragon" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >> -- >> online documentation: http://openbd.org/manual/ >> http://groups.google.com/group/openbd?hl=en >> >> --- >> You received this message because you are subscribed to the Google Groups >> "Open BlueDragon" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> >> >> -- -- online documentation: http://openbd.org/manual/ http://groups.google.com/group/openbd?hl=en --- You received this message because you are subscribed to the Google Groups "Open BlueDragon" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
