Site keeps crashing with undefined function and odd .pgp extension from wp-settings.php

I am currently working on a site and it’s crashing intermittently. In the debug.log, it shows an undefined function caused it.

The weird issue is that it’s a core WordPress function that is undefined and the wp-settings.php is trying to require a ‘.pgp’ file extension instead of the ‘.php’ file. There is nothing changed inside of the wp-settings.php file

The following has already been done:
– Malware Scan
– Reset SFTP/SSH password
– Reinstall WordPress
– Reset Salts
– Updated all plugins and themes
– Ran checksums on plugins and WordPress core
– Updated Server
– Enable object caching

The site requires PHP to be restarted to come back online. Although, the site 500s randomly, I can break it by continuously saving a custom taxonomy.

Has anyone ever experienced this? Or know why the wp-settings.php file would suddenly try to require a file by the wrong file extension?

Any help is appreciated.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer