Jump to content

Recommended Posts

Hi there! I don't know if I've posted this topic in the right place.

I am unable to edit my CMS due to an error. In the CMS sitemap it states "SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data". In the error log it says "PHP Warning:  php.ini settings: Please disable mbstring.encoding_translation or set mbstring.http_input to "pass".

Do I need to edit my JSON file or edit the php.ini settings? How do I do this?

Many thanks!

Link to comment
https://forums.phpfreaks.com/topic/315961-phpini-settings/
Share on other sites

Those are two probably unrelated messages.

The json error is from JavaScript, telling you it was unable to parse some json data.  There is probably either a syntax error in the data, or if the data is coming from an ajax call it might be unexpectedly getting HTML instead.

The php.ini warning is your CMS asking you to make that setting change.  Presumably there is a reason it wants that done so you should probably do it.  If you don't know where to make the change, create a phpinfo() page and it will tell you where the php.ini file is so you can edit it.

Link to comment
https://forums.phpfreaks.com/topic/315961-phpini-settings/#findComment-1606092
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.