Site errors

Some sites are not working because of doing on PHP 5.4+. There are some changes that need to be made, luckily pretty simple. If you haven’t modified anything, look at: https://github.com/nabeelio/phpvms_v2. The php70 branch (default, download here: https://github.com/nabeelio/phpvms_v2/archive/php70.zip) is updated to support PHP 7+

If you’re on the 5.x version, you should be fine.

action.php

Find ~Line 46:

error\_reporting(E\_ALL ^ E\_NOTICE);

Change to:

error\_reporting(E\_ALL ^ E\_NOTICE ^ E\_STRICT);

 

core/local.config.php

Find (~L139):

Config::Set('ERROR\_LEVEL', E\_ALL ^ E\_NOTICE);

Change to:

Config::Set('ERROR\_LEVEL', E\_ALL ^ E\_NOTICE ^ E\_STRICT);

admin/action.php

Find:

error\_reporting(E\_ALL ^ E\_NOTICE);

Change to:

error\_reporting(E\_ALL ^ E\_NOTICE ^ E\_STRICT);

core/common/PilotData.class.php

Find (~line 436)

public static function saveAvatar($code, $pilotid, $\_FILES)

Change to:

public static function saveAvatar($code, $pilotid, $files)

 

core/classes/CodonModule.class.php

Find:

public static $post; public static $get; 

Change to:
    

public $post; public $get; 

core/classes/Vars.class.php

Find:

self::$get =  new stdClass(); 

Add under it:  

self::$request = new stdClass();