Jump to content

Site errors


Nabeel

Recommended Posts

  • Administrators

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

 

Link to comment
Share on other sites

  • Nabeel pinned this topic

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