Title: Warning: require(&#8230;/wp-includes/compat.php) [function.require]: failed to open
Last modified: August 19, 2016

---

# Warning: require(…/wp-includes/compat.php) [function.require]: failed to open

 *  [gallardomark](https://wordpress.org/support/users/gallardomark/)
 * (@gallardomark)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/warning-requirewp-includescompatphp-functionrequire-failed-to-open/)
 * Warning: require(/home/markg87n/public_html/wp-includes/compat.php) [function.
   require]: failed to open stream: Permission denied in /home/markg87n/public_html/
   wp-settings.php on line 246
 * please help!

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/warning-requirewp-includescompatphp-functionrequire-failed-to-open/#post-1167375)
 * Please stop posting the same question.
 * [http://wordpress.org/support/topic/297506?replies=3](http://wordpress.org/support/topic/297506?replies=3)
 *  [Sid Savara](https://wordpress.org/support/users/sidsavara/)
 * (@sidsavara)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/warning-requirewp-includescompatphp-functionrequire-failed-to-open/#post-1167592)
 * I solved this issue on my blog.
 * These “Permission denied in” errors are typically the same – chmod is not set
   properly on PHP files
 * Using an FTP client (I used FileZilla) is the easiest way and works for any host
   I have. If you are familiar with shells and have access, just go chmod the file
   to 755. Otherwse, here is how you do it in FileZilla
 * 1) Open Filezilla and connect via ftp
    2) Browse to the directory the file is
   located (/home/markg87n/public_html/wp-includes/) 3) Right click the file an 
   set the following: Owner permissions: Read, Write, Execute Group Permissions:
   Read, Execute (leave Write unchecked) Public Permissions: Read, Execute (leave
   Write unchecked)
 * At the bottom, the “numeric value” reads 755. If you prefer you can just directly
   type 755 in the box instead of ticking checkboxes
 * try it out, and if that doesn’t fix it – you may have to set permissions on more
   files. Keep refreshing, see the different error messages and plow through it.
 * Good luck =)

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

The topic ‘Warning: require(…/wp-includes/compat.php) [function.require]: failed
to open’ is closed to new replies.

## Tags

 * [compat.php](https://wordpress.org/support/topic-tag/compat-php/)
 * [failed to open stream](https://wordpress.org/support/topic-tag/failed-to-open-stream/)
 * [permission denied](https://wordpress.org/support/topic-tag/permission-denied/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [Sid Savara](https://wordpress.org/support/users/sidsavara/)
 * Last activity: [16 years, 8 months ago](https://wordpress.org/support/topic/warning-requirewp-includescompatphp-functionrequire-failed-to-open/#post-1167592)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
