• Resolved Royah Marie

    (@hautecreations)


    Hello,

    I did not find a recent post relating to this issue. It seems like every day I have a new error or warning on my dashboard. Today’s issue is:

    Warning: chmod(): No such file or directory in /home4/hautecr2/public_html/delicatefabrics/wp-admin/includes/class-wp-filesystem-direct.php on line 173

    I literally had this error appear 20 times within ONE MINUTE.

    What does this mean and how do I fix it?

    Please and thank you!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @hautecreations

    It’s not the WooCommerce issue, this warning is caused by the WordPress file system attempting to change the permissions of a file or directory that does not exist. The warning itself will not cause any problems on your site, but it’s important to resolve the underlying issue to prevent further errors. Here’s a step-by-step guide to address this warning:

    1- Ensure the file and directory permissions are correct on your server. The typical permissions for WordPress files should be set to 644, and for directories, they should be 755. You can modify these permissions using an FTP client like FileZilla or through your hosting control panel’s File Manager.

    2- Make sure you are using a recent PHP version supported by WordPress (ideally PHP 7.4 or higher). Many issues can be resolved by simply updating to the latest PHP version.?

    3- Check if there are old or redundant files related to a previously deleted or inactive plugin/theme. If you find any, delete the unused files to prevent any conflicts or errors.

    4- Open the file mentioned in the error message (class-wp-filesystem-direct.php) and navigate to line 173. You may notice a function call such as?chmod, which attempts to change the file permissions. Examine the file path given to this function to identify where the issue is originating.


    Let me know how that goes!

    Thread Starter Royah Marie

    (@hautecreations)

    Thank you for your response. I am digesting this information and will try this when I have uninterrupted time so I don’t make a mistake. I will update my progress no later than next week.

    Hi,

    The command known as chmod, which stands for ‘change mode’, is utilized for overseeing file system access permissions on systems such as Unix or Linux. You can use chmod to set up writing, reading and execute file permissions.

    It is possible there is a plugin conflict, that will need to run a conflict test to help you find the cause of the issue.

    Let us know how that goes.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Warning: chmod(): No such file or directory in…/wp-admin/includes/class-wp-fil’ is closed to new replies.