Wordpress - error starting site

0

Wordpress site of a colleague's client went out of the loop.

Message entering website:

  

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 think it's because wordpress is looking for the file with the local path, but I do not know how to change it, can anyone help me, please?

    
asked by anonymous 20.03.2015 / 15:53

1 answer

1

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

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

  • Directory does not exist (probably your case)

  • Directory permissions / files are wrong

  • In both cases the quickest and easiest solution is:

  • Delete the wp-includes folder (if it exists).
  • Download the br.wordpress.org installation package again
  • Unzip the package and upload only the wp-includes folder via FTP without connecting as root (this avoids permission errors).
  • Check that the permissions of the wp-includes folder and subfolders are 755 and 644 files.
  • The 3 and 4 are a bit different if your server is Windows.

        
    21.03.2015 / 03:05