Jump to content

Exception: SyntaxError: JSON.parse: unexpected character


Recommended Posts

Posted

While attempting to edit CSS in the default skin, I get this error and edits will not save. Can anyone help? I cannot edit anything in the skin editor.

Exception: SyntaxError: JSON.parse: unexpected character

Failure: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
webmaster@xxxx and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
<p>Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>

Posted

@AIWA - Thanks for the suggestion. I disabled mod_security via .htaccess using

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off

</IfModule>

That did NOT resolve the issue.

I then disabled it server-wide by recompiling Apache (using EasyApache 3.22 in WHM) Because this is on a VPS server that I manage I was able to update Apache and disable mod_security serverwide. This fixed the problem, however I am not sure what the full implications of disabling mod_security will be for other accounts, scripts and apps running on this server. Probably not good. For those who use shared hosting and do not have access to modifying Apache, good luck convincing your host to disable mod_security.

If someone knows what the actual problem is, that would be helpful. Thanks again AIWA for your suggestion.

Posted

The issue is a rule / setting within mod_security. This isn't an IP.Board issue. It's mod_security intercepting the save request with the template data and throwing an error.

That is the 'actual problem'.

You'll need to work with your host / server administrator to identify the mod_security rule that's causing the issue and either disable that rule, or make just that rule / setting more lenient.

As this is server related, and not skin related. I've moved it to a more appropriate forum for you.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...