Title: Error formatting wp-config.php
Last modified: August 20, 2016

---

# Error formatting wp-config.php

 *  Resolved [Marco Milesi](https://wordpress.org/support/users/milmor/)
 * (@milmor)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/error-formatting-wp-configphp/)
 * _Hello everyone. I posted this question on this question on the Italian support
   forum. Unfortunately, no one have responded to me yet._
 * Some days ago i was modelling my wp-config.php file manually with NotePad (microsoft).
   
   Everything fine up to i saved this file and sent it to my server. The site didn’t
   work anymore. Reopening this file i saw that line were changed… (Everything became
   wrong!). This is the “Broken” file
 * `<?php/** * The base configurations of the WordPress. * * This file has the following
   configurations: MySQL settings, Table Prefix, * Secret Keys, WordPress Language,
   and ABSPATH. You can find more information * by visiting {@link http://codex.
   wordpress.org/Editing_wp-config.php Editing * wp-config.php} Codex page. You 
   can get the MySQL settings from your web host. * * This file is used by the wp-
   config.php creation script during the * installation. You don't have to use the
   web site, you can just copy this file * to "wp-config.php" and fill in the values.**
   @package WordPress */// ** MySQL settings - You can get this info from your web
   host ** ///** The name of the database for WordPress *//* modifica */define('
   DB_NAME', 'my_milesimarco');/** MySQL database username */define('DB_USER', '
   Parte tolta');/* fine *//** MySQL database password */define('DB_PASSWORD', '');/**
   MySQL hostname */define('DB_HOST', 'localhost');/** Database Charset to use in
   creating database tables. */define('DB_CHARSET', 'utf8');/** The Database Collate
   type. Don't change this if in doubt. */define('DB_COLLATE', '');/**#@+ * Authentication
   Unique Keys and Salts. * * Change these to different unique phrases! * You can
   generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/
   WordPress.org secret-key service} * You can change these at any point in time
   to invalidate all existing cookies. This will force all users to have to log 
   in again. * * @since 2.6.0 *//* modifica */define('AUTH_KEY', 'Parte tolta');
   define('SECURE_AUTH_KEY', 'Parte tolta');define('LOGGED_IN_KEY', '5aH)!(Eif^TmEr@Ar&
   g)NEodc(*q4LMNg4Jafq##9434BvC$Sc9wpgwvGv05Xo#f');define('NONCE_KEY', 'Parte tolta');
   define('AUTH_SALT', 'Parte tolta');define('SECURE_AUTH_SALT', 'Parte tolta');
   define('LOGGED_IN_SALT', 'Parte tolta');define('NONCE_SALT', 'Parte tolta');/*
   fine *//**#@-*//** * WordPress Database Table prefix. * * You can have multiple
   installations in one database if you give each a unique * prefix. Only numbers,
   letters, and underscores please! *//* modifica */$table_prefix = 'avwp_';/* fine*//***
   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. *//* modifica */
   define('WPLANG', 'it_IT');/* fine *//** * For developers: WordPress debugging
   mode. * * Change this to true to enable the display of notices during development.*
   It is strongly recommended that plugin and theme developers use WP_DEBUG * in
   their development environments. */define('WP_DEBUG', false);/* That's all, stop
   editing! Happy blogging. *//** Absolute path to the WordPress directory. */if(!
   defined('ABSPATH') ) define('ABSPATH', dirname(__FILE__) . '/');/** Sets up WordPress
   vars and included files. *//* modifica */$_SERVER['DOCUMENT_ROOT'] = "/membri/
   milesimarco";$_ENV['DOCUMENT_ROOT'] = "/membri/milesimarco";/* fine */require_once(
   ABSPATH . 'wp-settings.php');`
 * _(I have hidden “Parte tolta” strings)_
 * I rebuilt this file by myself and now the site seems to work well.
    But some 
   plug-in give me an error like this: **Fatal error: Call to undefined function
   get_site_allowed_themes() in /membri/milesimarco/wp-content/plugins/bp-groupblog/
   bp-groupblog-admin.php on line 310** (/membri/milesimarco is the part in common
   of every plug-in give me an error 🙁
 * I think the problem is in the last broken-file part (/** Sets up WordPress vars
   and included files. */)
    In fact when i rewrote the file i didn’t copy the last
   part (i don’t kow how to format these lines….)
 * If you think this can be the problem, please tell me. I’d appreciate also if 
   you can tell me how to rebuilt THE LAST PART of this file (for a medium-expert
   this will take less than 2 minutes… ) after this line:
    **/\*\* Sets up WordPress
   vars and included files. \*/**

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

 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 9 months ago](https://wordpress.org/support/topic/error-formatting-wp-configphp/#post-2255302)
 * Looks like all your line breaks were … removed.
 * Make a new wp-config.php file off of wp-config.sample (just add in your DB info
   etc)
 *  Thread Starter [Marco Milesi](https://wordpress.org/support/users/milmor/)
 * (@milmor)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/error-formatting-wp-configphp/#post-2255304)
 * Yes i’ve done that but i haven’t put in the new file this part
    **/\*\* Sets 
   up WordPress vars and included files. \*//\* modifica \*/$_SERVER[‘DOCUMENT_ROOT’]
   = “/membri/milesimarco”;$_ENV[‘DOCUMENT_ROOT’] = “/membri/milesimarco”;/\* fine\*/
   require_once(ABSPATH . ‘wp-settings.php’);**
 * How can i format it in the correct mode?
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 9 months ago](https://wordpress.org/support/topic/error-formatting-wp-configphp/#post-2255317)
 *     ```
       /** Sets up WordPress vars and included files. **/
   
       /* modifica */
       $_SERVER['DOCUMENT_ROOT'] = "/membri/milesimarco";
       $_ENV['DOCUMENT_ROOT'] = "/membri/milesimarco";
   
       /* fine */
       require_once(ABSPATH . 'wp-settings.php');
       ```
   
 * should be right.
 *  Thread Starter [Marco Milesi](https://wordpress.org/support/users/milmor/)
 * (@milmor)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/error-formatting-wp-configphp/#post-2255330)
 * The site work with this… I hope no more have problems…
 * Thanks a lot 😀

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

The topic ‘Error formatting wp-config.php’ is closed to new replies.

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 4 replies
 * 2 participants
 * Last reply from: [Marco Milesi](https://wordpress.org/support/users/milmor/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/error-formatting-wp-configphp/#post-2255330)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
