1,105,585 Community Members

Parse error: syntax error, unexpected T_STRING

Member Avatar
lilach.dror
Newbie Poster
1 post since Dec 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
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

Member Avatar
cossay
Junior Poster
141 posts since Nov 2010
Reputation Points: 7 [?]
Q&As Helped to Solve: 24 [?]
Skill Endorsements: 0 [?]
 
0
 

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

Member Avatar
gofractal
Newbie Poster
1 post since Dec 2009
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
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...

Member Avatar
diafol
Where are my eyes?
12,986 posts since Oct 2006
Reputation Points: 1,821 [?]
Q&As Helped to Solve: 1,849 [?]
Skill Endorsements: 92 [?]
Moderator
Featured
Sponsor
 
0
 

Change

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

to

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