• Resolved balexander

    (@balexander)


    So my website https://www.naturopathmassage.com.au is showing this
    Parse error: syntax error, unexpected ‘,’ in /home/nat48045/public_html/wp-config.php on line 19

    All i did was change the secret key. I have done this before and had no problems.

    Basically my wp-config.php file shows….

    <?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 */
    (‘DB_NAME’, ‘database_name’);

    /** MySQL database username */
    (‘DB_USER’, ‘username’);

    /** MySQL database password */
    (‘DB_PASSWORD’, ‘password’);

    /** MySQL hostname */
    (‘DB_HOST’, ‘local’);

    /** 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.
    *
    * Change these to different unique phrases!
    * You can generate these using the {@link https://api.www.ads-software.com/secret-key/1.1/ 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
    */

    SECRET KEY HERE

    /**#@-*/

    /**
    * 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_’;

    /**
    * 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.mo to wp-content/languages and set WPLANG to ‘de’ to enable German
    * language support.
    */
    define (‘WPLANG’, ”);

    /* That’s all, stop editing! Happy blogging. */

    /** WordPress 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’);

    ————–

    Wasnt sure about posting the secret key, however i did change the secret key a few times to see if it was a problem with that and its not.
    Would anyone be able to tell me what to do to get my page back up?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter balexander

    (@balexander)

    I thought it was telling me to remove the comma from line 19 but i tried that and it changed to

    “Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/nat48045/public_html/wp-config.php on line 19”

    So i changed it back. I dont know why its displaying this as i didnt touch any of that area, just replaced the secret key

    Thread Starter balexander

    (@balexander)

    Line 19 is this…

    (‘DB_NAME’, ‘nat480_naturopath’);

    You are missing the word ‘define’ in several places:

    define('DB_NAME', 'database_name');
    
    /** MySQL database username */
    define('DB_USER', 'username');
    
    /** MySQL database password */
    define('DB_PASSWORD', 'password');
    
    /** MySQL hostname */
    define 'DB_HOST', 'local');
    Thread Starter balexander

    (@balexander)

    That is really odd as i never touched that.

    Thank you so much!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Parse error: syntax error, unexpected ',' in /home/nat48045/public_html/wp-confi’ is closed to new replies.