Solution to h5p_contents page empty with CUSTOM_USER_TABLE
-
We had the same problem as reported in this topic: Library Always Empty?
I am making this new topic because the old one is currently closed and marked as ‘resolved’ without reporting the resolution.We are not using multisite, but we are sharing our users table in multiple wordpress websites by setting CUSTOM_USER_TABLE in wp-config.php
However, the h5p plugin version 1.7.9 tries to access the users table in
h5p/admin/class-h5p-content-query.php line 65 and
h5p/admin/class-h5p-plugin-admin.php line 857
by using{$wpdb->base_prefix}users
Replacing this with
{$wpdb->users}
resolved the problem for us, so now we can see the list of contents again on the h5p contents page.It would be nice if, in future updates, the h5p plugin can be adapted to deal with a custom users table.
- The topic ‘Solution to h5p_contents page empty with CUSTOM_USER_TABLE’ is closed to new replies.