• Niko LionWD

    (@nikoernestoleone)


    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)
  • 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.