WPIntell

Source evidence

Data is not captured

SNORDIAN's H5PxAPIkatchu · support · 2022-01-30T20:11:00+00:00

mixedsentiment
mediumseverity
0.84relevance
6replies
Evidence onlycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

1 / 1 rows with source links

100.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

0 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
lgivanovivan resolved
Hello! All old content works fine. But any new H5P content is not recorded. An entry is not created in the “wp_h5pxapikatchu_object” table. Plugin versions are new, in the H5PxAPIkatchu settings the content is enabled for recording. @lgivanovivan In that case, you should a) activate the debug option that will allow you to see what the client side (the browser) can catch in the browser’s development console (usually opened by pressing F12) and b) whether there are any server side messages in your PHP error log. Best, Oliver Unfortunately, only this: [error] 5607#5607: *9395830 openat() “/…/wp-content/uploads/h5p/cachedassets/f855406136630a5767b5e719ec696ea474455228.js” failed (2: No such file or directory) I tried disabling cache and optimization plugins – didn’t help. @lgivanovivan That’s not an issue with H5PxAPIkatchu, but with H5P itself. The cachedassets directory is where H5P stores a single javascript file that bundles all the files it needs for the content. H5P should normally simply re-create that file if it’s missing, hard to tell what went wrong in the first place and why it doesn’t. Hello! Everything worked today. What was the reason, I do not know, I did not change anything. I don’t need all the functionality of this plugin. I only need to count presentation slide views and record the number in the user’s meta field. Can you show a code snippet that I could use to do this? @lgivanovivan Glad it’s working again. You’d want to create a mini plugin/modify the sample plugin from h5p.org ( https://h5p.org/wordpress-customization ), e. g. use the alter_semantics hook to know when a Course Presentation is openend and then use the get_user_meta and update_user_meta function of WordPress to set/increment the counter. Thanks!

Comments

6 shown
otacke 2022-01-30T20:22:00+00:00

@lgivanovivan In that case, you should a) activate the debug option that will allow you to see what the client side (the browser) can catch in the browser’s development console (usually opened by pressing F12) and b) whether there are any server side messages in your PHP error log. Best, Oliver

lgivanovivan 2022-01-30T20:42:00+00:00

Unfortunately, only this: [error] 5607#5607: *9395830 openat() “/…/wp-content/uploads/h5p/cachedassets/f855406136630a5767b5e719ec696ea474455228.js” failed (2: No such file or directory) I tried disabling cache and optimization plugins – didn’t help.

otacke 2022-01-30T22:18:00+00:00

@lgivanovivan That’s not an issue with H5PxAPIkatchu, but with H5P itself. The cachedassets directory is where H5P stores a single javascript file that bundles all the files it needs for the content. H5P should normally simply re-create that file if it’s missing, hard to tell what went wrong in the first place and why it doesn’t.

lgivanovivan 2022-01-31T08:33:00+00:00

Hello! Everything worked today. What was the reason, I do not know, I did not change anything. I don’t need all the functionality of this plugin. I only need to count presentation slide views and record the number in the user’s meta field. Can you show a code snippet that I could use to do this?

otacke 2022-01-31T09:18:00+00:00

@lgivanovivan Glad it’s working again. You’d want to create a mini plugin/modify the sample plugin from h5p.org ( https://h5p.org/wordpress-customization ), e. g. use the alter_semantics hook to know when a Course Presentation is openend and then use the get_user_meta and update_user_meta function of WordPress to set/increment the counter.

lgivanovivan 2022-01-31T09:25:00+00:00

Thanks!