• Resolved mbeerli

    (@mbeerli)


    I believe I submitted this issue before and got a feedback from Weston but it was not fixed, now running on PHP8, latest WP.
    It only seems to happen with AMP with the plugin Widget Optons Version 3.7.10 | By Widget Options Team

    [27-Jan-2022 22:11:42 UTC] PHP Fatal error: Uncaught Error: Object of class AMP_Validation_Callback_Wrapper could not be converted to string in /home/../wp-content/plugins/widget-options/includes/widgets/extras.php:135
    Stack trace:
    #0 /home/../wp-content/plugins/amp/includes/validation/class-amp-validation-callback-wrapper.php(131): widgetopts_sidebars_widgets()
    #1 /home/../wp-content/plugins/amp/includes/validation/class-amp-validation-manager.php(1479): AMP_Validation_Callback_Wrapper->__invoke()
    #2 /home/../wp-includes/class-wp-hook.php(307): AMP_Validation_Manager::{closure}()
    #3 /home/../wp-includes/plugin.php(189): WP_Hook->apply_filters()
    #4 /home/../wp-includes/widgets.php(1039): apply_filters()
    #5 /home/../wp-includes/widgets.php(907): wp_get_sidebars_widgets()
    #6 /home/../wp-content/plugins/transposh-translation-filter-for-wordpress/wp/transposh_widget.php(182): is_active_widget()
    #7 /home/../wp-content/plugins/amp/includes/validation/class-amp-validation-callback-wrapper.php(131): transposh_plugin_widget->add_transposh_widget_css()
    #8 /home/../wp-content/plugins/amp/includes/validation/class-amp-validation-manager.php(1479): AMP_Validation_Callback_Wrapper->__invoke()
    #9 /home/../wp-includes/class-wp-hook.php(307): AMP_Validation_Manager::{closure}()
    #10 /home/../wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #11 /home/../wp-includes/plugin.php(474): WP_Hook->do_action()
    #12 /home/../wp-includes/functions.wp-styles.php(57): do_action()
    #13 /home/../wp-content/plugins/amp/includes/validation/class-amp-validation-callback-wrapper.php(131): wp_print_styles()
    #14 /home/../wp-content/plugins/amp/includes/validation/class-amp-validation-manager.php(1479): AMP_Validation_Callback_Wrapper->__invoke()
    #15 /home/../wp-includes/class-wp-hook.php(307): AMP_Validation_Manager::{closure}()
    #16 /home/../wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #17 /home/../wp-includes/plugin.php(474): WP_Hook->do_action()
    #18 /home/../wp-includes/general-template.php(3042): do_action()
    #19 /home/../wp-content/themes/graphene/header.php(15): wp_head()
    #20 /home/../wp-includes/template.php(770): require_once(‘/home/…..’)
    #21 /home/../wp-includes/template.php(716): load_template()
    #22 /home/../wp-includes/general-template.php(48): locate_template()
    #23 /home/../wp-content/themes/graphene/single.php(9): get_header()
    #24 /home/../wp-includes/template-loader.php(106): include(‘/home/…..’)
    #25 /home/../wp-blog-header.php(19): require_once(‘/home/…..’)
    #26 /home/../index.php(17): require(‘/home/…..’)
    #27 {main}
    thrown in /home/../wp-content/plugins/widget-options/includes/widgets/extras.php on line 135`

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi @mbeerli,

    Thanks for contacting us, I had a look at the previous topic. The error is triggered by Widget Options, Weston has suggested a fix for the Widget Options plugin, but the fix wasn’t merged yet.

    I would recommend contacting the developer from Widget Options to check what is the status of the fix.

    Thread Starter mbeerli

    (@mbeerli)

    Thanks, I will follow up with Widget Options

    Hi @mbeerli,

    Could you share some site health information with the developer from Widget Options, they are trying to replicate the error

    Thread Starter mbeerli

    (@mbeerli)

    I submitted feedback right into the github. Hope that helps.
    I see also that Weston submitted a codefix, can that be verified?

    Because it is an issue with the Widget Options plugin, the pull request is still open but I will follow it. I’ll mark this as resolved. Feel free to open a new support topic if you require any further assistance.

    Thread Starter mbeerli

    (@mbeerli)

    The pull request is closed.
    Is there maybe another issue?
    When I click on AMP validated URLs

    Uncaught Error: Object of class AMP_Validation_Callback_Wrapper could not be converted to string in /home/../wp-content/plugins/widget-options/includes/widgets/extras.php:135
        Stack trace:
        #0 /home/../wp-content/plugins/amp/includes/validation/class-amp-validation-callback-wrapper.php(144): widgetopts_sidebars_widgets()
        #1 /home/../wp-includes/class-wp-hook.php(307): AMP_Validation_Callback_Wrapper->__invoke()
        #2 /home/../wp-includes/plugin.php(189): WP_Hook->apply_filters()
        #3 /home/../wp-includes/widgets.php(1039): apply_filters()
        #4 /home/../wp-includes/widgets.php(702): wp_get_sidebars_widgets()
        #5 /home/../wp-content/themes/graphene/header.php(26): dynamic_sidebar()
        #6 /home/../wp-includes/template.php(770): require_once('/home/beerlimar...')
        #7 /home/../wp-includes/template.php(716): load_template()
        #8 /home/../wp-includes/general-template.php(48): locate_template()
        #9 /home/../wp-content/themes/graphene/single.php(9): get_header()
        #10 /home/../wp-includes/template-loader.php(106): include('/home/beerlimar...')
        #11 /home/../wp-blog-header.php(19): require_once('/home/beerlimar...')
        #12 /home/../index.php(17): require('/home/beerlimar...')
        #13 {main}
          thrown
    
    Location: /home/../wp-content/plugins/widget-options/includes/widgets/extras.php:135
    Plugin Author Weston Ruter

    (@westonruter)

    Did you update Widget Options to v3.7.13?

    Thread Starter mbeerli

    (@mbeerli)

    Widget Options Version 3.7.13
    WP 5.9.1
    AMP Version 2.2.1

    Steps to reproduce:
    AMP – Validated URLs – /ratatouille-and-cupcakes/ – Recheck
    and above errors.

    Plugin Author Weston Ruter

    (@westonruter)

    OK, it doesn’t seem they actually pushed the suggested fixes: https://github.com/WidgetOptions/widget-options/pull/93#issuecomment-1051625547

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