Title: Fatal error: require() [function.require]: Failed opening required&#8230;
Last modified: August 19, 2016

---

# Fatal error: require() [function.require]: Failed opening required…

 *  [ianhill090776](https://wordpress.org/support/users/ianhill090776/)
 * (@ianhill090776)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-require-functionrequire-failed-opening-required/)
 * I just upgraded from 2.5 -> 2.7.1, tried logging in, and I’m getting the following
   error – which also is now appearing on my site. Help!!!
 * Warning: require(/home4/(server)/public_html/wp-includes/compat.php) [function.
   require]: failed to open stream: No such file or directory in /home4/(server)/
   public_html/wp-settings.php on line 246
 * Fatal error: require() [function.require]: Failed opening required ‘/home4/(server)/
   public_html/wp-includes/compat.php’ (include_path=’.:/usr/lib/php:/usr/local/
   lib/php’) in /home4/server/public_html/wp-settings.php on line 246

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [ianhill090776](https://wordpress.org/support/users/ianhill090776/)
 * (@ianhill090776)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-require-functionrequire-failed-opening-required/#post-1014969)
 * Disregard -> It was user error. Now fixed. 🙂
 *  [sbarbey](https://wordpress.org/support/users/sbarbey/)
 * (@sbarbey)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-require-functionrequire-failed-opening-required/#post-1015310)
 * could you please tell me what error you did, because I just did the same today,
   and I don’t know how to fix it… Thanks.
    I got that message when I try to log
   to [http://www.collimateur.fr/blog/wp-admin/](http://www.collimateur.fr/blog/wp-admin/):
 *     ```
       Warning: main(/homez.16/collimat/www/blog/wp-includes/compat.php) [function.main]: failed to open stream: No such file or directory in /homez.16/collimat/www/blog/wp-settings.php on line 246
   
       Fatal error: main() [function.require]: Failed opening required '/homez.16/collimat/www/blog/wp-includes/compat.php' (include_path='.:/usr/local/lib/php') in /homez.16/collimat/www/blog/wp-settings.php on line 246
       ```
   
 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-require-functionrequire-failed-opening-required/#post-1015311)
 * it means this file
    `compat.php` is not present or not in the correct location
 *  [RichDevman](https://wordpress.org/support/users/webdevoman/)
 * (@webdevoman)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-require-functionrequire-failed-opening-required/#post-1015344)
 * Geez,
 * That file is not in the package….I am having the same issue. I am about to remove
   that line of code..

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Fatal error: require() [function.require]: Failed opening required…’ 
is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 4 replies
 * 4 participants
 * Last reply from: [RichDevman](https://wordpress.org/support/users/webdevoman/)
 * Last activity: [16 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-require-functionrequire-failed-opening-required/#post-1015344)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
