WordPress.org

Ready to get started?Download WordPress

Forums

Fatal Error w/ Child theme (2 posts)

  1. billylitt
    Member
    Posted 1 year ago #

    I tried to create a child theme of twenty eleven to modify a function in functions.php. However, because (at least this is what I read) WP appends the parent php file beneath the child one, one of my variables is getting redeclared, which evidently causes a fatal error. Now I can't get on my site or any of the WP-admin area to fix it.

    Any advice? I'm pretty new to all this, I might be missing something obvious.

  2. Emil Uzelac
    Theme Review Admin
    Posted 1 year ago #

    When creating functions.php under the Child Theme, please make sure that you don't have any blank spaces before or after the PHP codes.

    <?php
        echo "Hello World!";
    ?>

    In your case I would recommend to get an FTP access from your host and download your functions.php and see if you have blank spaces, if so delete them and re-upload again.

    Thanks,
    Emil

Topic Closed

This topic has been closed to new replies.

About this Topic