Monday, June 8, 2015

wp-includes/link-template.php): failed to open stream: No such file or directory Fatal error


/wp-includes/link-template.php): failed to open stream: No such file or directory Fatal error: require(): Failed opening required '/home/vdgkldna/public_html//wp-includes/link-template.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/


seems it may be related to Clam AV. Which is an antivirus installed on the server.


Script-

#!/bin/bash
cd /home/username/public_html
find /home/username/public_html -type f -name '*.suspected' | while read f; do mv "$f" "${f%.suspected}"; done
Cron-

*/5 * * * * /root/wpfix.sh >/dev/null
Make sure to change "username" in the script code to the username of your cPanel user. If you don't use cPanel, you'll need to adjust the paths accordingly.
This will cause the system to search for files named something.php.suspected, and rename them to something.php.

No comments:

Post a Comment

free counters

Total Pageviews

Music blogs Check PageRank