• My widgets have the following message when I open them:

    Catchable fatal error: Object of class stdClass could not be converted to string in /home/fishface/public_html/mobilewebsites/wp-includes/general-template.php on line 2316

    Having looked at the ‘general-template.php on line 2316’, I think the error lies somewhere in this code:

    /**
    * Private helper function for checked, selected, and disabled.
    *
    * Compares the first two arguments and if identical marks as $type
    *
    * @since 2.8.0
    * @access private
    *
    * @param any $helper One of the values to compare
    * @param any $current (true) The other value to compare if not just true
    * @param bool $echo Whether to echo or just return the string
    * @param string $type The type of checked|selected|disabled we are doing
    * @return string html attribute or empty string
    */
    function __checked_selected_helper( $helper, $current, $echo, $type ) {
    if ( (string) $helper === (string) $current )
    $result = ” $type=’$type'”;
    else
    $result = ”;

    if ( $echo )
    echo $result;

    return $result;
    }

    ?>

    Can someone help me? – I am not a coder. The impact of the error is that I cannot move, edit, save or delete my widgets.

    Many thanks

    Mark Salmon

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi mcsalmon123, did you recently install a new plugin / change themes? Most likely this issue is being caused by a faulty plugin. Try disabling all of your plugins to see if this resolves the issue. If it does, enable them again one my one to determine which plugin may be causing the problem.

    Thread Starter mcsalmon123

    (@mcsalmon123)

    Hi Brad,

    thanks for your help – I’ve been all round the houses on this one. Turns out that I somehow had ‘Accessibility Mode’ on in the widget area. Didn’t even know it existed and I certainly didn’t turn it on!!! I wonder if it was turned on when I changed the theme?

    Thanks for at least trying to help me – I am very grateful that you cared enough to respond.

    Mark Salmon

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