Internal 500 error on Settings.php

Please follow the below template, it will help us to help you!

Should be able to view the Settings page but not able to browse it.

Actual Behaviour:

I click on the Settings link on the left and I am met with an internal 500 error. I tried a repair, tried removing the settings.php file so the repair recreates it. No luck. Getting an error in the logs along the line of "Can't use function return value in write context" on line 14 in settings.php

Debug Token:

tymejppjvm

Have you disabled SELinux? I don't see any PHP errors in your log (except for date() warnings).

Yes, selinux is disabled. Everything else on the WebUI works fine except for the settings.

Here is the error I see in the log. Maybe it helps or maybe its from the date() warning.

2017-08-13 08:46:06: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Fatal error: Can' t use function return value in write context in /var/www/html/admin/settings.php on line 14

Here is line 14 from settings.php

    return !empty(shell_exec(sprintf("which %s", escapeshellarg($cmd))));

EDIT
I was able to get it working by reverting the core and web back to the master branch. Forgot I was using the dev branch.