• Resolved crazywhiz

    (@crazywhiz)


    I have added the Site Reviews form using block editor. While submitting the review form, I’m getting Bad Request error.

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor Paul

    (@pryley)

    I don’t see a review form on that page.

    Also, check the “Common Problems & Solutions” section on the “Site Reviews > Help & Support” page for a list of all form error messages and what they mean.

    Thread Starter crazywhiz

    (@crazywhiz)

    Paul, you can check the form now.

    Plugin Contributor Paul

    (@pryley)

    There might be a plugin or theme conflict happening here. Likely something is intercepting $_POST values during AJAX requests.

    The error in Site Review happens when the site-reviews[_action] value in the $_POST request array is empty. This should never happen, and if you look at the HTML of the page, the input does exist…

    <input type="hidden" name="site-reviews[_action]" value="submit-review">

    So the only thing I can think of is that something is intercepting AJAX requests and modifying or removing $_POST values.

    I recommend you perform the Basic Troubleshooting Steps outlined on the Site Reviews > Help & Support page to try and track down the cause.

    • This reply was modified 4 months ago by Paul.
    Thread Starter crazywhiz

    (@crazywhiz)

    I did all Troubleshooting Steps, but no luck.

    Plugin Contributor Paul

    (@pryley)

    You changed the theme to “Twenty Twenty Four” and disabled all plugins except for Site Reviews and the problem still remains?

    Have you edited the plugin?

    Are you using a hosting provider that caches your website?

    • This reply was modified 4 months ago by Paul.
    Thread Starter crazywhiz

    (@crazywhiz)

    Yeah, I did. The culprit is my theme.

    Plugin Contributor Paul

    (@pryley)

    Is it a custom built theme or is it publicly available (free/paid)?

    If publicly available, have you modified it?

    • This reply was modified 3 months, 4 weeks ago by Paul.
    Thread Starter crazywhiz

    (@crazywhiz)

    Its Astra theme.

    Plugin Contributor Paul

    (@pryley)

    Yes but I have just tested the Astra theme with Site Reviews and everything works as expected.

    Have you modified the Astra theme (i.e. added custom code to function.php file, edited the theme files, etc.) or the Site Reviews plugin?

    Thread Starter crazywhiz

    (@crazywhiz)

    Yes, I have added few custom codes for additional functionality. Do I need to remove those?

    Thread Starter crazywhiz

    (@crazywhiz)

    Paul, the Bad Request error message is popping up only if add a custom code in functions.php to display the shortcode [site_reviews_form] under each post. Check an example post (https://crazywhiz.co.in/jai-kanth) and the review form at the end. Try submitting a review the error.

Viewing 11 replies - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.