framework-one / fw1

FW/1 - Framework One - is a lightweight, convention over configuration, MVC application framework for ColdFusion / CFML.
http://framework-one.github.io
Other
374 stars 141 forks source link

FW1 and CF2021 #527

Closed ramparvataneni closed 3 years ago

ramparvataneni commented 3 years ago

Anyone tried CF2021 with FW/1, please share your experience. We are receiving errors with CF2021.

Our FW/1 version is too old (2.1), however before upgrading to latest FW1 version, we would like to know if anyone tried CF2021. The same application works fine with CF10.

We already tried upgrading to FW 3.0, but receiving same error.

The element at position 2 cannot be found.

TagContext
array 1
struct COLUMN 0 ID ?? LINE 779 RAW_TRACE at cfone2ecfc1133534638$funcONREQUEST.runFunction(D:\Development7\framework\one.cfc:779) TEMPLATE D:\Development7\framework\one.cfc TYPE CFML Type Expression aDimension -1 aIndex 2 Detail An exception occurred while invoking an event handler method from Application.cfc. The method name is: onRequest. Message Event handler exception. RootCause
struct Detail [empty string] ErrNumber 0 Message The element at position 2 cannot be found.

tonyjunkes commented 3 years ago

We're gonna need some more details about your code, where/when/how you encounter the error, and framework settings (in Application.cfc) to be of any help.

I've done some general testing with the latest version of FW/1 on CF2021 and everything has worked as expected; including all of its unit tests. Using anything below the latest is going to be prone to issue by nature since the older versions do not get much long term support outside of the occasional security risk.

Regarding upgrading from version 2.1...

My initial suggestion would be to gradually introduce FW/1 version bumps and make changes as necessary based on anything that was a breaking change in that version until you are up to date with the latest version. Jumping from 2.1 to 3+ can be daunting due to a handful of breaking changes introduced along the way. I would review the links below for possible hints to code changes you are missing in order to progress.

Hope this helps. Cheers.

ramparvataneni commented 3 years ago

Thanks for the response and suggestion. We will try to follow the steps listed.