Support » Plugins » Error: "Warning: fileperms() [function.fileperms]: stat failed …" line 871

  • Completely fresh install of 3.8.1 (en_GB).

    Got an error when installing the first plugin.

    Full error message is:

    Warning: fileperms() [function.fileperms]: stat failed for /home/innercit/public_html/tecset/index.php in /home/innercit/public_html/tecset/wp-admin/includes/file.php on line 871

    Line 871 is:

    define('FS_CHMOD_FILE', ( fileperms( ABSPATH . 'index.php' ) & 0777 | 0644 ) );

    So I’m assuming it’s a file permission issue.

    I was seeing this on some old sites, and figured it might be some plugin clash BUT this site is a completely fresh install, and I get the error on the very first plugin I install.

    Sites still work, plugin still installs successfully, but this error is popping up. What’s the story?


Viewing 9 replies - 1 through 9 (of 9 total)
  • I have the same error after update.

    do you have wordpress in its own subdirectory ?

    I just did a fresh install, moved it to a sub, started installing plugins (not activate them yet) and saw the same error.

    I got the same error and it started when I moved my WP installation to a sub directory.

    Noted that I didn’t have the index.php in the new folder, copied that from the root and after the plugin updates seem to work.

    I don’t think this has been resolved. There are a lot of people reporting it. I am getting it each time I update any of my plugins or themes. I think it started after an update of 3.8X platform. My error occurred here: wp-admin/includes/file.php on line 871 Although it seems to occur in different files for different people.

    Hello WordPress any word for us on how to fix this?

    Thank you so much,
    The site I’m referring to specifically is

    I should add my WP install is – and always has been – in a sub directory.
    So may try moving an index file around but wonder why this suddenly started happening after an update.

    @tim and @westernwoman if you installed wordpress in a subdirectory and moved index.php in root directory (because of changing your url from to probably you forget that you should just copy index.php from subdirectory to root (i think you moved that). now if you copy your index.php and httaccess from root to subdirectory which wordpress is there problem would be solved.

    dont forget to edit index.php

    Dear all, I’ ve done everything that you said above but….
    I continue to visualize nothing!!!
    How can I verify the correct operation of the SLIMStat plugin?

    Thanks @mohammadshaker 😉

    Did you copy or move the index.php? You must COPY, not move it. Read below link to the documentation:

    Hope this helps!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Error: "Warning: fileperms() [function.fileperms]: stat failed …" line 871’ is closed to new replies.