PHP Warning: require_once: failed to open stream: No such file or directory

Created:

2017-06-30 22:01:11 UTC

Modified:

2017-08-16 16:26:29 UTC

0

Was this article helpful?


Have more questions?

Submit a request

PHP Warning: require_once: failed to open stream: No such file or directory

Applicable to:

  • Plesk Onyx for Linux
  • Plesk Onyx for Windows

Symptoms

The following error is shown on Plesk Home page or can be found in /var/www/vhosts/system/example.com/logs/error_log :

Error: PHP Warning: require_once(E:\Data\example.com\httpdocs/wp-includes/widgets/class-wp-widget-media.php): failed to open stream: No such file or directory in E:\Data\example.com\httpdocs\wp-includes\default-widgets.php on line 23 Warning: require_once(E:\Data\example.com\httpdocs/wp-includes/widgets/class-wp-widget-media.php): failed to open stream: No such file or directory in E:\Data\example.com\httpdocs\wp-includes\default-widgets.php on line 23 PHP Fatal error: require_once(): Failed opening required 'E:\Data\example.com\httpdocs/wp-includes/widgets/class-wp-widget-media.php' (include_path='.;.\includes;.\pear') in E:\Data\example.com\httpdocs\wp-includes\default-widgets.php on line 23 Fatal error: require_once(): Failed opening required 'E:\Data\example.com\httpdocs/wp-includes/widgets/class-wp-widget-media.php' (include_path='.;.\includes;.\pear') in E:\Data\example.com\httpdocs\wp-includes\default-widgets.php on line 23

A website is not accessible:

502 Gateway error nginx

Cause

Missing PHP files.

Resolution

Contact website owner in order to restore the files.

Have more questions? Submit a request
Please sign in to leave a comment.