Version 1.1.1 fatal error
-
Upgraded Staff directory from 1.0.3 to 1.1.1 and it brought my web site down.
Fatal error: Can’t use function return value in write context in /home3/mghcorg/public_html/wp-content/plugins/staff-directory/classes/staff-directory-shortcode.php on line 91.
The function:
static function photo_shortcode(){
if(!empty(self::photo_url_shortcode())){
return ‘‘;
} else {
return “”;
}
}is causing the error. Changed it to below and my site is working again. However, I know this is not the intent of the function. Please send correct code.
static function photo_shortcode(){
return ‘
‘;
}
The topic ‘Version 1.1.1 fatal error’ is closed to new replies.