• Resolved lspoe2

    (@lspoe2)


    Hi,

    I’m using the messaging plugin Front End PM.

    When a user submits a message, the message area reloads with ajax.
    Then when a users tries to submit a review on that same page after sending a message, I get the following error message:
    {“code”:”rest_forbidden”,”message”:”Sorry, you are not allowed to do that.”,”data”:{“status”:401}}

    However, the review does still get submitted.

    I think this is because both are using ajax?

    I came across these articles, which are similar to the problem I’m facing:
    https://ww.wp.xz.cn/support/topic/reinitialize-after-ajax-load/
    https://ww.wp.xz.cn/support/topic/popup-not-working-after-ajax-response/

    Do you have a possible solution to this or should I contact the other plugins author?

    Thanks

    • This topic was modified 4 years, 7 months ago by lspoe2.
Viewing 1 replies (of 1 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    You’ll have to contact the other plugin author. Site Reviews only adds event listeners to its own forms. It sounds like this other plugin is adding global event listeners (instead of only on specific elements that are generated by that plugin).

    • This reply was modified 4 years, 7 months ago by Gemini Labs.
Viewing 1 replies (of 1 total)

The topic ‘Submit review after ajax load causing some issues’ is closed to new replies.