1.11M Members

Parse error: syntax error, unexpected T_STRING

 
0
 

here is the code of the php and the last sentence is the problem:

<?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 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', 'intmark_wrdp1');

i got this :
Parse error: syntax error, unexpected T_STRING in /home/intmark/public_html/wp-config.php on line 17

 
0
 

So, I do I know which line is line 17? Please use code tags.

 
0
 

Hi,

Line 17 isn't necessarily the problem.
The error is basically telling you that there is an unrecognized string somewhere in your code (the parser fell over somewhere after line 17). Usually this would happen if you have mismatched quotes or apostrophes in your code.

1) Make sure you don't have quotes or apostrophes within your secret keys (and other constants)

2) Make sure you use apostrophes around the constant strings, and not the MS Word pseudo-apostrophes which can look the same in some editors, but are definitely not the same. If you haven't been copying and pasting from an MS product, you should be right.

cf: http://wordpress.org/support/topic/parse-error-unexpected-t_string-in-wp-configphp-version-26

HTH...

 
0
 

Change

<?php/** 
* The bas...

to

<?php
/** 
* The bas...
You
This article has been dead for over six months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: