Title: error wp-admin\includes\file.php on line 918
Last modified: September 1, 2016

---

# error wp-admin\includes\file.php on line 918

 *  [ichijang](https://wordpress.org/support/users/ichijang/)
 * (@ichijang)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/error-wp-adminincludesfilephp-on-line-918/)
 * Hi support,
 * I have this error message
 * warning: fileperms() [function.fileperms]: stat failed for c:\Domains\mydomain\
   wwwroot/in c:\Domains\mydomain\wwwroot\wp-admin\includes\file.php on line 918.
 * I have checked in
 * // Set the permission constants if not already set.
    if ( ! defined(‘FS_CHMOD_DIR’))_**
   define(‘FS\_CHMOD\_DIR’, ( fileperms( ABSPATH ) & 0777 | 0755 ) );**_ if ( ! 
   defined(‘FS_CHMOD_FILE’) ) define(‘FS_CHMOD_FILE’, ( fileperms( ABSPATH . ‘index.
   php’ ) & 0777 | 0644 ) );
 * Please advise how to solve this issue.
    Thanks.

Viewing 1 replies (of 1 total)

 *  [cedcommerce](https://wordpress.org/support/users/cedcommerce/)
 * (@cedcommerce)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/error-wp-adminincludesfilephp-on-line-918/#post-7544506)
 * Hello ichijang
    The issue is probably due to index.php and .htaccess not being
   copied corectly (or at all). please follow the thread [https://wordpress.org/support/topic/fileperms-stat-failed](https://wordpress.org/support/topic/fileperms-stat-failed)
   hope this will help you

Viewing 1 replies (of 1 total)

The topic ‘error wp-admin\includes\file.php on line 918’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [cedcommerce](https://wordpress.org/support/users/cedcommerce/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/error-wp-adminincludesfilephp-on-line-918/#post-7544506)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
