• Resolved lgivanovivan

    (@lgivanovivan)


    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author otacke

    (@otacke)

    @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

    Thread Starter lgivanovivan

    (@lgivanovivan)

    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.

    Plugin Author otacke

    (@otacke)

    @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.

    Thread Starter lgivanovivan

    (@lgivanovivan)

    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?

    Plugin Author otacke

    (@otacke)

    @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.

    Thread Starter lgivanovivan

    (@lgivanovivan)

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Data is not captured’ is closed to new replies.