Wordpress Warning: require_once(C:\Inetpub\vhosts\example.com\httpdocs/wp-includes/widgets/class-wp-widget-media.php): failed to open stream: No such file or directory

Created:

2017-06-14 12:16:52 UTC

Modified:

2017-08-11 17:49:12 UTC

2

Was this article helpful?


Have more questions?

Submit a request

Wordpress Warning: require_once(C:\Inetpub\vhosts\example.com\httpdocs/wp-includes/widgets/class-wp-widget-media.php): failed to open stream: No such file or directory

Symptoms

1. Website shows 500 error.

2. The following error is displayed at Websites & Domains > example.com > WordPress:

Wordpress PHP Warning: require_once(C:\Inetpub\vhosts\example.com\httpdocs/wp-includes/widgets/class-wp-widget-media.php): failed to open stream: No such file or directory in C:\Inetpub\vhosts\example.com\httpdocs\wp-includes\default-widgets.php on line 23 Warning: require_once(C:\Inetpub\vhosts\example.com\httpdocs/wp-includes/widgets/class-wp-widget-media.php): failed to open stream: No such file or directory in C:\Inetpub\vhosts\example.com\httpdocs\wp-includes\default-widgets.php on line 23 PHP Fatal error: require_once(): Failed opening required 'C:\Inetpub\vhosts\example.com\httpdocs/wp-includes/widgets/class-wp-widget-media.php' (include_path='C:\Program Files (x86)\Parallels\Plesk\Additional\wp-cli\vendor/phpunit/php-token-stream;C:\Program Files (x86)\Parallels\Plesk\Additional\wp-cli\vendor/phpunit/phpunit-mock-objects;C:\Program Files (x86)\Parallels\Plesk\Additional\wp-cli\vendor/phpunit/php-code-coverage;C:\Program Files (x86)\Parallels\Plesk\Additional\wp-cli\vendor/phpunit/phpunit;C:\Program Files (x86)\Parallels\Plesk\Additional\wp-cli\vendor/symfony/yaml;.;.\includes;.\pear') in C:\Inetpub\vhosts\example.com\httpdocs\wp-includes\default-widgets.php on line 23 Fatal error: require_once(): Failed opening required 'C:\Inetpub\vhosts\example.com\httpdocs/wp-includes/widgets/class-wp-widget-media.php' (include_path='C:\Program Files (x86)\Parallels\Plesk\Additional\wp-cli\vendor/phpunit/php-token-stream;C:\Program Files (x86)\Parallels\Plesk\Additional\wp-cli\vendor/phpunit/phpunit-mock-objects;C:\Program Files (x86)\Parallels\Plesk\Additional\wp-cli\vendor/phpunit/php-code-coverage;C:\Program Files (x86)\Parallels\Plesk\Additional\wp-cli\vendor/phpunit/phpunit;C:\Program Files (x86)\Parallels\Plesk\Additional\wp-cli\vendor/symfony/yaml;.;.\includes;.\pear') in C:\Inetpub\vhosts\example.com\httpdocs\wp-includes\default-widgets.php on line 23

Cause

Missing C:\Inetpub\vhosts\example.com\httpdocs\wp-includes\widgets\class-wp-widget-media.php file.

Resolution

1. Copy the missing file from another WordPress installation.

2. Go to Websites & Domains > example.com > WordPress and click Synchronize button.

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