help to better help you:

Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!

[SOLVED] JSON data error - archived events

Re: [SOLVED] JSON data error - archived events

8 years 1 month ago
#22928
Karl wrote:
It seems like many others have a similar problem.
@Karl: It would be interesting, where do you know that?

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

Re: [SOLVED] JSON data error - archived events

8 years 1 month ago
#22929
@Jojo
think it's more in general.

@Karl
do you have any other 3rd party plugins/modules installed?

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

Re: [SOLVED] JSON data error - archived events

8 years 1 month ago
#22930
Did install joomla 3.6.4 + JEM2.0.0, played around a bit with creating/archiving/viewing the events etc. but am at the moment not able to replicate the problem :(
--> will take a second look tomorrow.

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

Re: [SOLVED] JSON data error - archived events

8 years 1 month ago - 8 years 1 month ago
#22931
hmm am noticing the plugin with the cookie statement.
--> what happens if you turn that plugin off?
Last edit: 8 years 1 month ago by Bluefox.

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

Re: [SOLVED] JSON data error - archived events

8 years 1 month ago - 8 years 1 month ago
#22932
Hi,

@jojo:
Look at the links (GitHub and joomla.org), Bluefox has posted.

@Bluefox:
I have disabled many plugins, allways the same error.
On my localhost I have a joomla 3.6.2 installation.
I installed JEM and import all events.
If I show the eventarchive everthing is fine - no error.

Edit:
On joomla.org forum.joomla.org/viewtopic.php?t=937036#p3436291 I read this post.
I copy the folder libraries/vendor from joomla 3.6.2 to 3.6.3 - no error.

Edit2:
I found the relevant code.
In libraries/vendor/joomla/registry/src/Format/Json.php

3.6.2
Code:
return json_decode($data);
3.6.3
Code:
$decoded = json_decode($data); // Check for an error decoding the data if ($decoded === null) { throw new \RuntimeException(sprintf('Error decoding JSON data: %s', json_last_error_msg())); } return $decoded;
Last edit: 8 years 1 month ago by Karl.

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

Re: [SOLVED] JSON data error - archived events

8 years 1 month ago - 8 years 1 month ago
#22933
I found the solution.

Older events in database stored metadata and attribs like this
Code:
{"robots":"","author":"","rights":""} {"event_show_author":"",...

Correct would be
{"robots":"","author":"","rights":""}
{"event_show_author":"","event_link_author":""...

I update the uncorrect columns and the errror is gone.

Thank you for your help!

Best regards
Karl

Edit: How can I mark this topic as "solved"
Last edit: 8 years 1 month ago by Karl.
The following user(s) said Thank You: jojo12

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

Time to create page: 0.610 seconds