- Posts: 2
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- Error decoding JSON data: quoted object property name expect
Error decoding JSON data: quoted object property name expect
- Jan Marin
-
Topic Author
- Offline
- New Member
Less
More
8 years 2 months ago #160901
by Jan Marin
Error decoding JSON data: quoted object property name expect was created 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
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
-
- Offline
- Platinum Member
- Joomla Developer
8 years 2 months ago #160904
by Mohamed Abdelaziz
Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store
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.
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
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 2
8 years 2 months ago #160929
by Jan Marin
Replied by Jan Marin on topic Error decoding JSON data: quoted object property name expect
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:
However, the code was not exactly the same, it starts with:
So the solution was to change it to:
Great component and community! Thanks! :)
Jan
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
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
8 years 1 month ago #160949
by Krikor Boghossian
Replied by Krikor Boghossian on topic Error decoding JSON data: quoted object property name expect
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- Error decoding JSON data: quoted object property name expect