'WordPress Failed opening required PHP error

  • I'm getting an error Failed opening required /home/developer/wp-includes/rest-api/fields/class-wp-rest-term-meta-fields.php error, the path is correct and the file actually exist.

  • this is the output of the stat command

File: ‘/home/developer/wp-includes/rest-api/fields/class-wp-rest-term-meta-fields.php’
  Size: 1241            Blocks: 8          IO Block: 4096   regular file
Access: (0644/-rw-r--r--)  Uid: ( 1016/developer)   Gid: ( 1016/developer)
Access: 2022-03-23 13:06:54.482171741 -0400
Modify: 2021-05-25 09:12:58.000000000 -0400
Change: 2022-03-24 08:48:11.085251380 -0400
  • I also tried editing directories permissions to 775 and files to 664, but that didn't fix the issue


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source