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
Karl wrote:
@Karl: It would be interesting, where do you know that?It seems like many others have a similar problem.
Please Log in or Create an account to join the conversation.
Re: [SOLVED] JSON data error - archived events
8 years 1 month ago
@Jojo
think it's more in general.
@Karl
do you have any other 3rd party plugins/modules installed?
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
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.
--> 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
hmm am noticing the plugin with the cookie statement.
--> what happens if you turn that plugin off?
--> 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
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
3.6.3
@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);
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
I found the solution.
Older events in database stored metadata and attribs like this
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"
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