This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Tuim
Tuim

Hi! I have made some controllers in my plugin and defined the actions in $publicActions but I keep getting "Call to a member function hasAnyAccess() on null" when accessing the action without first logging on to the backend.

Is there any way around this?

DMeganoski
DMeganoski

How about a little more info? What is the file and line number of this error?

Perhaps it's a backend resource you're referencing that expects a user to be logged in.

Tuim
Tuim

These are backend resources indeed. I have moved the controllers to a non October controller style with https://github.com/daftspunk/oc-laravelapi-plugin and now it works as supposed.

Thanks for replying.

DMeganoski
DMeganoski

I actually had not seen that plugin yet. Hmm With the steep learning curve going from Laravel to October, I just may use that plugin myself. Glad you got it worked out.

1-4 of 4

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.