• Resolved codesloth

    (@codesloth)


    Hi, I’ve installed Site Reviews and made a testing page to give it a whirl but I’m unable to submit any reviews. Hitting Submit results in “Invalid request” appearing.

    • Originally I used the Elementor block, so I tried swapping to the Gutenberg block to see if that made a difference. Same result.
    • Tried disabling just the Wordfence firewall. Same result.
    • Tried disabling all plugins across the site. Same result.
    • Tried swapping to default WP theme. Same result.
    • Tried installing on a totally different site/domain that’s under the same host just for giggles, and that worked okay to submit a review, so it’s specifically this site as the problem child.
    • Created a review manually from the wp-admin panel successfully. That review also displayed in the summary widget properly, so it’s really just the form submission that’s going sideways.
    • Enabled Captcha v3. Same result.
    • Deactivated plugin then reactivated. Same result.
    • Did the Hard Reset option as well as repair permissions, repair review relations, and reset meta options. Same result.
    • Watched page load in Chrome dev view, no warnings appeared.

    Debugging enabled in the console doesn’t show a ton to go on but this appears every time I hit the Submit button.

    [2024-03-01 19:11:19] ERROR [Router:160] AJAX request must include an action
    
    [2024-03-01 19:11:19] DEBUG [Router:160] Array (
        [0] => (bool) false
        [_ajax_request] => (bool) true
    )

    I’ve run out of troubleshooting steps and I’m not sure what to look at next. Happy to provide full console log and system info log upon request if that’d help too!

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    • Have you modified the Site Reviews plugin?
    • Are you using any code snippets to modify Site Reviews?
    • Are you using any custom plugin template files?

    The problem is happening because the name attribute on the terms toggle input field has been modified.

    It should look like this: name="site-reviews[terms]"

    On your website it has been changed to this: name="site-reviews"

    Thread Starter codesloth

    (@codesloth)

    Appreciate the quick response! Gotta love late Friday troubleshooting.

    • No, I have not modified the Site Reviews plugin. I tried doing a reinstall of Site Reviews earlier with the uninstall option set to nuke everything just to make sure it was fully reset to out-of-the-box, but that didn’t change the result.
    • No, I’m not using any code snippets to modify Site Reviews.
    • No, I’m not using any custom plugin template files.

    The theme I’m using is Docy, which has its own core plugin. But disabling both the theme and all plugins except Site Reviews still results in the “Invalid request” message.

    Is there any additional spot to trace what changed that attribute? Or set it back to what it’s supposed to be?

    Edit: Making the terms toggle optional and hiding it so the fields are just stars / title / review / name was successful. The toggle isn’t terribly important so I’m good to go!

    • This reply was modified 1 year ago by codesloth. Reason: added resolution
    Plugin Author Gemini Labs

    (@geminilabs)

    Can you send me the Site Reviews > Tools > System Info file and the console file? Use the Contact Support section on the Help page which has instructions on how to send them.

    Since you said the problem remains with a default WordPress theme and all plugins deactivated, the issue is likely either related to your server settings, or a mu-plugin or drop-in plugin.

    I would like to figure out what is causing it.

    Plugin Author Gemini Labs

    (@geminilabs)

    FYI: the hide setting is also checked server-side, so changing the required option in the settings isn’t required to hide the field.

    Thread Starter codesloth

    (@codesloth)

    Sent!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘“Invalid request” on submit’ is closed to new replies.