WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. jo88
    Member
    Posted 2 years ago #

    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?

  2. Samuel B
    moderator
    Posted 2 years ago #

  3. jo88
    Member
    Posted 2 years ago #

    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']

  4. Samuel B
    moderator
    Posted 2 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic