• Hi, i’m new o wp and i already do all for install the wp. And when i got to finish the installation procedure it appear this error

    Parse error: syntax error, unexpected T_STRING in /home/xxxxxxxxxxx on line 31

    this line is

    define(‘DB_CHARSET’, ‘utf8’);

    what it’s the problem on?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator t-p

    (@t-p)

    A syntax error indicates that you may have made a mistake while creating your PHP structure. When this error appears it will tell you which file the error appears in (e.g., functions.php) and approximately which line (it may not always be the exact line so be sure to check just before and just after) in the code.
    Try:
    – fix PHP structure in the file around the line indicated in the error
    – or, upload a fresh copy (unedited) of this file
    – or, upload a fresh copy of your theme. If you immediately need to get in the dashboard, you can switch to the default theme by renaming your currently active theme’s folder inside /wp-content/themes/ and adding “-old” to the end of the folder name using FTP or SFTP or any whatever file management application your host provides.

    Thread Starter Ricardo Valdés

    (@rhvaldes)

    ok… thank’s Tara… but… after doing a lot of thing i upload again all the file for install the wordpress and still have a problem…. here is the config.php file and

    Parse error: syntax error, unexpected T_DNUMBER in /home/a2067298/public_html/casino/wp-config.php on line 28

    [moderated – that file has security / access info in it!]

    Sincerely I new here and i don’t know what to do!! could you help me?

    Hi Ricardo – that file has all your site security info in it! Fortunately, it got caught in the forum’s spam filter – so it wasn’t publicly posted. But that’s not a file you should post anywhere – even if your site isn’t working!

    How did you install WP?

    Thread Starter Ricardo Valdés

    (@rhvaldes)

    ok… thank’s for tell me that….. i uploaded (via fileZilla) the files of wordpress on my host database but i can’t enter to the login for the admin wordpress.

    there is a problem on line 28 of config.php file, but i don’t know where is the error!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Parse error: syntax error, unexpected T_STRING in line 31’ is closed to new replies.