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]
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.
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 2 years, 2 months ago by Springtide.
This reply was modified 2 years, 2 months ago by Springtide.
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:
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.