Current location: Hot Scripts Forums » Programming Languages » PHP » unexpected T_STRING


unexpected T_STRING

Reply
  #1 (permalink)  
Old 01-27-08, 04:29 PM
AidenA-Webb AidenA-Webb is offline
New Member
 
Join Date: Jan 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
unexpected T_STRING

Hi, i'm having a slight problem with an smf template i'm using in conjunction with subdreamer cms. I skin the forum and i get this error

Quote:
Template Parse Error!
There was a problem loading the /Themes/FerryTema/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
syntax error, unexpected T_STRING, expecting ',' or ';'
I've narrowed it down to one line of code. 530.

HTML Code:
<div id="sdfooter"><div class="footer_1" onMouseOver="this.className='footer_1_hover'" onMouseOut="this.className='footer_1'"><div class="footer_2" onMouseOver="this.className='footer_2_hover'" onMouseOut="this.className='footer_2'"><div class="footer_3" onMouseOver="this.className='footer_3_hover'" onMouseOut="this.className='footer_3'"><a href="http://www.rune-help.info/index.php?categoryid=1" class="sdfooter">Home</a></div></div></div><div class="footer_1" onMouseOver="this.className='footer_1_hover'" onMouseOut="this.className='footer_1'"><div class="footer_2" onMouseOver="this.className='footer_2_hover'" onMouseOut="this.className='footer_2'"><div class="footer_3" onMouseOver="this.className='footer_3_hover'" onMouseOut="this.className='footer_3'"><a href="http://www.rune-help.info//forums/index.php" class="sdfooter">Forum</a></div></div></div><div class="footer_1" onMouseOver="this.className='footer_1_hover'" onMouseOut="this.className='footer_1'"><div class="footer_2" onMouseOver="this.className='footer_2_hover'" onMouseOut="this.className='footer_2'"><div class="footer_3" onMouseOver="this.className='footer_3_hover'" onMouseOut="this.className='footer_3'"><a href="http://www.rune-help.info/index.php?categoryid=3" class="sdfooter">Image Gallery</a></div></div></div><div class="footer_1" onMouseOver="this.className='footer_1_hover'" onMouseOut="this.className='footer_1'"><div class="footer_2" onMouseOver="this.className='footer_2_hover'" onMouseOut="this.className='footer_2'"><div class="footer_3" onMouseOver="this.className='footer_3_hover'" onMouseOut="this.className='footer_3'"><a href="http://www.rune-help.info/index.php?categoryid=4" class="sdfooter">Links</a></div></div></div><div class="footer_1" onMouseOver="this.className='footer_1_hover'" onMouseOut="this.className='footer_1'"><div class="footer_2" onMouseOver="this.className='footer_2_hover'" onMouseOut="this.className='footer_2'"><div class="footer_3" onMouseOver="this.className='footer_3_hover'" onMouseOut="this.className='footer_3'"><a href="http://www.rune-help.info/index.php?categoryid=5" class="sdfooter">Contact</a></div></div></div><div class="footer_1" onMouseOver="this.className='footer_1_hover'" onMouseOut="this.className='footer_1'"><div class="footer_2_alt" onMouseOver="this.className='footer_2_hover'" onMouseOut="this.className='footer_2_alt'"><div class="footer_3" onMouseOver="this.className='footer_3_hover'" onMouseOut="this.className='footer_3'"><a href="http://www.rune-help.info/forums/index.php?action=register" class="sdfooter">Register</a></div></div></div></div>
Can someone please identify the problem(s) in this line please? Thanks.

Last edited by AidenA-Webb; 01-27-08 at 04:36 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 01-27-08, 06:03 PM
Walkere Walkere is offline
Newbie Coder
 
Join Date: Jan 2008
Location: New Jersey
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by AidenA-Webb View Post
I've narrowed it down to one line of code. 530.

Can someone please identify the problem(s) in this line please? Thanks.
I doubt it's in that line. It's most likely in one of the lines just prior to it...

The error you got "unexpected T_string" usually means you have a simple syntax error in your php. Your missing a quote, a semi-colon, a parentheses, or bracket somewhere. Or you might have missed a ?> to close a php snippet.

Since the line you quoted is all HTML (no php) it couldn't have been the culprit to cause a php error - so look at the lines preceding it and look for a syntax error.

Good luck,
- Walkere
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 01-27-08, 07:51 PM
Jay6390's Avatar
Jay6390 Jay6390 is offline
Code Master
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,330
Thanks: 0
Thanked 0 Times in 0 Posts
Have to agree with walkere. as you have not actually got any php in that line that you have supplied it is IMPOSSIBLE to be that line, since the error is coming from php scripting. it is either the tmplate file, or more likely the php file calling the template

Jay
__________________
Useful Tutorials
[ PHP Video-1-2-3 ] [ MySQL 1-2-3 ]
For any php function reference type

www.php.net/FunctionName
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 01-28-08, 08:42 AM
AidenA-Webb AidenA-Webb is offline
New Member
 
Join Date: Jan 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
I deleted that line as it wasn't essential, the code now works. I'm not entirely sure what the problem was but thanks guys.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRIN aprogrammer PHP 20 08-31-11 06:56 AM
Unexpected headache from unexpected "T String" dcshoeco1 PHP 4 09-29-06 03:36 PM
Parse error: parse error, unexpected T_VARIABLE aussietogo PHP 4 08-16-05 09:14 PM
Unexpected T-string In Php 2dogrc PHP 6 07-15-05 09:06 AM
unexpected t_string mark0820 PHP 2 06-05-05 11:07 PM


All times are GMT -5. The time now is 08:47 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.