Keyword

[SOLVED] 0 Error decoding JSON data: Control character error, possibl

  • by Alexander
  • by Alexander's Avatar Topic Author
  • Offline
  • New Member
More
8 years 6 months ago #158670 by by Alexander
HI, after upgrading Joomla 3.6.2 to 3.6.3 I get this error when I want to edit a k2 article or make a new one.

0 Error decoding JSON data: Control character error, possibly incorrectly encoded

Where do I look for this? Is there an update for it?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 6 months ago #158686 by Krikor Boghossian
Replied by Krikor Boghossian on topic 0 Error decoding JSON data: Control character error, possibl
Can you try disabling error reporting?
Which file is throwing that error?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • by Alexander
  • by Alexander's Avatar Topic Author
  • Offline
  • New Member
More
8 years 6 months ago #158710 by by Alexander
Error reporting is off. Here is a screenshot.

Please Log in or Create an account to join the conversation.

  • by Alexander
  • by Alexander's Avatar Topic Author
  • Offline
  • New Member
More
8 years 6 months ago - 8 years 6 months ago #158711 by by Alexander
Last edit: 8 years 6 months ago by by Alexander.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 6 months ago #158716 by Krikor Boghossian
Replied by Krikor Boghossian on topic 0 Error decoding JSON data: Control character error, possibl
Can you check on your error_log which file is throwing the error?
I am asking this because I cannot reproduce this behaviour using K2 2.7.1 and 2.7.2 DEV build.

It is possible that a 3rd party K2 extension is causing this issue.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 6 months ago #158717 by Krikor Boghossian
Replied by Krikor Boghossian on topic 0 Error decoding JSON data: Control character error, possibl
Can you check on your error_log which file is throwing the error?
I am asking this because I cannot reproduce this behaviour using K2 2.7.1 and 2.7.2 DEV build.

It is possible that a 3rd party K2 extension is causing this issue.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • by Alexander
  • by Alexander's Avatar Topic Author
  • Offline
  • New Member
More
8 years 5 months ago #158735 by by Alexander
I use a template from Gavick, and I do not use any thirdparty k2 extensions. I only enabled K2 and K2 system plugin and the problem still is there.

Would it help to download a fresh copy of K2 and install it again without losing stuff? Maybe a specific file is corrupt ?

This is what I typed to Gavick support:

Hi, I want to notify that K2 throws in some problems after updating Joomla (technews) 3.6.2 to 3.6.3. I asked K2 and they asked me 2 things:

1. Check error_log. (Does the template have the errorlog string attached, cause I cannot seem to find the file.)
2. Do you use a third party k2 plugin? In the backend I cannot find any.

I need to be able to reproduce the problem for them and I have 40 websites with k2. The only one that gives me the problem is the one with the odd in it, your newstech template.

The error I get as soon as I want to click on an K2 article:
0 Error decoding JSON data: Control character error, possibly incorrectly encoded

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 5 months ago #158737 by Krikor Boghossian
Replied by Krikor Boghossian on topic 0 Error decoding JSON data: Control character error, possibl
Hello,

You can try installing the DEV version github.com/getk2/k2

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • by Alexander
  • by Alexander's Avatar Topic Author
  • Offline
  • New Member
More
8 years 5 months ago #158742 by by Alexander
This is a message from Robert Gavick. However, the php version I use is NOT PHP 7.0+, I use PHP 5.5.32.

I do not have any clue with this and I'm pretty f*cked if this can't be solved.
1. There’s no error found in the error_log file.
2. There’s no k2 third party plugin activated
3. I’ve disabled completely K2 overriden files from TechNews template and the problem still occurs

Additional informations:
I’ve noticed that the problem occurs only on the server with PHP 7.0.x (with PHP 5.6.x there’s no problem).
K2 v.2.7.0 works properly
K2 v.2.7.1 and dev version 2.7.2 don’t work.

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago #158756 by Alex Mediosavs
Hello, I have the same problem, this happened when you upgrade joomla 3.6.3 and k2 2.7.1

Please Log in or Create an account to join the conversation.

  • by Alexander
  • by Alexander's Avatar Topic Author
  • Offline
  • New Member
More
8 years 5 months ago #158758 by by Alexander
Hi Alex, do you use a gavick template or something? Maybe we can check our similarities?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 5 months ago #158763 by Krikor Boghossian
Replied by Krikor Boghossian on topic 0 Error decoding JSON data: Control character error, possibl
I am on 7.0.10 and I cannot verify the issue with 2.7.1 and 2.7.2
I can see the same issue on Github github.com/joomla/joomla-cms/issues/12460 which means that is probably a core issue unrelated to K2.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • by Alexander
  • by Alexander's Avatar Topic Author
  • Offline
  • New Member
More
8 years 5 months ago #158770 by by Alexander
Bug found, it's tiny MCE. Switch to none or a third party editor like JCE and we are all set.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 5 months ago #158773 by Krikor Boghossian
Replied by Krikor Boghossian on topic 0 Error decoding JSON data: Control character error, possibl
Thank you for sharing this Alexander :)
It will benefit a lot of users.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • by Alexander
  • by Alexander's Avatar Topic Author
  • Offline
  • New Member
More
8 years 5 months ago #158774 by by Alexander
Your welcome Krikor and I am very happy to be of help! I am more of a designer then technical, but due to my 6 years of building sites in Joomla, I've learned allot. Normally I am in need of help, but tides seem to turn :)

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 5 months ago #158779 by Krikor Boghossian
Replied by Krikor Boghossian on topic 0 Error decoding JSON data: Control character error, possibl
These things tend to happen when you are into open source projects :)
Kudos!

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago #158793 by Alex Mediosavs
Thanks my friend

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago #158812 by Alexander
Hello,

Not actually a core issue but an issue with multiple variants such as incorrect plugin parameters and varius was for an incorrect json formated string saved in the database.
On github.com/joomla/joomla-cms/issues/12460

For a permanent sollution check the message github.com/joomla/joomla-cms/issues/12460#issuecomment-256219685
in order to actually find what parameter throws the errror and fix it. In my case it was com_users parameters so i (hacked joomla , re saved the users Settings and restored the joomla code, voilla no more errors).

Kind regards.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 5 months ago #158819 by Krikor Boghossian
Replied by Krikor Boghossian on topic 0 Error decoding JSON data: Control character error, possibl
A lot of heat in this thread.
Lets hope a permanent fix get into the next release.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • by Alexander
  • by Alexander's Avatar Topic Author
  • Offline
  • New Member
More
8 years 4 months ago #159520 by by Alexander
I had another site and discovered that the problem is because of the metadata that is migrated from an older site.

I removed it from the aricles in the database and voila.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum