Wordpress - error starting site

Asked

Viewed 1,112 times

0

Wordpress site of a colleague’s client went down.

Message when entering the site:

PHP Warning: require(wp-includes/compat.php) [Function.require]: failed to open stream: No such file or directory in E: home tecnoservicebr web wp-Settings.php on line 71 PHP Warning: require(wp-includes/compat.php) [Function.require]: failed to open stream: No such file or directory in E: home tecnoservicebr web wp-Settings.php on line 71 PHP Fatal error: require() [Function.require]: Failed Opening required 'wp-includes/compat.php' (include_path='.;c: php5 includes') in E: home tecnoservicebr web wp-Settings.php on line 71

I imagine it is because wordpress is searching the file with the local path, however do not know change this, anyone can help me, please?

1 answer

1


The error is not of the Wordpress path. In wp_settings.php it calls this file with ABSPATH and so the path will always be right.

Usually compat.php errors are caused by some problem with the wp_includes directory. This file is the first that Wordpress tries to read from this directory and if the directory is with any problem triggers this error. There are two common mistakes:

  1. Directory does not exist (probably your case)

  2. Directory/file permissions are wrong

In both cases the fastest and simplest solution is:

  1. Delete wp-includes folder (if it exists).
  2. Download the installation package from br.wordpress.org again
  3. Unzip the package and only upload the wp-includes folder via FTP without connecting as "root" (this avoids permission errors).
  4. Check whether the permissions of the wp-includes folder and subfolders are 755 and the 644 files.

3 and 4 are a little different if your server is Windows.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.