Catchable fatal error:
-
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
- The topic ‘Catchable fatal error:’ is closed to new replies.