• Liezleb

    (@liezleb)


    My site has been hacked I installed site scanners on the 21 and got hacked on the 23 now I cannot access my site. I am trying to reconfigure my wp_config.php but keep getting this error.
    Parse error: syntax error, unexpected T_STRING in /home/content/83/11367183/html/wp-config.php on line 28.
    It is the last line of the code. I have entered the db fields one by one. If I start with the DB_HOST it is fine, as soon as I add my username and password it goes wrong.

    Please help

    TIA

    <?php
    /**
     * The base configurations of the WordPress.
     *
     * This file has the following configurations: MySQL settings, Table Prefix,
     * Secret Keys, 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 */
    define('DB_NAME', '');
    
    /** MySQL database username */
    define('DB_USER', '');
    
    /** MySQL database password */
    define('DB_PASSWORD', ‘’);
    
    /** MySQL hostname */
    define('DB_HOST', '');

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

    (@wslade)

    Hello,

    I’m sorry your site is damaged. Is your site showing anything at the home page? Is anything about can’t establish a database connection visable? What happens when you try to login?

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Don’t post your passwords. I removed them from the post.

    Check your quote marks, make sure they’re normal single quotes, not something weird looking.

    Dominykas

    (@dominykasgel)

    Hi there,

    The problem is with

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

    You need to use normal quotes. Working code:

    /** MySQL database password */
    define('DB_PASSWORD', '');

    Thread Starter Liezleb

    (@liezleb)

    Thank you. I have now realised the problem with the DB_PASSWORD godaddy has the password rule special characters and as soon as I add !@# it says : syntax error line 28

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

The topic ‘Parse error: syntax error, unexpected T_STRING’ is closed to new replies.