• Resolved Springtide

    (@reneyoung)


    When I try to give an existing rule a name or make any other edits to it, I get a red box with “JSON.parse: unexpected character at line 1 column 1 of the JSON data”. My changes cannot be saved. Any ideas?

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Kim L

    (@kimmyx)

    Hi @reneyoung,

    Sorry to hear you encountered an issue.

    We’re unable to reproduce this. Have you tried checking for plugin/theme conflict?

    You can also send us an error log over at Contact – Code Atlantic so we can take a closer look.

    Feel free to add more details regarding the issue including screenshots and steps to reproduce the issue.

    We’ll wait for your response! ??

    Plugin Author Daniel Iser

    (@danieliser)

    @reneyoung – Also helpful to send us info on whether this was a fresh install or just updated and trying to edit old restrictions etc.

    Thread Starter Springtide

    (@reneyoung)

    I checked the content control log contents and there are no entries since October 2023. I only have one restriction on the website, and when I try to change the protection from Login & back to Custom URL, after entering the URL and clicking Save Restriction, I get the JSON error.

    Thread Starter Springtide

    (@reneyoung)

    This was not a fresh install. I am trying to edit a restriction that has been up for at least a year. The restriction works, but I want users to be redirected to our custom login form rather than the default WordPress login form. To do that, I need to enter the custom URL of the page containing the custom login form. But content control won’t let me save the restriction.

    Maybe I should try creating a new restriction and deleting the current one. I thought maybe the JSON error itself would provide a clue because it refers to “line 1, column 1”. I have no idea what JSON is or where it is found.

    • This reply was modified 1 year ago by Springtide.
    • This reply was modified 1 year ago by Springtide.
    Plugin Support Kim L

    (@kimmyx)

    Hi @reneyoung,

    Thanks for the response! Could you try recreating the rule and let us know if the error is still there?

    You can disable the old rule temporarily when testing the new rule you created.

    Let us know how it goes. ??

    Plugin Author Daniel Iser

    (@danieliser)

    @reneyoung – you can also try exporting it and reimporting it. Might get the kinks out of whatever data is missing or malformed.

    Check it in the list, the bulk actions includes an export option. Then there is an option to import when no items are checked.

    Thread Starter Springtide

    (@reneyoung)

    I deleted the restriction, then added it back. I am no longer getting the JSON error, but the restriction isn’t working at all. Logged out users can access the restricted page. The protected content is a page:

    https://www.towcanada.ca/digital-editions

    Thread Starter Springtide

    (@reneyoung)

    Now it started working. All I did was go through the settings again, leaving them as they were because I couldn’t find anything incorrect, and saved it again. Weird.

    Plugin Author Daniel Iser

    (@danieliser)

    @reneyoung – Awesome, glad its working. Do you use caching, that might explain it.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘JSON parse error when editing rule’ is closed to new replies.