[coldbox-3.6] [Railo 4.1] MessageBox Bug?

Hi there guys,

I just upgrade Coldbox from 3.5.3 to 3.6 runing in Railo 4.1.0.003 and got this error. Please note that this error never showed up before in my page.

Error Messages: too few attributes in function [isEmpty]

Code:

<cfif NOT getPlugin(“MessageBox”).isEmpty() >
<cfset message = getPlugin(“MessageBox”).renderit() />

#message#

Thank you in advance guys…

Felipe Serrano

Che k if Railo has a native function like that. I think they added this feature to structs and arrays but not objects. Sounds like a bug in Railo

Luis Majano
CEO
Ortus Solutions, Corp
Toll Free/Fax: 1-888-557-8057
Direct: 909-248-3408
www.ortussolutions.com
Twitter: @lmajano, @ortussolutions

Yes, Railo 4 appears to have implemented an isEmpty function which is conflicting with the one defined in MessageBox.cfc. I renamed the isEmpty function in MessageBox.cfc to isEmptyMessage and updated the references to the function to resolve the issue.

Brian

Luis, is this truly a bug in Railo? They did in fact add a native isEmpty() function to Railo 4.1.

I think MessageBox will need to be updated to change the name of this function. Brian’s solution below does the trick.

Ha, just checked assembla and looks like you already fixed this! Rock on.

\m/ o_O \m/