WordPress.org

Support

Support » Themes and Templates » My got an fatal error page after I uploaded function.php file to my child theme.

My got an fatal error page after I uploaded function.php file to my child theme.

  • I had uploaded function.php file to my twentyeleven child theme and went to appreance>editor. It gave me a blank page with a massage as:
    fatal error:…..
    Is there any one can tell me what’s going on there?

Viewing 3 replies - 1 through 3 (of 3 total)
  • WordPress PROTIP: Child Themes

    read the overriding functions part

    Sorry, the error message is like this:
    Fatal error: Cannot redeclare twentyeleven_excerpt_length() (previously declared in /home/jojo1668/public_html/profitsourceblog.com/wp-content/themes/twentyeleven-child/functions.php:318) in /home/jojo1668/public_html/profitsourceblog.com/wp-content/themes/twentyeleven/functions.php on line 320

    [moved to: ‘Themes and Templates’]

    right – your parent theme functions and child theme functions are conflicting
    do as the link says so the child functions are loaded 1st or don’t use a functions.php in child theme

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘My got an fatal error page after I uploaded function.php file to my child theme.’ is closed to new replies.
Skip to toolbar