Welcome Guest ( Log In | Register )



 
Closed TopicStart new topic
> Help: Smf Sources.php File Producing Parse Error, unexpected T_VARIABLE, expecting ')'
ganeshn11
post May 13 2006, 07:10 AM
Post #1


Advanced Member
Group Icon

Group: Banned
Posts: 149
Joined: 2-December 05
From: Bangalore, India.
Member No.: 9,923



I have really serious problem with SMF. Its about some stupid message whhich keeps appearing everytime I load the "profile" page in SMF. Here is what it says:

"Parse error: parse error, unexpected T_VARIABLE, expecting ')' in /home/ganesh/public_html/Sources/Profile.php on line 1814"

This is source code for that "Profile.php" file. I am asking this because I relly dont know PHP very well, still learning. So is there an PHP coder for this problem, please help!

Mods or admins please make this a new topic if possible.

Here is the link to that profile.php file, I have copied the source code onto a text file.

profile.php | profile.txt

I suggest you to copy the whole php code on to a text editor (notepad) that shows which line you are reading. As there is about 2000 lines and the error is present at line 1814.

Please post your debugged code, it will be of great help.

Notice from twitch:
I uploaded the Profile.TXT as attatchment so that thost for which the link didn't work, this attatchment should.



This post has been edited by twitch: May 13 2006, 04:29 PM
Go to the top of the page
 
+Quote Post
mastercomputers
post May 13 2006, 03:50 PM
Post #2


BUG.SWAT.PATROL
Group Icon

Group: Members
Posts: 626
Joined: 1-September 04
From: Auckland, New Zealand
Member No.: 27



Well I am unable to see the source, but all I suggest is that around line 1814 (usually this line or before it), a closing bracket has been forgotten which is what the error is suggesting.

That's all I can say about this, without seeing the source, the link would not open.


Cheers,


MC
Go to the top of the page
 
+Quote Post
ganeshn11
post May 13 2006, 04:56 PM
Post #3


Advanced Member
Group Icon

Group: Banned
Posts: 149
Joined: 2-December 05
From: Bangalore, India.
Member No.: 9,923



There was a "$" operator, I removed that and put the ")" operator as the system suggested. Now its showing something which I dont seem to understand. Here is what its saying:

Parse error: parse error, unexpected T_STRING in /home/ganesh/public_html/Sources/Profile.php on line 1814

I guess the mods will have to change the title to T_STRING from T_VARIABLE.
Please tell me what is that T_STRING, then I can try to resolve it by myself.
Go to the top of the page
 
+Quote Post
Houdini
post May 13 2006, 05:19 PM
Post #4


Super Member
Group Icon

Group: Members
Posts: 572
Joined: 25-April 05
From: Nashville Tennessee
Member No.: 4,340



Post your code, the error you are getting just shows up in the line indicated and is usually the line before, I don't need to see a link to the error but the actual code. Post that line as well as two or three lines above it (where the problem really starts).
Go to the top of the page
 
+Quote Post
ganeshn11
post May 13 2006, 05:48 PM
Post #5


Advanced Member
Group Icon

Group: Banned
Posts: 149
Joined: 2-December 05
From: Bangalore, India.
Member No.: 9,923



Ok guys and gals, its done. I managed to debug it all by myself, this how I did it. I first solved one error by putting the "," after the ")". Then it said another similar error at line 1826, solved that too. After all this one more similar error at line 1830, I debugged all of them and now its done, the page reloads properly.

All this chaos was caused due to some idiotic mod I tried to install (I dont know which one, though).

Thanks guys, all of you really helped me in someway or the other. Good job! smile.gif
Go to the top of the page
 
+Quote Post
twitch
post May 13 2006, 05:53 PM
Post #6


Veteran Nut
Group Icon

Group: Members
Posts: 527
Joined: 4-October 05
From: UK
Member No.: 8,895



Topic Resolved.

***CLOSED***
Go to the top of the page
 
+Quote Post

Closed TopicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Error 406 - Problem In My Phpbb Forum(8)
  2. Shut Down, Restart, Log Off XP Using A Batch File(23)
  3. How To Save A Image In Pdf File And Download It?(10)
  4. Recover Tables From A MySQL .frm File(8)
  5. Text File Operations VB.NET(5)
  6. What Is Mkv? Need Help With This File Format?(6)
  7. Uploading Image File Through JSP Code To Server(9)
  8. Dreamweaver 8 Issue(9)
  9. Deleting A Corrupt File(25)
  10. Need Help Urgently (missing Or Corrupt Hal.dll File).(6)
  11. OSCommerce Errors(5)
  12. Bsod Error & It's Causes(6)
  13. Enumeration Enum = .....(4)
  14. Is A Php File Searchable?(8)
  15. Java Applet Loading Error(5)
  1. Problem With Move_uploaded_file()(5)
  2. Safari And Hosts File(8)
  3. How To Copy File & Folders From Linux To Windows?.(12)
  4. Strange Error When Trying To Install Fedora Core 9(4)
  5. Simple Java Question(1)
  6. I Have An Error With My Mysql Connection(7)
  7. Need To Edit A Wav File [solved](1)
  8. Re-ordering Welcome Screen & Moving Heavily Fragmented File(1)
  9. Mysql Storage Engine Error 28(5)
  10. Mysql And User File_priv(0)
  11. Parse PHP And Display PHP Generated Output(8)
  12. Error Connecting To Domain(2)
  13. Cant Find The Error(2)


 



- Lo-Fi Version Time is now: 22nd August 2008 - 05:06 AM