First error is showing because you're using PHP7.
For example if you have this class:
PHP Code:
class something
{
function something()
{
//your code here
}
}
then it should look like this:
PHP Code:
class something
{
function __construct()
{
//your code here
}
}
Change the line: function something() to function __construct() or you can even define an empty __construct method within the class.
Second error is showing because you have declared a function twice.
And the last error is showing because that the function array_keys() only accept an array as its first argument.