Jump to content

Parse Error


AlexS

Recommended Posts

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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • Administrators

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.

Link to comment
Share on other sites

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... :ph34r:

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 weeks later...

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.

Link to comment
Share on other sites

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. :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...