Hello,
We upgraded from windows server 2008 R2 to windows server 2016 earlier this year. It is a completely new install. We updated Codeigniter as well as the PHP version. Everything has been running fine for the most part. However, ever since implementing this upgrade we have been getting these random 500 errors. Sometimes it is weekly on the same day, sometimes it is every other day or the same day. It is always at random times. I have checked and there are no errors with IIS. To fix the issue we recycle the application pool.
We updated PHP again recently and I discovered that I could swap back to the old PHP version and it would fix the issue then after some time I could swap back to the new version and the issue was resolved as if we recycled the app pool.
Sometimes the issue will resolve itself within an hour or a couple hours however, this is usually not the case. This is driving me crazy as I have no clue what the issue is and have exhausted all of my resources. I have the CodeIgniter and PHP logs and will post the errors of the latest times it has happened. Any help will be greatly appreciated.
---PHP errors log---
[07-Sep-2018 01:16:04 America/Denver] PHP Fatal error: require_once(): Failed opening required 'C:/projects/tcgpgm/system/core/Output.php' (include_path='.;C:\php\pear') in C:\projects\tcgpgm\system\core\Common.php on line 163
[07-Sep-2018 22:58:09 America/Denver] PHP Warning: require_once(C:\proje): failed to open stream: No such file or directory in C:\projects\tcgpa\system\core\CodeIgniter.php on line 72
[07-Sep-2018 22:58:09 America/Denver] PHP Fatal error: require_once(): Failed opening required 'C:\projects\tcgpa\application\config/constants.php' (include_path='.;C:\php\pear') in C:\projects\tcgpa\system\core\CodeIgniter.php on line 72
[10-Sep-2018 17:19:49 America/Denver] PHP Warning: require_once(C:\projects\tcgpa): failed to open stream: Permission denied in C:\projects\tcgpa\system\core\CodeIgniter.php on line 80
[10-Sep-2018 17:19:49 America/Denver] PHP Fatal error: require_once(): Failed opening required 'C:/projects/tcgpa/system/core/Common.php' (include_path='.;C:\php\pear') in C:\projects\tcgpa\system\core\CodeIgniter.php on line 80
[10-Sep-2018 17:20:09 America/Denver] PHP Fatal error: Uncaught Error: Call to undefined function is_php() in C:\projects\tcgpa\system\core\CodeIgniter.php:89
Stack trace:
#0 C:\projects\tcgpa\index.php(293): require_once()
#1 {main}
thrown in C:\projects\tcgpa\system\core\CodeIgniter.php on line 89
[10-Sep-2018 21:40:09 America/Denver] PHP Warning: require_once(C:\projects\tcgpa\application\co): failed to open stream: No such file or directory in C:\projects\tcgpa\system\core\CodeIgniter.php on line 72
[10-Sep-2018 21:40:09 America/Denver] PHP Fatal error: require_once(): Failed opening required 'C:\projects\tcgpa\application\config/constants.php' (include_path='.;C:\php\pear') in C:\projects\tcgpa\system\core\CodeIgniter.php on line 72
[12-Sep-2018 22:39:39 America/Denver] PHP Fatal error: require_once(): Failed opening required 'C:/projects/tcgpgm/system/core/Config.php' (include_path='.;C:\php\pear') in C:\projects\tcgpgm\system\core\Common.php on line 163
---CodeIgnitor errors log---
ERROR - 2018-09-07 01:16:04 --> Severity: Warning --> require_once(C:\projects\tcgpgm): failed to open stream: Permission denied C:\projects\tcgpgm\system\core\Common.php 163
ERROR - 2018-09-07 01:16:04 --> Severity: Compile Error --> require_once(): Failed opening required 'C:/projects/tcgpgm/system/core/Output.php' (include_path='.;C:\php\pear') C:\projects\tcgpgm\system\core\Common.php 163
ERROR - 2018-09-07 01:16:24 --> Severity: error --> Exception: Class 'CI_Output' not found C:\projects\tcgpgm\system\core\Common.php 196
ERROR - 2018-09-12 22:39:39 --> Severity: Warning --> require_once(C:\proje): failed to open stream: No such file or directory C:\projects\tcgpgm\system\core\Common.php 163
ERROR - 2018-09-12 22:39:39 --> Severity: Compile Error --> require_once(): Failed opening required 'C:/projects/tcgpgm/system/core/Config.php' (include_path='.;C:\php\pear') C:\projects\tcgpgm\system\core\Common.php 163