AlexS Posted September 17, 2013 Report Share Posted September 17, 2013 Hey Guys, I just recently got this problem that I know a lot of people have had before. Their is only one thing that stops me from fixing it....I can't save my files. Let's say I edit the files, the save button doesn't do anything. It's basically like it is disabled. Therefore I cannot fix the code and I have no clue what to do. Help would be much appreciated! Fatal error: Cannot re-assign auto-global variable _FILES in /home/airtran/airtranvirtual.net/public_html/core/common/PilotDataClass.php on line 436 Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted September 17, 2013 Members Report Share Posted September 17, 2013 How do you edit the files ? are you able to download the file edit and then reupload ? Quote Link to comment Share on other sites More sharing options...
AlexS Posted September 18, 2013 Author Report Share Posted September 18, 2013 I'm not sure that is possible. I use x10 Free Hosting. I plane on getting paid soon, but I keep getting errors. Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted September 18, 2013 Members Report Share Posted September 18, 2013 I have had good results with 1freehosting.com other than that try to get a paid domain in order to avoid problems Quote Link to comment Share on other sites More sharing options...
Moderators Kyle Posted September 19, 2013 Moderators Report Share Posted September 19, 2013 This is clearly an issue with the newer versions of PHP. $_FILES variable can not be used in the function parameters. In PilotData.class.php line 436, there is a $_FILES function in there, it needs to be removed because that function name in the parameter is a reserved name. Example: Change from... public static function saveAvatar($code, $pilotid, $_FILES) To... public static function saveAvatar($code, $pilotid) And that should make the error go away. Quote Link to comment Share on other sites More sharing options...
alblua Posted September 23, 2013 Report Share Posted September 23, 2013 This seemed to work: This is clearly an issue with the newer versions of PHP. $_FILES variable can not be used in the function parameters. In PilotData.class.php line 436, there is a $_FILES function in there, it needs to be removed because that function name in the parameter is a reserved name. Example: Change from... public static function saveAvatar($code, $pilotid, $_FILES) To... public static function saveAvatar($code, $pilotid) And that should make the error go away. However, that fixed most of the stuff. Now, website looks like this: Seems that I should see if those also have that $_FILES lines or anything with a $? I'll see what I can do. Quote Link to comment Share on other sites More sharing options...
Sava Posted September 24, 2013 Report Share Posted September 24, 2013 You're running phpVMS with a newer version of PHP which is currently not compatible with phpVMS by default.There is a fix, just search on the forums. Quote Link to comment Share on other sites More sharing options...
alblua Posted September 25, 2013 Report Share Posted September 25, 2013 You're running phpVMS with a newer version of PHP which is currently not compatible with phpVMS by default. Yes, the owner and I have noticed that. I have no idea how, though the owner said he does, but he still hasn't done it. There is a fix, just search on the forums. Can you possibly link us to another forum post? Quote Link to comment Share on other sites More sharing options...
alblua Posted February 15, 2014 Report Share Posted February 15, 2014 Everything is quite okay now; just only for our web host kicking us out. Someone mark this solved for me? I believe the owner and I got this down. Quote Link to comment Share on other sites More sharing options...
RogerB Posted February 17, 2014 Report Share Posted February 17, 2014 It's the new php. Being the this system hasn't been touched for a long time PHPVMS could be rendered obsolete. I use host gator so therefore I am able to choose which version of php i run Quote Link to comment Share on other sites More sharing options...
GBAirlines Posted August 5, 2014 Report Share Posted August 5, 2014 This seemed to work: However, that fixed most of the stuff. Now, website looks like this: Seems that I should see if those also have that $_FILES lines or anything with a $? I'll see what I can do. Im also getting this. how do you fix it?? Quote Link to comment Share on other sites More sharing options...
Curshad Posted September 12, 2014 Report Share Posted September 12, 2014 Anyone has a fix? would be greatly appreciated. Quote Link to comment Share on other sites More sharing options...
alblua Posted November 13, 2014 Report Share Posted November 13, 2014 I totally forgot how in the world I fixed it, but it was something about me inputting some PHP error turnoff in the correct place. I managed to fix it before I decided to create our new current skin. If anyone still has issues, I'm willing to look into it. 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.