Support » Plugin: Tag Groups » Tag Groups 1.19.* breaks WP-CLI

  • Resolved Leonid Mamchenkov

    (@mamchenkov)


    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)
  • Plugin Author Chris

    (@camthor)

    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!

    Plugin Author Chris

    (@camthor)

    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

    Plugin Author Chris

    (@camthor)

    Only with WP-CLI? I will take a look.

    Plugin Author Chris

    (@camthor)

    Please try version 1.20.1

    Tks very much. All fixed.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.