Warning, application.cfc blank screen

This isn’t a bug as such but I wasted a fair amount of time recently after upgrading Lucee to 5.32.7.7

Admittedly I hadn’t previously update Lucee for 12 months or more, and this issue didn’t manifest back then, but since the upgrade this week, I was getting a blank screen with my unchanged application.cfc

I narrowed it down to this code

	<cffunction name="onRequestStart" output="false" returnType="void">

		<!--- If user isn’t logged in, force them to now --->
		<cfif not isDefined("SESSION.auth.isLoggedIn")>

			<!--- If the user is now submitting “Login” form, --->
			<!--- Include “Login Check” code to validate user --->
			
			<cfif isDefined("FORM.UserLogin")>
				<cfinclude template="loginCheck.cfm">
			</cfif>

			<cfinclude template="login.cfm">
			<cfabort>
		
		</cfif>

	</cffunction>

this had worked, without issue, for the last 2 years, but after updating and running the testing the application this week, the blank screen was showing instead of the login screen

eventually traced it to this line

<cffunction name="onRequestStart" output="false" returnType="void">

which I changed to

<cffunction name="onRequestStart" output="true" returnType="void">

it’s probably just me being an idiot, but if it saves people wasting time like I did, it’s worth it

2 Likes

Had the same problem, output=“true” changed it. Isn’t it a bug?