Thank you for reporting. I will investigate when I find more time. (I think it requires only a small change, like adding global $tag_groups_loader; before the line 87 $tag_groups_loader = new TagGroups_Loader( TAG_GROUPS_PLUGIN_ABSOLUTE_PATH );
but I currently cannot test with WP-CLI.)
You could meanwhile return to the latest version that was still working.
Hi @camthor ,
thanks for the quick response. I tried your suggestion and it does in fact fix the issue.
Hopefully this patch will make it into the next version. 🙂
Thanks for the great work on the plugin by the way. Keep it up!
Thank you, that is very helpful that you tested! I will add the fix to the next version.
Hi. Despite the release of 1.9.7 and now 1.2.0 I am also still getting a fatal error when activating Tag Groups on my site and the WP-CLI remains broken.
Any help appreciated.
The Error message (from 1.9.7 installation) is:
An error of type E_ERROR was caused in line 7 of the file /XXXXXX/public_html/wp-content/plugins/tag-groups/views/admin/new_tag_main.view.php. Error message: Uncaught Error: Call to a member function is_in_group() on null in /XXXXXX/public_html/wp-content/plugins/tag-groups/views/admin/new_tag_main.view.php:7
Stack trace:
#0 /XXXXXX/public_html/wp-content/plugins/tag-groups/include/helpers/class.view.php(77): include()
#1 /XXXXXX/public_html/wp-content/plugins/tag-groups/include/admin/class.admin.php(294): TagGroups_View->render()
#2 /XXXXXX/public_html/wp-includes/class-wp-hook.php(288): TagGroups_Admin::tag_input_metabox(Object(WP_Term))
#3 /XXXXXX/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
#4 /XXXXXX/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#5 /XXXXXX/public_html/wp-admin/edit-tag-form.php(237): do_action(‘post_tag_edit_f…’, Object(WP_Term), ‘post_tag’)
#6 /XXXXXX/public_html/wp-admin/term.php(69): include(‘/XXXXXX/…’)
#7 {main}
thrown
Only with WP-CLI? I will take a look.
Please try version 1.20.1
Tks very much. All fixed.