A few days ago my PuPHPet-Box started throwing PHP-Errors after editing a file and refreshing the browser. Seems like the file get's locked after editing & saving:
Warning: include_once(/var/www/xxx/wp-content/plugins/xxx/public/views/filters.php): failed to open stream: Input/output error in /var/www/xxx/wp-content/plugins/xxx/admin/class-xxx.php on line 1309
Warning: include_once(): Failed opening '/var/www/xxx/wp-content/plugins/xxx/public/views/filters.php' for inclusion (include_path='.:/usr/share/php') in /var/www/xxx/wp-content/plugins/xxx/admin/class-xxx.php on line 1309
After refreshing the browser multiple times (about 3-5 times), the error is gone.
The file exists, it just has been changed. Also it's not matter what file is changed, the error comes back.
Here is the line referenced in the warning:
/**
* Renders the view that displays the filters
*
* @since 0.1.0
*/
public function recipe_filters() {
include_once WP_PLUGIN_DIR . '/xxx/public/views/filters.php';
}
I'm using PhpStorm (2017.3.3), PuPHPet and WordPress (4.9.3) on OSX (10.13.3).
Any help highly appreciated.