I'm running a Gulp 4 / Webpack 4 project using gulp-connect-php and out of nowhere I'm getting errors for all my includes... but... the files are still serving fine locally with no PHP errors in the view.
These two error lines for each and every include when I run npm start:
[Tue Mar 19 20:30:38 2019] PHP Warning: include(svgs/logo_aeg.php): failed to open stream: No such file or directory in E:\Sites\proj\html\web\includes\menus.php on line 13 [Tue Mar 19 20:30:38 2019] PHP Warning: include(): Failed opening 'svgs/logo_aeg.php' for inclusion (include_path='.;C:\php\pear') in E:\Sites\proj\html\web\includes\menus.php on line 13
The way I'm including is this (though I've tried every relative and absolute version, even placing a define root in a config.php file):
<?php include $_SERVER["DOCUMENT_ROOT"] . '/includes/include_file.php' ?>
I've done nothing that I know of except try to install (unrelated) openSSL. This is a Windows 10 machine and it's been working fine. I haven't done an yarn upgrade or otherwise changed my config so I'm stumped.
I'm also not a PHP expert so I could be making a dumb mistake.