Luca Puggioni
Luca Puggioni

Reputation: 53

Warning: fileperms(): stat failed for

i've one wordpress installation on /lp folder, when i finished the website i moved it to the root, everything works fine except one plugin "Global Gallery" that gave me an error (you can see here http://www.cagliaridinamoacademy.com/gallery/)

At the line 935 of file.php there is this code:

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

How can I fix it? Thank you

Upvotes: 5

Views: 13816

Answers (3)

RAUSHAN KUMAR
RAUSHAN KUMAR

Reputation: 6006

Did you mean to install WordPress in a subdirectory? If so read through this to verify correct installation install WordPress in a subdirectory

or, If you meant to install WordPress in the root directory follow the steps install WordPress in the root directory:

You will get a reference from here

Upvotes: 1

The problem usually appears when WordPress is installed in a subfolder. You can solve this by simply installing an empty index.php in the subfolder. This is because the "file.php" looks for an index.php in the subfolder, but does not exist. Just create a blank index.php.

Font: https://www.soldato.de/wordpress-fehlermeldung-bei-plugin-installation-warning-fileperms/

Upvotes: 4

Harpreet Singh
Harpreet Singh

Reputation: 979

Either set plugin Path going inside plugin folder or set WP_DEBUGto FALSE in wp-config.php file

define( 'WP_DEBUG', false );

Upvotes: -1

Related Questions