• Resolved wordmax

    (@wordmax)


    Open a post to edit it. Go to blocksy theme post/page options on right side and try to change from my default blocksy single post setting (right-sidebar) to normal width option with no sidebar.

    However when trying to update the page, we get a wordpress error pink bar at top that says “Updating failed. The response is not a valid JSON response.”

    This is new, never seen this error before doing the exact same thing on mulitple pages/posts on multiple sites using Blocksy theme.

    Any ideas? Please advise.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @wordmax

    Actually, this isn’t a theme issue, rather a server configuration one. It seems that you are very likely running the outdated mod_security module on it, which falsely flags any JSON payloads as “malicious” (due to it being outdated).

    I would recommend contacting your host and disabling this module, as even its parent company has dropped support for it — https://www.modsecurity.org

    This should solve the issue automatically.

    Hope this helps!

    Thanks.

    Thread Starter wordmax

    (@wordmax)

    Ok thanks for the info. What is interesting is that the JSON error on page/post after hitting the UPDATE BUTTON in editor view only happens when we try to change the individual post layout (using blocksy page setting in the post editor view) to something other than the default value set in the theme customizer > single post > layout > right sidebar layout

    If we just change the content/words on post and hit it update, it updates with no problem at all. Wonder why this is?

    Hi @wordmax

    That’s because updating the page doesn’t sent JSON, as far as I know. JSON is sent via our extension and others. Mod_sec falsely flags these payloads as malicious, due to it being outdated. It seems that even their website is down 🤦‍♂️.

    I would recommend deactivating it and implementing a better supported method for securing your website.

    Thanks!

    Thread Starter wordmax

    (@wordmax)

    Ok, thank you.

    Any suggestions for better supported alternative methods to mod security?

    Hi @wordmax

    Any of the plugins that are on the WordPress repository should be good to go. They have been extremely scrutinised by volunteers so you’ll know that everything should work buttery smooth.

    Thanks 🤝

    Thread Starter wordmax

    (@wordmax)

    Ok, thanks. BTW I checked with hosting provider support and they replied… “I have checked the apache logs and there is no mod security hit or JSON error found for the domain.”

    Not sure if this helps or not.

    Sorry, what kind of wp plugins might we be looking for as alternative to PHP mod security? Not one plugin specifically, but just the general category of plugins to be looking at.

    Hi @wordmax

    Can you have them confirm if mod_sec is actually enabled or not? Maybe they have their logs to not spew out every error.

    And any plugin from the security category should be sufficient. There are a lot of great options. Check out this article for some suggestions — https://www.wpbeginner.com/plugins/best-wordpress-security-plugins-compared/

    Thanks.

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

The topic ‘Update post error blocksy page setting layout change JSON error’ is closed to new replies.