If your website is suddenly displaying the error message “There has been a critical error on this website,” it might be due to a change in the PHP language on your internally hosted server. This change could be a result of an update you made or an update implemented by the hosting company without your knowledge. Here’s how you can fix it:
Login to cPanel: Access your hosting account’s cPanel using your username and password.
Navigate to Software Section: In cPanel, find the “Software” section.
Select PHP Version: Look for an option called “Select PHP Version” and click on it. This will take you to the PHP Selector page.
Choose PHP Version: In the PHP Selector page, use the dropdown menu to select the appropriate PHP version for your website.
Apply Changes: After selecting the PHP version, click “Apply” to save your changes.
Refresh Your Website: After applying the changes, wait a few seconds, then refresh your website to see if the issue has been resolved.
there has been a critical error on this website
Following these steps should help you resolve the critical error on your website caused by changes in the server’s PHP language.