Title: Broken functions.php
Last modified: June 20, 2017

---

# Broken functions.php

 *  Resolved [cutemunkey80](https://wordpress.org/support/users/cutemunkey80/)
 * (@cutemunkey80)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/broken-functions-php/)
 * Hi I seem to have made a fatal error in an attempt to rush something before I
   left work!
 * Quick history of what I have done so far…
 * I created a multi site in the aim of running 2 websites under one roof
    I created
   the 1st website and all was well, I was using the ‘Divi theme’ and used a plugin
   called ‘child theme configurator’ to make a child theme. Again no problems at
   this stage.
 * Today I decided to install ‘jetpack’ which I have used before with no problems.
   I saw that it had a breadcrumb function which I didn’t realise it had so I decided
   to quickly activate it before I left the office. I found the code that was needed
   to add to page.php but in my haste I somehow managed to add it to the child theme’s
   function.php. Since then all I get is
 * This page isn’t working
 * “site” is currently unable to handle this request.
    HTTP ERROR 500
 * Tried so far….
    I removed the code I added (no effect) I tried to remake my .
   htaccess (no effect) I tried increasing my php memory (no effect) I tried manually
   disabling my plugins (no effect)
 * I have no access to my site or the admin page 🙁
 * My current functions.php of the child theme file looks like this:
 *     ```
       <?php
       // Exit if accessed directly
       if ( !defined( 'ABSPATH' ) ) exit;
   
       // BEGIN ENQUEUE PARENT ACTION
       // AUTO GENERATED - Do not modify or remove comment markers above or below:
   
       if ( !function_exists( 'chld_thm_cfg_parent_css' ) ):
       	functionchld_thm_cfg_parent_css() {
               wp_enqueue_style( 'chld_thm_cfg_parent', trailingslashit( get_template_directory_uri() ) . 'style.css', array(  ) );    
       	}
       endif;
       add_action( 'wp_enqueue_scripts', 'chld_thm_cfg_parent_css', 10 );
   
       // END ENQUEUE PARENT ACTION
       ```
   
 * _[Moderator note: code fixed. Please wrap code in the backtick character or [use the code button](https://codex.wordpress.org/Forum_Welcome#Posting_Code).]_
 * Is there anyone with any ideas before I make the drastic decision to start again
   🙁
    -  This topic was modified 8 years, 11 months ago by [bdbrown](https://wordpress.org/support/users/bdbrown/).
    -  This topic was modified 8 years, 11 months ago by [bdbrown](https://wordpress.org/support/users/bdbrown/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [bdbrown](https://wordpress.org/support/users/bdbrown/)
 * (@bdbrown)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/broken-functions-php/#post-9246473)
 * `functionchld_thm_cfg_parent_css() {`
 * You’re missing a space after “function”.
 *  Thread Starter [cutemunkey80](https://wordpress.org/support/users/cutemunkey80/)
 * (@cutemunkey80)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/broken-functions-php/#post-9246503)
 * Oh my…..I’ve been tearing my hair out for hours over a space!!!!
 * Thank you sooooo much!
 * I bow down to you and your eagle eyes!!! 🙂
 *  [bdbrown](https://wordpress.org/support/users/bdbrown/)
 * (@bdbrown)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/broken-functions-php/#post-9249152)
 * You’re welcome; glad to help.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Broken functions.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [bdbrown](https://wordpress.org/support/users/bdbrown/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/broken-functions-php/#post-9249152)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
