Current location: Hot Scripts Forums » Programming Languages » PHP » Parse error: T_ENCAPSED_AND_WHITESPACE,


Parse error: T_ENCAPSED_AND_WHITESPACE,

Reply
  #1 (permalink)  
Old 02-17-06, 08:51 AM
dplevy81 dplevy81 is offline
New Member
 
Join Date: Feb 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Parse error: T_ENCAPSED_AND_WHITESPACE,

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /home/dmplevy/public_html/vb/forumdisplay.php(1008) : eval()'d code on line 53

i cant figure this one out. im stumped. anyway, heres part of the .php file that is causing the error message:

// pre-cache templates used by specific actions
$actiontemplates = array(
'none' => array(
'FORUMDISPLAY',
'threadbit',
'threadbit_deleted',
'forumdisplay_announcement',
'forumhome_lastpostby',
'forumhome_forumbit_level1_post',
'forumhome_forumbit_level2_post',
'forumhome_forumbit_level1_nopost',
'forumhome_forumbit_level2_nopost',
'forumhome_subforumbit_nopost',
'forumhome_subforumseparator_nopost',
'forumdisplay_loggedinuser',
'forumhome_moderator',
'forumdisplay_moderator',
'forumdisplay_sortarrow',
'forumhome_subforumbit_post',
'forumhome_subforumseparator_post',
'forumrules',
'threadadmin_imod_menu_thread',
)
);


it says its line 53 thats causing the problem, but line 53 is just the ) what is wrong here? this .php file is right from vbulletin. i dont get it.
Reply With Quote
  #2 (permalink)  
Old 02-17-06, 09:12 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
Check forumdisplay.php on line 1008.
Reply With Quote
  #3 (permalink)  
Old 02-17-06, 05:36 PM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
Just a guess, but you may need to remove the comma from this line:

threadadmin_imod_menu_thread',
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Reply With Quote
  #4 (permalink)  
Old 02-17-06, 05:39 PM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
I thought that too, but then did I look at my vBulletin version at it's the same and it works!
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 05:56 AM
parse error niya PHP 2 12-02-05 09:35 AM
Parse error: parse error, unexpected T_VARIABLE aussietogo PHP 4 08-16-05 08:14 PM
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE | help? culticka PHP 1 11-25-04 03:10 PM
[php error] parse error | fatal error xeoHosting PHP 1 01-03-04 08:12 PM


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