Fatal Error when activating

I cannot activate the plugin without a “Fatal Error” happening. I have WP debugging enabled and it’s pointing to an issue with adding roles/capabilities. I have a membership plugin for adding additional roles and a child theme on Genesis. I’ve disabled to plugin and tried a different theme to no avail.

here’s the error in the debug.log

[07-Oct-2024 17:28:33 UTC] WordPress database error Duplicate key name 'accessed_at' for query CREATE INDEX accessed_at ON wp_podlove_downloadintentclean (accessed_at) made by activate_plugin, do_action('activate_podlove-podcasting-plugin-for-wordpress/podlove.php'), WP_Hook->do_action, WP_Hook->apply_filters, Podlove\activate, Podlove\activate_for_current_blog, podlove_setup_database_tables, Podlove\Model\DownloadIntentClean::build
[07-Oct-2024 17:28:33 UTC] PHP Fatal error:  Uncaught Error: Call to a member function add_cap() on null in /bitnami/wordpress/wp-content/plugins/podlove-podcasting-plugin-for-wordpress/includes/capabilities.php:30
Stack trace:
#0 /bitnami/wordpress/wp-content/plugins/podlove-podcasting-plugin-for-wordpress/includes/capabilities.php(15): podlove_add_capability_to_roles()
#1 /bitnami/wordpress/wp-content/plugins/podlove-podcasting-plugin-for-wordpress/plugin.php(14): podlove_init_capabilities()
#2 /bitnami/wordpress/wp-content/plugins/podlove-podcasting-plugin-for-wordpress/plugin.php(85): Podlove\activate_for_current_blog()
#3 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(324): Podlove\activate()
#4 /opt/bitnami/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#5 /opt/bitnami/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()
#6 /opt/bitnami/wordpress/wp-admin/includes/plugin.php(703): do_action()
#7 /opt/bitnami/wordpress/wp-admin/plugins.php(60): activate_plugin()
#8 {main}
  thrown in /bitnami/wordpress/wp-content/plugins/podlove-podcasting-plugin-for-wordpress/includes/capabilities.php on line 30

Does this plugin also allow renaming or deleting roles? Because that is a scenario I had not planned for. The code assumes there to be the following roles: ‘administrator’, ‘editor’, ‘author’.

The Members plugin does have the capability to create, modify, and rename certain roles. But even in disabling the members plugin (and all plugins for htat matter), Podlove won’t activate.

Here’s the plugin I’m currently using: Members – Membership & User Role Editor Plugin – WordPress plugin | WordPress.org

The changes you make with the role editor persist even if you disable it, because it changes WordPress core data.

I created an issue do not assumes all default roles exist · Issue #1517 · podlove/podlove-publisher · GitHub

As a workaround, you need to edit a plugin file: includes/capabilities.php in the Publisher plugin, and comment out line 30, like this:

        // get_role($role)->add_cap($capability);