• Widgtet throws fatal error, (php7) with (for example) standard WordPress-theme. Se below.

    <b>Fatal error</b>:  Uncaught Error: Using $this when not in object context in /webstorage/wp-includes/widgets/class-wp-widget-text.php:178
    Stack trace:
    #0 /webstorage/wp-content/plugins/simple-access-control/simple-access-control.php(440): WP_Widget_Text::form(Array)
    #1 /webstorage/wp-includes/class-wp-widget.php(532): Logggedin_Widget_Text->form(Array)
    #2 /webstorage/wp-admin/includes/widgets.php(240): WP_Widget->form_callback(Array)
    #3 /webstorage/wp-admin/includes/widgets.php(48): wp_widget_control(Array, Array)
    #4 /webstorage/wp-admin/widgets.php(398): wp_list_widgets()
    #5 {main}
      thrown in <b>/webstorage/wp-includes/widgets/class-wp-widget-text.php</b> on line <b>178</b><br />
    • This topic was modified 7 years, 5 months ago by jhnsv. Reason: added php version
Viewing 5 replies - 1 through 5 (of 5 total)
  • maidstein

    (@maidstein)

    I get a similar issues when I click on “Customizer” and “Header”. WP 4.8.3

    Fatal error: Call to undefined method Logggedin_Widget_Text::is_legacy_instance() in /www/htdocs/w0152ded/wp-includes/widgets/class-wp-widget-text.php on line 352

    • This reply was modified 7 years ago by maidstein.
    Plugin Author Peter Wooster

    (@pkwooster)

    I’m working on a fix for this plugin. I’ll release a new version shortly when I’ve tested this. Thanks to @hmabpera and @westonruter for diagnosing this problem and writing it up in ticket 41540.

    Plugin Author Peter Wooster

    (@pkwooster)

    I’ve released version 1.6.0 to fix the problems with WP 4.8+ and PHP 7. Please give it a test and report any problems.

    hmabpera

    (@hmabpera)

    I updated to SAC 1.6.0 o on 11/16. I had a temporary work around for the problem given to me by Weston Ruter when WP 4.8.1 was released. I have deactivated Weston’s temporary plugin and I’m using the new 1.6.0 Simple Access Control and I don’t see any problem now. Thanks for correcting this, Peter.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Widget fatal error’ is closed to new replies.