• Resolved jeroenlicht

    (@jeroenlicht)


    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.

Viewing 1 replies (of 1 total)
  • Plugin Author icc0rz

    (@icc0rz)

    Hi! You are absolutely right, I cannot see how we’ve missed this.

    I’ve added a fix for it 119ab6b which will be released once we’re done testing.

    Again, thank you for letting us know!

Viewing 1 replies (of 1 total)
  • The topic ‘Solution to h5p_contents page empty with CUSTOM_USER_TABLE’ is closed to new replies.