jokerfool Posted March 4, 2008 Share Posted March 4, 2008 I have received this error: Parse error: syntax error, unexpected '(', expecting T_CLASS Referring to line 190 of some code which is: 188-191 //Final step case "final": final(); break; Refers to final(); as an error, what does this mean and how is it fixed? Thank you. Quote Link to comment Share on other sites More sharing options...
jandrews3 Posted March 4, 2008 Share Posted March 4, 2008 These kind of errors are almost never on the line stated. The stated line is where the computer encounters something to make it realize there has already been an error. Look at the rest of your code. There's probably an open ( which hasn't been properly closed. Hope this helps. Quote Link to comment Share on other sites More sharing options...
jokerfool Posted March 4, 2008 Author Share Posted March 4, 2008 Thing is the script worked fine before and now the host updated to php5 and now its not working which is why I am getting the error. So what would I be looking for in the code? Quote Link to comment Share on other sites More sharing options...
tippy_102 Posted March 4, 2008 Share Posted March 4, 2008 Where does "final" come from? Does your page contain something that loks similar to this: switch ($_GET['final']) Quote Link to comment Share on other sites More sharing options...
jokerfool Posted March 4, 2008 Author Share Posted March 4, 2008 nothing with get, but the switch is up on line 62: switch($step){ Quote Link to comment Share on other sites More sharing options...
trq Posted March 4, 2008 Share Posted March 4, 2008 We need to see more code. Quote Link to comment Share on other sites More sharing options...
unsider Posted March 4, 2008 Share Posted March 4, 2008 We need to see more code. Specifically more surrounding code, not much to go on there. Quote Link to comment Share on other sites More sharing options...
jokerfool Posted March 4, 2008 Author Share Posted March 4, 2008 Please view this file, this is the admin.php file that received the error: http://www.changecomm.net/admin.zip Quote Link to comment Share on other sites More sharing options...
tippy_102 Posted March 4, 2008 Share Posted March 4, 2008 You're making this really hard for us. I'm not going to download your file, but try changing this switch($step) to this switch ($_GET['step']) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.