• Resolved Markito Nutrition

    (@markito-nutrition)


    Hi,

    I’ve been using your plugin for a few years. Recently I was not able to enter the plugin section from my dashboard, and instead receive a critical error message. Upon further investigation in recovery mode I saw that this plugin was causing the issue. It is apparently failing to load even though there is no problem with how it works on the website itself. I also noticed that the issue goes away when I switch to PHP version 5.6 instead of 7 – 7.4. Is there anything I can do to get it to work again other than reverting back to PHP 5.6? I find it odd that it works fine on the website, yet the problem exists in the backend.

    Thank you very much.

    Below is some additional info that may be useful.

    Error Details
    =============
    An error of type E_ERROR was caused in line 226 of the file /home/markiton/public_html/community/wp-content/plugins/widget-context/src/WidgetContext.php. Error message: Uncaught Error: [] operator not supported for strings in /home/markiton/public_html/community/wp-content/plugins/widget-context/src/WidgetContext.php:226
    Stack trace:
    #0 /home/markiton/public_html/community/wp-includes/class-wp-hook.php(289): WidgetContext->plugin_action_links(”)
    #1 /home/markiton/public_html/community/wp-includes/plugin.php(206): WP_Hook->apply_filters(”, Array)
    #2 /home/markiton/public_html/community/wp-content/plugins/jetpack/vendor/automattic/jetpack-sync/src/modules/class-callables.php(343): apply_filters(‘plugin_action_l…’, ”, ‘widget-context/…’, NULL, ‘all’)
    #3 /home/markiton/public_html/community/wp-includes/class-wp-hook.php(287): Automattic\Jetpack\Sync\Modules\Callables->set_plugin_action_links(Object(WP_Screen))
    #4 /home/markiton/public_html/community/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
    #5 /home/markiton/public_html/community/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #6 /home/markiton/public_html/community/wp-admin/includes/c

    WordPress version 5.4.2
    Current theme: Portfolio+ (version 3.8.2)
    Current plugin: Widget Context (version 1.3.2)
    PHP version 7.4.8

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Kaspars

    (@kasparsd)

    Thanks for reporting the issue!

    This appears to be caused by the Jetpack Sync module which is mentioned at the start of that debug trace Automattic\Jetpack\Sync\Modules\Callables->set_plugin_action_links(Object(WP_Screen))it appears to be applying a WP core filter plugin_action_links which somehow doesn’t work as expected.

    I’m running 7.4 on all of my personal sites and Widget Context works great there.

    Thread Starter Markito Nutrition

    (@markito-nutrition)

    Thank you very much Kaspars, your response is much appreciated. It is so strange, I deactivated Jetpack and went back to my plugin section from the dashboard, and noticed that most of my plugins were no longer on the list- even though the number of installed plugins indicated is correct. Strange! Anyway, thanks again for pointing me to this direction and I’ll keep troubleshooting to see why this is happening. All the best.

    Thread Starter Markito Nutrition

    (@markito-nutrition)

    Hi again!

    I removed the problem plugins, but when I reactivate Widget Context the problem comes back with this error message, if anything rings a bell please let me know. I will continue to troubleshoot on my end. Thank you.

    Version 1.3.2 | By Kaspars Dambis | View details
    This plugin failed to load properly and is paused during recovery mode.

    An error of type E_ERROR was caused in line 226 of the file /home/markiton/public_html/staging/wp-content/plugins/widget-context/src/WidgetContext.php. Error message: Uncaught Error: [] operator not supported for strings in /home/markiton/public_html/staging/wp-content/plugins/widget-context/src/WidgetContext.php:226 Stack trace: #0 /home/markiton/public_html/staging/wp-includes/class-wp-hook.php(289): WidgetContext->plugin_action_links(‘<‘) #1 /home/markiton/public_html/staging/wp-includes/plugin.php(206): WP_Hook->apply_filters(‘<‘, Array) #2 /home/markiton/public_html/staging/wp-admin/includes/class-wp-plugins-list-table.php(942): apply_filters(‘plugin_action_l…’, ‘<‘, ‘widget-context/…’, Array, ‘all’) #3 /home/markiton/public_html/staging/wp-admin/includes/class-wp-plugins-list-table.php(698): WP_Plugins_List_Table->single_row(Array) #4 /home/markiton/public_html/staging/wp-admin/includes/class-wp-list-table.php(1322): WP_Plugins_List_Table->display_rows() #5 /home/markiton/public_html/staging/wp-admin/includes/class-wp-list-table.php(1249): WP_List_Table->display_rows_or_placeholder() #6 /home/markiton/public_html/staging/wp-admin/plugins.php(764): WP_List_Table->

    Thread Starter Markito Nutrition

    (@markito-nutrition)

    Hi Kaspars,

    I seem to have solved the issue. The plugin causing the problem was WP Editor. Once I removed it the errors with Widget Context disappeared.

    Thank you.

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