History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: FC-1385
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Michael Sharman
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
FarCry Core Framework

Error extending tree.cfc

Created: 26/Jun/08 03:55 PM   Updated: 13/Aug/08 11:30 AM
Component/s: Libs (FAPI, etc)
Affects Version/s: FarCry 5.0 (Fortress)
Fix Version/s: 5.0.2

Time Tracking:
Not Specified

Environment:
Mac OSX
ColdFusion 8.01


 Description  « Hide
When extending farcry.core.packages.farcry.tree in your project (packages/system folder) you get an error:

"coldfusion.runtime.UndefinedElementException: Element PACKAGEPATH is undefined in a CFML structure referenced as part of an expression."

Looks like you have to add the cfinclude which is in the original tree.cfc (<cfinclude template="/farcry/core/webtop/includes/cfFunctionWrappers.cfm">).

The problem with this is that after the application starts you can't reference your overridden tree.cfc as you get the following error:

"The routine queryofquery has been declared twice in different templates."

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Michael Sharman - 26/Jun/08 04:18 PM
Upon further investigating it seems I can't add cfcs to my "types" or "system" directory in my project. If I add them to a "custom" directory (in packages) everything works fine.

Geoff Bowers - 11/Aug/08 02:12 PM
This appears to be the expected behaviour for extending a non-coapi component.