Title: Tag Groups 1.19.* breaks WP-CLI
Last modified: May 14, 2019

---

# Tag Groups 1.19.* breaks WP-CLI

 *  Resolved [Leonid Mamchenkov](https://wordpress.org/support/users/mamchenkov/)
 * (@mamchenkov)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/tag-groups-1-19-breaks-wp-cli/)
 * I am running the latest self-hosted WordPress 5.2. For several versions of the
   Tag Groups plugin now (at least from 1.19.4 to 1.19.6), I have an issue with 
   the WP-CLI.
 * Example:
 *     ```
       $ wp-cli.phar plugin update --all
       PHP Fatal error:  Call to a member function set_version() on null in wp-content/plugins/tag-groups/tag-groups.php on line 194
       Fatal error: Call to a member function set_version() on null in wp-content/plugins/tag-groups/tag-groups.php on line 194
       Error: The site is experiencing technical difficulties.
       ```
   
 * If I disable the Tag Groups plugin, then everything works fine.

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Christoph](https://wordpress.org/support/users/camthor/)
 * (@camthor)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/tag-groups-1-19-breaks-wp-cli/#post-11528469)
 * 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.
 *  Thread Starter [Leonid Mamchenkov](https://wordpress.org/support/users/mamchenkov/)
 * (@mamchenkov)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/tag-groups-1-19-breaks-wp-cli/#post-11528529)
 * Hi [@camthor](https://wordpress.org/support/users/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!
 *  [Christoph](https://wordpress.org/support/users/camthor/)
 * (@camthor)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/tag-groups-1-19-breaks-wp-cli/#post-11528535)
 * Thank you, that is very helpful that you tested! I will add the fix to the next
   version.
 *  [norm2020](https://wordpress.org/support/users/norm2020/)
 * (@norm2020)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/tag-groups-1-19-breaks-wp-cli/#post-11550746)
 * 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
 *  [Christoph](https://wordpress.org/support/users/camthor/)
 * (@camthor)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/tag-groups-1-19-breaks-wp-cli/#post-11551270)
 * Only with WP-CLI? I will take a look.
 *  [Christoph](https://wordpress.org/support/users/camthor/)
 * (@camthor)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/tag-groups-1-19-breaks-wp-cli/#post-11551458)
 * Please try version 1.20.1
 *  [norm2020](https://wordpress.org/support/users/norm2020/)
 * (@norm2020)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/tag-groups-1-19-breaks-wp-cli/#post-11552973)
 * Tks very much. All fixed.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Tag Groups 1.19.* breaks WP-CLI’ is closed to new replies.

 * ![](https://ps.w.org/tag-groups/assets/icon-256x256.png?rev=3583325)
 * [Tag Groups is the Advanced Way to Display Your Taxonomy Terms](https://wordpress.org/plugins/tag-groups/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tag-groups/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tag-groups/)
 * [Active Topics](https://wordpress.org/support/plugin/tag-groups/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tag-groups/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tag-groups/reviews/)

## Tags

 * [wp-cli](https://wordpress.org/support/topic-tag/wp-cli/)

 * 7 replies
 * 3 participants
 * Last reply from: [norm2020](https://wordpress.org/support/users/norm2020/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/tag-groups-1-19-breaks-wp-cli/#post-11552973)
 * Status: resolved