• Resolved mlapl1

    (@mlapl1)


    Hello

    Just installed the plugin and checked the tables. Very nice.
    There is a little problem though. How do I retrieve the information? Mention is made of having a menu item in the main menu (backend I presume) but I see nothing.

    I would appreciate some assistance. I am using version 0.44 and WP 5.4.2

    Thanks for any help
    Andrew

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

    (@otacke)

    Hi Andrew!

    Yes, the menu item should be visible as depicted at https://ps.w.org/h5pxapikatchu/assets/screenshot-2.png?rev=1792917.

    There are two capabilities that can restrict access to that menu, see readme, but they should be set based on the capability for editing h5p content.

    Are there any issues in the PHP error log or the JavaScript error console?

    Best,
    Oliver

    Thread Starter mlapl1

    (@mlapl1)

    Hello Otacke

    Thanks for your response. I have read the readme file again but confess to feeling a bit lost (see below for the bits I dod not understand).

    For what it’s worth, I can see the plugin’s settings. I have not yet looked at the PHP error log etc. I will do that soon. But can you please explain briefly the following?

    Thank you very much
    Andrew

    ### Capabilities
    Some capabilities can be set for WordPress user roles in order to specify who
    should be allowed to do what:

    – _manage_h5pxapikatchu_options_: Capability to change the plugin’s options
    – _view_h5pxapikatchu_results_: Capability to view results of content types that have been created by current user and that were stored by H5PxAPIkachu
    – _view_others_h5pxapikatchu_results_: Capability to view results of all content types that were stored by H5PxAPIkachu
    – _download_h5pxapikatchu_results_: Capability to download the results stored by H5PxAPIkachu and accessible to current user
    – _delete_h5pxapikatchu_results_: Capability to delete ALL data stored by H5PxAPIkachu

    ### Hooks and filters
    H5PxAPIkachu provides some hooks and filters that developers can use to customize the behavior or to use H5PxAPIkachu as the basis of their own plugin.

    #### Hooks
    – _h5pxapikatchu_on_activation_: Triggered on activation of H5PxAPIkachu
    – _h5pxapikatchu_on_deactivation_: Triggered on deactivation of H5PxAPIkachu
    – _h5pxapikatchu_on_uninstall_: Triggered on uninstall of H5PxAPIkachu
    – _h5pxapikatchu_insert_data_: Triggered when data are supposed to be inserted into the database
    – _h5pxapikatchu_insert_data_pre_database_: Triggered right before data will be inserted into the database
    – _h5pxapikatchu_delete_data_: Triggered when data are supposed to be deleted from the database

    #### Filters
    – _h5pxapikatchu_insert_data_actor_: Allows to filter/retrieve the xAPI actor object when it is supposed to be inserted into the database
    – _h5pxapikatchu_insert_data_verb_: Allows to filter/retrieve the xAPI verb object when it is supposed to be inserted into the database
    – _h5pxapikatchu_insert_data_object_: Allows to filter/retrieve the xAPI object object when it is supposed to be inserted into the database
    – _h5pxapikatchu_insert_data_result_: Allows to filter/retrieve the xAPI result object when it is supposed to be inserted into the database
    – _h5pxapikatchu_insert_data_xapi_: Allows to filter/retrieve the complete xAPI statement string when it is supposed to be inserted into the database

    Plugin Author otacke

    (@otacke)

    Hi Andrew!

    If the readme feels like gibberish, then it’s probably not relevant and the PHP error log might be the best source of information.

    WordPress has a role management system that allows to set/unset so called capabilities for each role. This way, you can define who is allowed to do what. There are some capabilities that come along, and other plugins like H5P and H5PxAPIkatchu can add their own. I believe there’s no role editor shipping with WordPress because of its blog software heritage. It doesn’t really need role management, so you’d have to install a separate plugin to modify who is allowed to do what.

    Knowing that, the readme probably makes more sense. The view_h5pxapikatchu_results capability and the view_others_h5pxapikatchu_results could prevent you from seeing the menu item, but an admin should always have it at his/her disposal.

    The other two, hooks and filters (a WordPress feature), allow H5PxAPIkatchu to be customized without modifying the original code. Other plugins can listen for hooks and e. g. start some process on their own. Filters allow to obtain and change values processed by H5PxAPIkatchu in other plugins. For instance, O know of someone using H5PxAPIkatchu to retrieve the xAPI data from H5P contents but to write them to a different system instead of writing them to the local database.

    Best,
    Oliver

    Thread Starter mlapl1

    (@mlapl1)

    Hello Oliver,

    Sorry did not see your name last time. I understand the rules etc. I just don’t understand where and how to use them, that is how to insert them into the operations. I will try to find the relevant logs. That should help as you say. Otherwise, I can just read the database itself directly through some kind of frontend in order to do something with it.

    Thanks again for your help
    Andrew

    Plugin Author otacke

    (@otacke)

    Hi Andrew!

    You’d have to install a separate plugin such as User Role Editor to check or change the capabilities for a particular role. But as I mentioned: If you’re running as an admin you should have all capabilities that are required anyway and you’d see the menu item.

    That’s why I rather think there’s some form of problem that the PHP error log might hint to. Unfortunately, the location of the logs is not always the same and depend on server settings, and if you’re using a managed server, they might not be accessible for you at all :-/

    Common paths are

    • /var/log/httpd/error_log
    • /var/log/apache2/error.log
    • /usr/local/apache/logs/error_log

    You should find it easily if you can use phpinfo().

    Best,
    Oliver

    Thread Starter mlapl1

    (@mlapl1)

    Hello Oliver
    I am running a VPS so will have access to the logs – it’s a new install so I am not familiar with where the logs are. I guess I will discover it. Thank you for your suggestions. Yes I forgot about phpinfo. Will look now. I did install user role editor but I have not yet tried to change things. I guess I would have to change the admin role but, as you say, admin should access all.

    Thank you and back to you soon.
    Andrw

    Thread Starter mlapl1

    (@mlapl1)

    Hello Oliver
    Well… I found the httpd logs – no php errors that I can see… I think I know what that would look like. I may try disabling some/all of the plugins and see if that makes a difference.

    On a different note, what I would really like is the ability for the students to access all or part of the stored information. Is this possible? Is there maybe a shortcode that can be embedded in a page??? Otherwise, maybe a different front-end for the data may be needed.

    Thanks once again – I will keep you informed.
    Andrew

    Thread Starter mlapl1

    (@mlapl1)

    Hello Oliver

    Just went through a ‘troubleshooting’ exercise. No good results.
    For what it’s worth, I am using PHP7.3.19 and MariaDB10.3
    I will try the user role plugin again.

    Cheers
    Andrew

    Thread Starter mlapl1

    (@mlapl1)

    The admin role already had all the roles included… ??

    Plugin Author otacke

    (@otacke)

    Hi Andrew!

    Hmm, no errors, that’s a weird one.

    Could you please try if you can see the menu item as a user with a different role that has the view_h5pxapikatchu_results capability?

    Maybe I messed up something, but I can’t see where. If you feel comfortable with that, you could temporarily give me some admin rights on WordPress (don’t need it for the whole server) and I could have a look there.

    Best,
    Oliver

    Plugin Author otacke

    (@otacke)

    Hi Andrew!

    Regarding your other question: Your students should see the menu item “H5P Content->My Results” when they are logged in (given the right capability ?? It’s view_h5p_results). That’s where they can see all their results. That’s part of the regular H5P plugin for WordPress.

    There’s another plugin that cannot be listed in WordPress’ plugin repository, because I cannot offer support for it: https://github.com/otacke/h5p-user-score It allows you to add user score information of H5P interactions to WordPress posts and pages – and user’s don’t even have to be logged in. It doesn’t, however, feature an “all my scores” shortcode. That’d have to be coded.

    Best,
    Oliver

    Thread Starter mlapl1

    (@mlapl1)

    Hello Oliver

    I sent you an email at the address on your personal website
    Cheers
    Andrew

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘No Main Menu Item found’ is closed to new replies.