Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Website showing error in wp-config.php

Discussion in 'Misc WordPress Requests' started by samihan, Oct 14, 2017.

  1. samihan


    Website showing error in wp-config.php, by samihan

    My website is showing error as:

    Parse error: syntax error, unexpected ‘define’ (T_STRING) in /home/kratosracing/public_html/wp-config.php on line 2

    my wp-config.php is as follows:
    (I have removed username, password, key while posting here)

    <?php/** * The base configuration for WordPress * * The wp-config.php creation script uses this file during the * installation. You don’t have to use the web site, you can * copy this file to “wp-config.php” and fill in the values. * * This file contains the following configurations: * * * MySQL settings * * Secret keys * * Database table prefix * * ABSPATH * * @link https://codex.wordpress.org/Editing_wp-config.php * * @package WordPress */// ** MySQL settings – You can get this info from your web host ** ///** The name of the database for WordPress */define(‘DB_NAME’, ‘dbname’);/** MySQL database username */define(‘DB_USER’, ‘username’);/** MySQL database password */define(‘DB_PASSWORD’, ‘mypassword’);/** 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 */define(‘AUTH_KEY’, ”);define(‘SECURE_AUTH_KEY’, ”);define(‘LOGGED_IN_KEY’, ”);define(‘NONCE_KEY’, ‘0i3qoVDyKSA8rsiPSSpo8gYDWdgAtGTS3eFVUoxHwsOa20qoAr07VJxU7PQHrogR’);define(‘AUTH_SALT’, ‘cI9Qfknbd8f9OWrcGQzqzacBTF4gg0DSTEXe1CX65AckZYAvX1uju7Om1xPyIy75’);define(‘SECURE_AUTH_SALT’, ‘dt16RP0Naa2HX84ViaCsMzKgKBwJ8RcsV9a0ExQTJp4FQdfp7AOBl5hT7PWK9esa’);define(‘LOGGED_IN_SALT’, ‘8B4v4RRhX3h15cPc7BEZrkreFYRwdX2FLsUqfeOoVWGcZlhwKF3Z2P6a8o5P0KR5’);define(‘NONCE_SALT’, ‘rXHtdKGlaJBrhdZZnM7VIkUlXLRltq2JNb5ygpNVQb5DZOJaefpBTB3QSIyBHe5V’);/** * Other customizations. */define(‘FS_METHOD’,’direct’);define(‘FS_CHMOD_DIR’,0755);define(‘FS_CHMOD_FILE’,0644);
    define(‘WP_TEMP_DIR’,dirname(__FILE__).’/wp-content/uploads’);/** * Turn off automatic updates since these are managed upstream. */define(‘AUTOMATIC_UPDATER_DISABLED’, true);/**#@-*//** * 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! */$table_prefix = ‘wp_’;/** * 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. * * For information on other constants that can be used for debugging, * visit the Codex. * * @link https://codex.wordpress.org/Debugging_in_WordPress */define(‘WP_DEBUG’, true);/* 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. */require_once(ABSPATH . ‘wp-settings.php’);

    Website showing error in wp-config.php

Share This Page

Monarch Social Sharing Plugin