Error formatting wp-config.php
-
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 https://codex.www.ads-software.com/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.www.ads-software.com/secret-key/1.1/salt/ www.ads-software.com 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. */
- The topic ‘Error formatting wp-config.php’ is closed to new replies.