• Upon activation after a fresh install, got this showstopper:

    PHP Fatal error:  Uncaught Error: Call to undefined method Shinobi_Reviews\App\Widgets\Widgets::_register() in \wp-includes\class-wp-widget-factory.php:102
    Stack trace:
    #0 \wp-includes\class-wp-hook.php(307): WP_Widget_Factory->_register_widgets('')
    #1 \wp-includes\class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #2 \wp-includes\plugin.php(474): WP_Hook->do_action(Array)
    #3 \wp-includes\widgets.php(1854): do_action('widgets_init')
    #4 \wp-includes\class-wp-hook.php(307): wp_widgets_init('')
    #5 \wp-includes\class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #6 \wp-includes\plugin.php(474): WP_Hook->do_action(Array)
    #7 \wp-settings.php(587): do_action('init')
    #8 \wp-config.php(144): require_once('D:\\domains\\dev....')
    #9 D:\ in \wp-includes\class-wp-widget-factory.php on line 102

    And these assorted:

    PHP Notice:  Only variables should be passed by reference in \wp-content\plugins\shinobi-reviews\App\Widgets\Widgets.php on line 29
    PHP Notice:  Only variables should be passed by reference in \wp-content\plugins\shinobi-reviews\App\Widgets\Widgets.php on line 29
    PHP Notice:  Undefined property: Shinobi_Reviews\App\Widgets\Widgets::$name in \wp-content\plugins\admin-menu-editor-pro\extras\modules\tweaks\ameHideSidebarWidgetTweak.php on line 19
    PHP Notice:  Undefined property: Shinobi_Reviews\App\Widgets\Widgets::$id_base in \wp-includes\class-wp-widget-factory.php on line 97
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Shinobi Works

    (@shinobiworks)

    Hey @alx359

    Thank you for reaching out to me, and I feel sorry about that. As you said that, most of this errors are caused by Shinobi Reviews but I already figured out its cause thanks to you.

    So that I want you to wait for the next version (or later) of Shinobi Reviews to use without any errors. It will be run better.

    Plus, if you would like to reject this errors right now, you can do that by turning the strict mode of WordPress off in wp-config.php.

    Reference: https://codex.www.ads-software.com/WP_DEBUG

    Many thanks for your time and help.

    Thread Starter alx359

    (@alx359)

    Hi @shinobiworks, glad the report was useful. Not sure fatal errors can be just masked, but can’t just turn wp_debug off as it’s a dev site I’m actively working atm though. If you wish, I may test the fix if you change it in trunk. Thanks.

    Plugin Author Shinobi Works

    (@shinobiworks)

    Thank you for replying. To be honest, I had been misunderstanding that I was developing with strict mode (which means turning wp_debug on).

    But, from now on I believe I develop my plugin properly. Anyway, I really appreciate you about this feedback. Thank you.

    Plugin Author Shinobi Works

    (@shinobiworks)

    Hi @alx359, I’m not sure you already tried the latest version of Shinobi Reviews, I’ll note about recent activities of developing it, just in case.

    Firstly, I have released version 1.5.8 of it, after we discussed in here before. It includes some new features and solved some errors you mentioned.

    Secondly, unfortunately I couldn’t solve “Fatal Error” like below because of I couldn’t see it.

    PHP Fatal error: Uncaught Error: Call to undefined method Shinobi_Reviews\App\Widgets\Widgets::_register() in \wp-includes\class-wp-widget-factory.php:102

    I’m sure this error is related “Widget” and I’ve tried to test it in different dev environments (eg: PHP version, WP version, MAMP, Local by flywheel, etc), but in the end it has never occurred.

    Lastly, if you can still see this error in your dev environment, I want you to share me about it that means how should I represent this error.

    Many thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Fatal error’ is closed to new replies.