mkdir errors

[Tue Apr 01 02:00:35 2014] [error] [client 10.128.28.16] PHP Warning: mkdir(): No such file or directory in /opt/.webpagetest.versions/webpagetest_2.13/www/work/resultimage.php on line 58 [Tue Apr 01 02:00:35 2014] [error] [client 10.128.28.16] PHP Warning: move_uploaded_file(./results/14/04/01/Y9/1G/video_9/frame_0029.hist): failed to open stream: No such

I noticed these errors and realized it hadn’t build the 04/01 directory. What is responsible for making this directory? Should this code be making that directory rather than relying on a scheduled job to do it?

The directory for the test should be created as soon as the test itself is created (in runtest.php). It would be really bizarre to start getting results for a test that wasn’t yet created. It’s possible that something came in and deleted it before the test ran but the archiving script shouldn’t do that.