Element NEEDCLEANUP is undefined in LOCAL

I’m running CB 2.6.1 on IIS and CF9.

I keep getting the following error:

Element NEEDCLEANUP is undefined in LOCAL
D:\home[acediaapparel.com](http://acediaapparel.com)\wwwroot\coldbox\system\cache\cacheManager.cfc

If I refresh everything loads fine but I don’t like this error being thrown every once in a while on my production site. Any ideas why this keeps happening?

This is _exactly_ what occurred to me except with Transfer. And it
would happen sporadically in production. My running hypothesis is that
under certain conditions doing something like "<cfset var local =
structnew()>" causes CF9 to get confused between the declared "local"
and the new CF9 built-in "local" scope.

1. My workaround was to change the word "local" and the references in
the function to something else and it went away.
2. The CF9 hotfix mentions a fix for something local related. That may
be another option to try although I haven't so don't know if it fixes
this issue.

- Gabriel

PS. That function in CB 3.0M4 uses "<cfset var refLocal =
structnew()>" instead which is probably why I only experienced it with
Transfer and not CB.

- Gabriel

I'm pretty sure that 2.6.4 included some clean ups specifically for
CF9. It should not have any compatibility issues with 2.6.1. I,
personally, really like the 3.0 branch but there will changes you
might need to look out for as a number of things have been changed.

So download 2.6.4 and see if that fixes your issue. Then you might
want to start poking about with the new 3.0 builds, great stuff in
there.

Judah

I am sorry, but running 2…6.1 you are running on old old framework code. There have been over 400 tickets closed since that version. So my recommendation is to upgrade.

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Thanks! I’m going to upgrade to 2.6.1 right away!

Upgrade to 3.0.0 M4?

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

I would love to upgrade to 3.0 M4 but I would have to go through all the compatibility issues and time does not afford me to do so unfortunately. I’m upgrading to 2.6.4 to get the app working on CF9 properly.