• Resolved riccardo1999

    (@riccardo1999)



    Hello,

    I’m using your plugin to manage user redirections after login. However, I’ve encountered an issue: the restrictions from the list in the dashboard seem to have disappeared, even though they are still active. This is evident from the fact that, once the plugin is deactivated, the redirections I had set up are no longer applied.

    Additionally, I’m encountering an error when trying to create new restrictions. I’m getting the following error message: “Unexpected token ‘<‘, “<script ty…” is not valid JSON”.

    Could you please investigate these issues and provide a solution?
    Thank you very much.
    Riccardo

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @riccardo1999 ,

    Thanks for reaching out.

    First, let’s make sure it’s not caused by a code conflict.

    Install and activate WordPress’s Health Check & Troubleshooting plugin, along with the Twenty Twenty-Four or Twenty Twenty-Three theme.

    Once the troubleshooting plugin is active, go to your plugins page and click Troubleshooting Mode for our plugin to figure out if a theme or other plugin is interfering with ours. 

    You’ll also need to turn off any custom code (including custom caching).

    Note: The Troubleshooting Mode automatically switches to a WordPress default theme (e.g., Twenty Twenty-Four) and deactivates all the other plugins only for you (your site runs normally for everyone else).

    Now, you’re ready to troubleshoot for possible conflicts. Follow these steps:

    1. Test for the error. If the error is gone, it’s a good sign that your site’s theme, plugins, or custom code clashes with our plugin. Time to narrow it down!
    2. Potential time saver: Check the theme first since that’s quick. Hover over Troubleshooting Mode > Themes in the top admin toolbar and switch back to your main theme.
    3. Retest for the error. If you see the error, your main theme is the most likely cause. If not, you can keep the main theme active and move on to the plugins.
    4. Activate your other plugins one at a time, constantly testing for the error after you activate each plugin. Keep going until the error comes back. Potential time saver: If you initially saw the error after installing new plugins or updating any existing plugins, activate those first 1-by-1.
    5. If you see the error, deactivate the last plugin you activated and retest.
    6. If the error disappears again, the last plugin you deactivated is causing a conflict. Make a note and keep it deactivated.
    7. Return to step #4 to keep testing for other possible conflicts (do the same for custom code after you finish the plugins).

    You should have a list of the conflicting themes, plugins, and custom code you can now share with the appropriate support team.

    If that doesn’t help, kindly send us a message via Contact Us​ – Code Atlantic.

    Please, let me know how it goes.

    Thread Starter riccardo1999

    (@riccardo1999)

    Hi Israel, it worked. Thanks for your support!
    Best regards,
    Riccardo

    Hi @riccardo1999 ,

    We’re glad that was helpful.

    Don’t hesitate to reach out if you have more questions.

    You may also send us a message via Contact Us​ – Code Atlantic.

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

The topic ‘Issues with User Redirection Plugin and JSON Error’ is closed to new replies.