Keyword

Error decoding JSON data: quoted object property name expect

  • Jan Marin
  • Jan Marin's Avatar Topic Author
  • Offline
  • New Member
More
7 years 6 months ago #160901 by Jan Marin
Hello there!

We're having issues with our website. We have migrated our Joomla content through J2XML to our new server where we started almost fresh (except the imported content, which was later imported to K2 component, which wasn't used before on the old server). We started on Joomla 3.5.1. Today we have noticed an issue with opening these imported articles. When trying to open them, we get an error:

Error decoding JSON data: quoted object property name expected

Some of these older imported articles can be opened though, but they were modified prior to the update to Joomla 3.6.5.

Any ideas what to do? I put the backup to the testing server and the problem doesn't exist there. So it probably was the update that caused this. Also, just pulling back the backup is not a good option because within few hours from last update there has been quiet some work done and we don't want loose any of it.

We also tried swapping folder "libraries" with those from the backup but unfortunately it leads to completely white blank page in the frontend and backend.

The website can be found here: www.zasavska-tv.si

Many thanks in advance!
Jan

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

  • Mohamed Abdelaziz
  • Mohamed Abdelaziz's Avatar
  • Offline
  • Platinum Member
  • Joomla Developer
More
7 years 6 months ago #160904 by Mohamed Abdelaziz
Replied by Mohamed Abdelaziz on topic Error decoding JSON data: quoted object property name expect
Hello Jan,

I think this post maybe relevant to your problem www.joomlaworks.net/forum/k2-en/46914-0-error-decoding-json-data-syntax-error

Have a look there.

Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store

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

  • Jan Marin
  • Jan Marin's Avatar Topic Author
  • Offline
  • New Member
More
7 years 6 months ago #160929 by Jan Marin
Hi Mohamed!

Thanks for a great clue! I digged into the code and found a solution.

I checked the file /administrator/components/com_k2/views/item/view.html.php. One of the solutions was to change this part:
FilterOutput::objectHTMLSafe($item, ENT_QUOTES, array(
			'video',
			'params',
			'plugins'
		));

However, the code was not exactly the same, it starts with:
JFilterOutput...

So the solution was to change it to:
JFilterOutput::objectHTMLSafe($item, ENT_QUOTES, array(
			'video',
			'params',
			'plugins',
                        'metadata'
		));

Great component and community! Thanks! :)

Jan

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 6 months ago #160949 by Krikor Boghossian
Replied by Krikor Boghossian on topic Error decoding JSON data: quoted object property name expect
Nice to hear that you got it sorted out.
Care to make a PR?
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.


Powered by Kunena Forum