Cobra Forum

Plesk Panel => Webserver => Topic started by: Suhitha on Dec 26, 2025, 03:35 AM

Title: Plesk UI shows error: PHP Warning: require_once: failed to open stream: No such
Post by: Suhitha on Dec 26, 2025, 03:35 AM
Question: Plesk UI shows error: PHP Warning: require_once: failed to open stream: No such file or directory


Applicable to:


Symptoms


/var/www/vhosts/system/example.com/logs/error_log:

Error: PHP Warning: require_once(/var/www/vhosts/system/example.com/httpdocs/wp-includes/widgets/class-wp-widget-media.php): failed to open stream: No such file or directory in /var/www/vhosts/system/example.com/httpdocs/wp-includes/default-widgets.php on line 23

PHP Fatal error: require_once(): Failed opening required '/var/www/vhosts/system/example.com/httpdocs/wp-includes/widgets/class-wp-widget-media.php' (include_path='.;.\includes;.\pear') in /var/www/vhosts/system/example.com/httpdocs/wp-includes/default-widgets.php on line 23


[error] 305814#0: *853684 FastCGI sent in stderr: "PHP message: PHP Warning: fopen(/var/www/vhosts/example.com/httpdocs/wp-content/plugins/duplicate-page/duplicatepage.php): failed to open stream: No such file or directory in /var/www/vhosts/example.com/httpdocs/wp-includes/functions.php on line 478
502 Gateway error nginx
500 Internal Server Error

Cause

Missing files from the domain or files names were changed.


Resolution

1. Restore the website from backup using Plesk Backup Manager.

2. If there is no available backup in Plesk, contact the website developer in order to restore the files.