Call to wppaAjaxRemovePhoto on frontend missed parameter
-
Hi opaJaap,
I have frontend uploads enabled and I also would like to approve the pics on the frontend when I am logged in. I tried this but it doesn’t work in your latest version.
I debugged it and I saw that there is a call to
wppaAjaxRemovePhoto
with 2 parameters, where it expects 3.It seems to me (but offcourse, I cannot be sure) that parameter one was either removed or added.
There are three parameters expected:
wppaAjaxRemovePhoto(mocc, photo, isslide)
, butmocc
isn’t passed (not as null or undefined either). It starts withphoto
(id) and then a boolean. It tries to generate a URL with the boolean as photo-id and that doesn’t work:
https://www.example.nl/wp-content/plugins/wp-photo-album-plus/wppa-ajax-front.php?action=wppa&wppa-action=remove&photo-id=true
It gives (alert) a Security Check error message.It seemed like an easy fix and I would have proposed the new code here, but it isn’t clear to me what
mocc
should be. I hope this is clear enough 🙂Kind regards,
Jeroen Peters
- The topic ‘Call to wppaAjaxRemovePhoto on frontend missed parameter’ is closed to new replies.