AlexS Posted July 25, 2013 Report Share Posted July 25, 2013 I have this parse error on my website: syntax error, unexpected '@', expecting function (T_FUNCTION) in/home/airtran/airtranvirtual.net/public_html/core/common/PilotData.class.php I have tried to fix it, and I am really confused with the directions that was sent to me on my VA topic. Any help would be awesome! Quote Link to comment Share on other sites More sharing options...
SkiesTheLimit Posted July 26, 2013 Report Share Posted July 26, 2013 Check your PilotData.class.php for any extra quotations (" or any mistaken us of ') Quote Link to comment Share on other sites More sharing options...
AlexS Posted July 26, 2013 Author Report Share Posted July 26, 2013 Check your PilotData.class.php for any extra quotations (" or any mistaken us of ') Didn't work AAV001Heavy Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted July 28, 2013 Administrators Report Share Posted July 28, 2013 Moved topic from VACentral to phpVMS support board. Quote Link to comment Share on other sites More sharing options...
AlexS Posted July 29, 2013 Author Report Share Posted July 29, 2013 Here is a link to my website: http://www.airtranvirtual.net/ I've tried all possible solutions given to me including this: http://forum.phpvms....php/#entry54604 this: http://forum.phpvms....llation-errors/ and this: https://github.com/n...hpVMS/issues/77 None of them seem to work. It must be a PHP 5.4 issue with my x10 Hosting or something. Do any of you have recommendations? Best Regards, Alex Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted July 29, 2013 Administrators Report Share Posted July 29, 2013 Have you made this change -> https://github.com/nshahzad/phpVMS/commit/4bdb12a0390885e0f012190170445baf2874053b in your local file? If so, did you leave an unclosed bracket or something, that would cause the parse error. As far as phpVMS working with php 5.4 or later it is less than desired at this point. It is tough to pinpoint whatthe issue may be with so little information provided. Quote Link to comment Share on other sites More sharing options...
MaciejO Posted July 29, 2013 Report Share Posted July 29, 2013 I have tried to fix this problem for Alex using all fixes given but none of them worked on any of the issues. When I have made a clean phpVMS install on this server it thrown in exactly the same errors just after completing the registration proccess at the end of installer. Does anyone have any idea how to sort this out? Mac... Quote Link to comment Share on other sites More sharing options...
SkiesTheLimit Posted July 29, 2013 Report Share Posted July 29, 2013 Looking at the x10hosting forums, they make it so you can't change the PHP version you're on. Everyone is on php 5.4 on their servers (which renders a load of errors and issues with PHPvms that you might be experiencing) Therefore I believe the only way to solve this unfortunately would be to switch hosts or contact x10hosting directly. Quote Link to comment Share on other sites More sharing options...
Qantas94Heavy Posted August 3, 2013 Report Share Posted August 3, 2013 Sorry for the basic advice - could you provide specific line numbers where the parse errors occur (should be in the logs), and provide a plain text link to that file as it is (i.e. don't copy paste in a text editor, just make a copy of the file and rename it)? Thanks. Quote Link to comment Share on other sites More sharing options...
AlexS Posted August 14, 2013 Author Report Share Posted August 14, 2013 Solved guys, thanks for your help. Quote Link to comment Share on other sites More sharing options...
Sava Posted August 17, 2013 Report Share Posted August 17, 2013 How did you solve it, in case others get the same error? Quote Link to comment Share on other sites More sharing options...
AlexS Posted August 17, 2013 Author Report Share Posted August 17, 2013 To solve: You must downgrade PHP 5.4 to PHP 5.3. To switch to PHP 5.3 for Free Hosting and Prime members: • Create a new file called .htaccess in the folder you wish to run as PHP 5.3, or edit the existing .htaccess in that folder, and add the following line: Code: AddType application/x-httpd-php53 .php .php5 .phtml • To switch to PHP 5.3 for Illuminated members: Create a new file called .htaccess in the folder you wish to run as PHP 5.3, or edit the existing .htaccess in that folder, and add the following line: Code: AddHandler application/x-httpd-php53 .php .php5 .phtml • To switch to PHP 5.2 for Illuminated members: Create a new file called .htaccess in the folder you wish to run as PHP 5.2, or edit the existing .htaccess in that folder, and add the following line: Code: AddHandler application/x-httpd-php52 .php .php5 .phtml If at any time you wish to change back to PHP 5.4, simply edit .htaccess and remove the line you added above. Quote Link to comment Share on other sites More sharing options...
Sava Posted August 18, 2013 Report Share Posted August 18, 2013 I've had several clients whose hosts upgraded to 5.4. After doing what the GitHub issues pages and forums said, they continued to run without any issues. So, unless I am missing something having not read the entire thread, you can just deploy the fixes and it's good to go. Quote Link to comment Share on other sites More sharing options...
AlexS Posted August 18, 2013 Author Report Share Posted August 18, 2013 Yeah GitHub's fixes did not work for me. What i said to solve is the only thing that works for me. 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.