Hello,
Thank you for a very useful plugin!
I occasionally get this error in admin, usually after a period of inactivity:
Fatal error: Uncaught Error: Call to a member function add_cap() on null in C:\xampp\htdocs\cnyrpdb.org\wp-content\plugins\shortcoder\includes\updates.php:185 Stack trace: #0 C:\xampp\htdocs\cnyrpdb.org\wp-content\plugins\shortcoder\includes\updates.php(41): Shortcoder_Updates::register_roles() #1 C:\xampp\htdocs\cnyrpdb.org\wp-includes\class-wp-hook.php(324): Shortcoder_Updates::do_update(”) #2 C:\xampp\htdocs\cnyrpdb.org\wp-includes\class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #3 C:\xampp\htdocs\cnyrpdb.org\wp-includes\plugin.php(517): WP_Hook->do_action(Array) #4 C:\xampp\htdocs\cnyrpdb.org\wp-admin\admin.php(175): do_action(‘admin_init’) #5 {main} thrown in C:\xampp\htdocs\cnyrpdb.org\wp-content\plugins\shortcoder\includes\updates.php on line 185
Depending on the page, there may be more lines after #5. The error always clears after a refresh of the page.
As you can see, I’m developing locally.