Hi Experts,
Our website was running fine (
www.joe-cool.co.uk/EN/home/home.cfm. any page that you hit now throws an error that is :
Element PREVIOUSPAGE is undefined in SESSION
application.cfc contains this line :
<!--- variables to identify pages & urls (for navigation) --->
...
<cfparam name="Session.previousPage
" default="">
...
it crashes here :
...
<cfif Session.previousPage EQ "" OR Session.previousPage EQ "#cgi.script_name#">
<cflocation url="#CGI.SERVER_NAME#" addtoken="no">
<cfelseif REFind("Element ALLPRODUCTS.PRODUCTS is undefined", arguments.exception.rootca
use.messag
e) NEQ 0>
<cflocation url="#CGI.SERVER_NAME#" addtoken="no">
<cfelse> ...
I don't see why is suddenly happening, no changes have been made to anything.
Pelase help,
Adam
Open in new window
Regarding your session error, you should have this set in your onSessionStart function of your Application.cfc file:
<cfset session.previousPage = "">
Although the cfparam should also work, depending on where it is in relationship with your block of code that is throwing the error. If would, of course, have to be called before it. Placing the line above in the onSessionStart method would ensure the order of execution.