Jump to content

Fatal Error


AlexS

Recommended Posts

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

Link to comment
Share on other sites

  • Moderators

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

Link to comment
Share on other sites

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:

23jq3qs.jpg

Seems that I should see if those also have that $_FILES lines or anything with a $?

I'll see what I can do.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • 4 months later...
  • 5 months later...
  • 1 month later...
  • 2 months later...

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