Title: Issues with User Redirection Plugin and JSON Error
Last modified: March 26, 2024

---

# Issues with User Redirection Plugin and JSON Error

 *  Resolved [riccardo1999](https://wordpress.org/support/users/riccardo1999/)
 * (@riccardo1999)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/issues-with-user-redirection-plugin-and-json-error/)
 * 
   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)

 *  [Israel Martins](https://wordpress.org/support/users/israelmartins/)
 * (@israelmartins)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/issues-with-user-redirection-plugin-and-json-error/#post-17529968)
 * Hi [@riccardo1999](https://wordpress.org/support/users/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](https://wordpress.org/plugins/health-check/)**
   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_](https://code-atlantic.com/contact/).
 * Please, let me know how it goes.
 *  Thread Starter [riccardo1999](https://wordpress.org/support/users/riccardo1999/)
 * (@riccardo1999)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/issues-with-user-redirection-plugin-and-json-error/#post-17534710)
 * Hi Israel, it worked. Thanks for your support!
   Best regards,Riccardo
 *  [Israel Martins](https://wordpress.org/support/users/israelmartins/)
 * (@israelmartins)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/issues-with-user-redirection-plugin-and-json-error/#post-17535217)
 * Hi [@riccardo1999](https://wordpress.org/support/users/riccardo1999/) ,
 * We’re glad that was helpful.
 * Don’t hesitate to [_reach out_](https://wordpress.org/support/plugin/content-control/#new-topic-0)
   if you have more questions.
 * You may also send us a message via [_Contact Us​ – Code Atlantic_](https://code-atlantic.com/contact/).
    -  This reply was modified 2 years, 2 months ago by [Israel Martins](https://wordpress.org/support/users/israelmartins/).

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

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

 * ![](https://ps.w.org/content-control/assets/icon-256x256.gif?rev=2968535)
 * [Content Control - The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More](https://wordpress.org/plugins/content-control/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/content-control/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/content-control/)
 * [Active Topics](https://wordpress.org/support/plugin/content-control/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/content-control/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/content-control/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Israel Martins](https://wordpress.org/support/users/israelmartins/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/issues-with-user-redirection-plugin-and-json-error/#post-17535217)
 * Status: resolved