Skip to content

Error in RoutesParser.cfc #46

Description

@robmarzialetti

I get this error:
Cannot return first element of array; array is empty

Image

in: RoutesParser.cfc
line: 432

I had to make this change to the code to get it to work, set to empty fullEvent variable and comment the followed line:

    fullEvent = "";
    if ( !len( handlerRoute ) && isStruct( arguments.route.action ) ) {
        //var fullEvent = arguments.route.action[ arguments.route.action.keyArray().first() ];
    }

This is mine "arguments.route"

Image

Maybe I'm doing something wrong in the setup?

Many thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions