Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.

Suddenly started getting an error finding mem.php


Suddenly started getting PHP error about failing to open a required file. Followed the path and the file was there, but I noticed in the error it was mixing forward and back slashes. I went to the line of code mentioned, and it appeared to assume that this was a Linux system. In the path it was building for the require path, it was adding ‘boot/mem.php’ to SYSPATH. I commented that line out and gave it a hard coded path. After that, everything worked.

//require_once SYSPATH . ‘boot/mem.php’;
require_once ‘C:\inetpub\wwwroot\testrail\sys\boot\mem.php’;

I didn’t change anything between Friday when it was working fine and today, so not sure why it broke.