stephanus

I'm trying to switch to React from jQuery and uses different function, that's probably where it messes up

stephanus

yep gotcha, that's where the issue comes from

stephanus

That $data['memberID'] always prints 0 if I do it via AJAX

stephanus

the weird thing is if open the endpoint without ajax, i could get the ID

stephanus

Does anyone know why whenever I try to get member ID Member::currentUserID(); using AJAX, it always throws 0 even though im logged in..?

stephanus

okk found it, the file permission was wrong lol