• Resolved furat2012

    (@furat2012)


    yesterday my website giving me white-screen
    drjumana.com

    after looking inside the error.log
    i found this line
    [24-Apr-2015 10:28:51 UTC] PHP Fatal error: Cannot redeclare get_avatar_url() (previously declared in /home/jumanajfc/public_html/wp-includes/link-template.php:3414) in /home/jumanajfc/public_html/wp-content/themes/quadrum-theme/functions/filters.php on line 155

    actually I don’t know my wordpress version, the filters.php file which contain the line 155 is like the following

    [ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]

    unction get_avatar_url($get_avatar){
        if(preg_match("/src='(.*?)'/i", $get_avatar, $matches)) {
        	preg_match("/src='(.*?)'/i", $get_avatar, $matches);
       		return $matches[1];
        } else {
        	preg_match("/src=\"(.*?)\"/i", $get_avatar, $matches);
       		return $matches[1];
        }
    }

    any help plz

Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Fatal Error: Cannot redeclare get_avatar_url()’ is closed to new replies.