Title: Fatal error: Call to undefined function wp_normalize_path()
Last modified: August 22, 2016

---

# Fatal error: Call to undefined function wp_normalize_path()

 *  Resolved [webpdq](https://wordpress.org/support/users/webpdq/)
 * (@webpdq)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_normalize_path/)
 * I have a large site that I need to bring update with most recent wp version. 
   I created a test site, same theme (Elegant Themes – Magnificent and plugins).
   Both sites are hosted on the same server, same os etc.
 * I was able to easily create a child them on the test site but when trying to 
   do the same thing on the full site, I received this error..
 * **Fatal error: Call to undefined function wp_normalize_path() in /home/spingset/
   public_html/wp-content/plugins/child-theme-configurator/includes/class-ctc.php
   on line 589**
 * Can you help me figure out how to fix this problem?
 * Thanks so much!
 * [https://wordpress.org/plugins/child-theme-configurator/](https://wordpress.org/plugins/child-theme-configurator/)

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

 *  Plugin Author [lilaeamedia](https://wordpress.org/support/users/lilaeamedia/)
 * (@lilaeamedia)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_normalize_path/#post-5557434)
 * CTC requires at least WordPress version 3.9. wp_normalize_path() was introduced
   in version 3.9.
 *  Plugin Author [lilaeamedia](https://wordpress.org/support/users/lilaeamedia/)
 * (@lilaeamedia)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_normalize_path/#post-5557446)
 * Workaround:
 * Add this to the bottom of child-theme-configurator.php:
 *     ```
       if (!function_exists('wp_normalize_path')):
       function wp_normalize_path( $path ) {
       	$path = str_replace( '\\', '/', $path );
       	$path = preg_replace( '|/+|','/', $path );
       	return $path;
       }
       endif;
       ```
   
 *  Plugin Author [lilaeamedia](https://wordpress.org/support/users/lilaeamedia/)
 * (@lilaeamedia)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_normalize_path/#post-5557453)
 * Actually it is easier to add it to the functions.php file.
 *  Thread Starter [webpdq](https://wordpress.org/support/users/webpdq/)
 * (@webpdq)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_normalize_path/#post-5557497)
 * I added it just before the final ?> in the functions.php file. Thanks so much
   for the quick help. Will that change be carried over to the child theme?
 *  Plugin Author [lilaeamedia](https://wordpress.org/support/users/lilaeamedia/)
 * (@lilaeamedia)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_normalize_path/#post-5557511)
 * You will need to add it to the child theme as well, but it is just a work around
   until you finish updating to WP 4.
 * I am going to modify the plugin to remove that dependency. I am surprised this
   hasn’t come up before now.

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

The topic ‘Fatal error: Call to undefined function wp_normalize_path()’ is closed
to new replies.

 * ![](https://ps.w.org/child-theme-configurator/assets/icon-128x128.png?rev=1557885)
 * [Child Theme Configurator](https://wordpress.org/plugins/child-theme-configurator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/child-theme-configurator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/child-theme-configurator/)
 * [Active Topics](https://wordpress.org/support/plugin/child-theme-configurator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/child-theme-configurator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/child-theme-configurator/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 5 replies
 * 2 participants
 * Last reply from: [lilaeamedia](https://wordpress.org/support/users/lilaeamedia/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_normalize_path/#post-5557511)
 * Status: resolved