Title: wp-config.php, WP_DEBUG, error
Last modified: August 30, 2016

---

# wp-config.php, WP_DEBUG, error

 *  [Niko LionWD](https://wordpress.org/support/users/nikoernestoleone/)
 * (@nikoernestoleone)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/wp-configphp-wp_debug-error/)
 * Hi everyone,
 * I try to activate (_true_) WP_DEBUG in wp-config.php but doesn’t work because
   in my file wp-config.php not ending with ?> (that are errors commons, because
   some themes forget the ending code of PHP). You can see my structure code: ﻿﻿
   http://snippi.com/s/uj5owxl
 * So I add the end ?> but my website appears as **Fatal error: Call to undefined
   function wp() in /usr/home/newreformesbcn.com/web/wp-blog-header.php on line 
   14 **
 * Why? Anyone can help me? I’d be grateful!

Viewing 1 replies (of 1 total)

 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/wp-configphp-wp_debug-error/#post-6693231)
 * The closing `?>` isn’t required.
 * Try replacing your wp-config.php file with a fresh copy, and see if that makes
   any difference in your error message. You have a few lines missing from your 
   current file.
 *     ```
       /**
        * WordPress Localized Language, defaults to English.
        *
        * Change this to localize WordPress. A corresponding MO file for the chosen
        * language must be installed to wp-content/languages. For example, install
        * de_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable German
        * language support.
        */
       define('WPLANG', '');
   
       /**
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘wp-config.php, WP_DEBUG, error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/wp-configphp-wp_debug-error/#post-6693231)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
