I am getting the error `No matching Method/Functio...
# box-products
o
I am getting the error
No matching Method/Function for user defined function (auth).user() found
. Here is a snip of the code I am using as well as all related error logs and stacks( https://bitbucket.org/ookma-kyi/workspace/snippets/6EyeMx ). What's weird is I copied and pasted that portion of the code from another module. The other component I copied and pasted from works but not this one. I double checked and yes I am injecting the
auth
dependency inside my component. Sorry about having no syntax highlighting, Bitbucket doesn't have any for ColdFusion. Trying to end the file with the extension .cfc defaults to C. 😢
a
The bigger challenge for that snippet is that it's behind a login 😐 Why don't you create a gist? https://gist.github.com/ But the error is telling you what the problem is. What do you think this means?
No matching Method/Function for user defined function (auth).user() found
o
It shouldn't be behind a login, but will move it to a gist on github.
Also is this proper casing for a property
property name="notificationpreference";
?
e
You likely injected
auth
when the helper
auth()
was also injected. Try deleting your
auth
injection and use
auth()
instead.
cbauth automatically injects an
auth()
function to handlers and interceptors.
a
It shouldn't be behind a login, but will move it to a gist on github.
Ah, it might be because I am logged in to bitbucket, and it's going "that's not your code". If I open in an incognito browser it's fine, I can see it.
Weird.
( I can also now see it in my normal browser. /me shakes fist @ Atlassian 😉