Plugin Author
icc0rz
(@icc0rz)
Hi,
We need some more details on this to get to the bottom of it.
Do you know if this happens for you on a “vanilla” WordPress, or if you have a special setup?
Thanks for replying.
This on a live site with other plugins. The results data that I can’t see via the H5P Plugin is real user data collected from courses attended. I think the data is still in the database as the SNORDIAN’s H5PxAPIkatchu plugin can still access the xAPI values related to the same results.
I did try reverting the plugin to 1.15.4 yesterday, but the made no difference, and of course I don’t know whether the upgrade was the cause or a coincidence.
I have also just enabled Troubleshooting mode and just the H5P Plugin activated. This made no difference with 1.15.5 installed.
Nick
I have also tried to add another record by undertaking the quiz. The quiz works as normal and displays a score at the end, BUT no results appear via the results link.
efox
(@foxylearning)
I’m testing 1.15.5 release on a staging site and I’m also having trouble with the results. I’m unable to access any results for my H5P content. When I click the “results” link for a piece of content, “Loading data” shows for quite a while before returning a “Failed to load data” message. This appears to happen with any type of H5P content (tested with Question Set, Interactive Video, and Interactive Book so far). All the data is retrieved and displayed just fine with the 1.15.4 version of the plugin on my production site.
efox
(@foxylearning)
I just checked my staging site’s logs and it appears that this issue may be due to an SQL error:
2022-12-13 12:45:32.238689 [NOTICE] [29382] [69.166.233.116:54796:HTTP2-29#staging.mysite.com] [STDERR] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.score,
hr.max_score,
hr.opened,
hr.fi' at line 3 for query SELECT hr.id,
hr.user_id
hr.score,
hr.max_score,
hr.opened,
hr.finished,
hr.time
FROM wp_h5p_results hr
WHERE hr.content_id = 323
ORDER BY hr.finished DESC
LIMIT 0, 20 made by do_action('wp_ajax_h5p_content_results'), WP_Hook->do_action, WP_Hook->apply_filters, H5PContentAdmin->ajax_content_results, H5P_Plugin_Admin->print_results, H5P_Plugin_Admin->get_results
Plugin Author
icc0rz
(@icc0rz)
Thanks Oliver, we’ll get your fix out as soon as possible!
Plugin Author
icc0rz
(@icc0rz)
The fix should be out now.
That seems to have fixed the problem.
Many thanks.
Nick