FS_CHMOD_FILE

Posted in: Newspaper
Post count: 72

Dear TagDiv,
I have following messages in error log:
robime.it [Wed Nov 03 19:16:42.364303 2021] [php7:warn] [pid 412] [client 172.70.34.214:45424] PHP Warning: Use of undefined constant FS_CHMOD_FILE – assumed ‘FS_CHMOD_FILE’ (this will throw an Error in a future version of PHP) in /data/c/b/cb70c92a-4223-4bdc-bdff-9445dc18a7ad/robime.it/web/wp-admin/includes/class-wp-filesystem-direct.php on line 164

robime.it [Wed Nov 03 19:16:42.364328 2021] [php7:warn] [pid 412] [client 172.70.34.214:45424] PHP Warning: chmod() expects parameter 2 to be int, string given in /data/c/b/cb70c92a-4223-4bdc-bdff-9445dc18a7ad/robime.it/web/wp-admin/includes/class-wp-filesystem-direct.php on line 173

These links might help to resolve it. What is your recommendation?
https://wpml.org/forums/topic/use-of-undefined-constant-fs_chmod_dir/
https://wordpress.stackexchange.com/questions/253274/use-of-undefined-constant-fs-chmod-dir-assumed-fs-chmod-dir

Post count: 21065

Hello!

You should investigate the lines in that file: class-wp-filesystem-direct.php from the errors and then you can search a possible solution for your issue.

Thank you!

Post count: 72
Post count: 21065

Hello!

I just tell you above what you should do. Also, you can give it a try and maybe these links can help you.

Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.