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. Link to comment https://forums.phpfreaks.com/topic/94205-expecting-t_class-help-please/ 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. Link to comment https://forums.phpfreaks.com/topic/94205-expecting-t_class-help-please/#findComment-482519 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? Link to comment https://forums.phpfreaks.com/topic/94205-expecting-t_class-help-please/#findComment-482520 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']) Link to comment https://forums.phpfreaks.com/topic/94205-expecting-t_class-help-please/#findComment-482522 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){ Link to comment https://forums.phpfreaks.com/topic/94205-expecting-t_class-help-please/#findComment-482534 Share on other sites More sharing options...
trq Posted March 4, 2008 Share Posted March 4, 2008 We need to see more code. Link to comment https://forums.phpfreaks.com/topic/94205-expecting-t_class-help-please/#findComment-482536 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. Link to comment https://forums.phpfreaks.com/topic/94205-expecting-t_class-help-please/#findComment-482537 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 Link to comment https://forums.phpfreaks.com/topic/94205-expecting-t_class-help-please/#findComment-482548 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']) Link to comment https://forums.phpfreaks.com/topic/94205-expecting-t_class-help-please/#findComment-482557 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.