Okay
  Public Ticket #2034251
Serious error when used with Jetpack and Broken
Closed

Comments

  • wAx_100 started the conversation

    Hi.

    Installing PHP version 7.1 or later and combining Jetpack and Broken will cause serious errors

    Therefore, Jetpack and Broken can not be used at the same time.

    ```

    2019/06/03 22:58:37 [error] 3350#0: *2421 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function Brook_Widgets::repair_categories_empty_title(), 1 passed in /home/kusanagi/tusb/DocumentRoot/wp-includes/class-wp-hook.php on line 286 and exactly 3 expected in /home/kusanagi/tusb/DocumentRoot/wp-content/themes/brook/framework/class-widgets.php:24
    Stack trace:
    #0 /home/kusanagi/tusb/DocumentRoot/wp-includes/class-wp-hook.php(286): Brook_Widgets->repair_categories_empty_title('\xE3\x83\x96\xE3\x83\xAD\xE3\x82\xB0\xE7\xB5\xB1\xE8\xA8\x88...')
    #1 /home/kusanagi/tusb/DocumentRoot/wp-includes/plugin.php(208): WP_Hook->apply_filters('\xE3\x83\x96\xE3\x83\xAD\xE3\x82\xB0\xE7\xB5\xB1\xE8\xA8\x88...', Array)
    #2 /home/kusanagi/tusb/DocumentRoot/wp-content/plugins/jetpack/modules/widgets/blog-stats.php(135): apply_filters('widget_title', '\xE3\x83\x96\xE3\x83\xAD\xE3\x82\xB0\xE7\xB5\xB1\xE8\xA8\x88...')
    #3 /home/kusanagi/tusb/DocumentRoot/wp-includes/class-wp-widget.php(378): Jetpack_Blog_Stats_Widget->widget(Array, Ar" while reading response header from upstream, client: 162.158.118.245, server: skyblock.jp, request: "GET /top/blog/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "skyblock.jp", referrer: "https://skyblock.jp/"

    ```

    Attached files:  disable_Jetpack_widget.PNG
      disable_Jetpack_widget2.PNG
      enable_Jetpack_widget.PNG
      enable_Jetpack_widget2.PNG

  •  888
    Linh replied

    Hello

    The Jetpack plugin is minified loading css/js files that needed to make the theme work normal. You should check that section again.

    Also that is 3rd plugins so we can not control the plugin's functions that might effect on our theme.

    Thanks

  • wAx_100 replied

    Hi.
    I disabled features other than "extra-sidebar-widgets" but it didn't work well.

    https://jetpack.com/support/extra-sidebar-widgets

    PHP Fatal error:  Uncaught ArgumentCountError:
    Too few arguments to function Brook_Widgets::repair_categories_empty_title(), 1 passed in DocumentRoot/wp-includes/class-wp-hook.php on line 286 and exactly 3 expected in DocumentRoot/wp-content/themes/brook/framework/class-widgets.php:24


    Postscript

    We have changed the code for the moment to avoid serious errors.
    The problem no longer occurs.

    Attached files:  org_source.PNG
      new_source.PNG

  •  888
    Linh replied

    Hello

    Oh yes that is great. You can use the child theme to edit that file to keep it work normal when update theme.

    Please contact if you have any problem so i can help you check.

    Thanks