skip to Main Content

My hoster forced me to upgrade my WordPress site because it was fairly old. I decided to upgrade to PHP 8.1. It caused issues with the website, so I figured I’d rebuild the whole website since it’s a simple website. I deleted all the existing files and uploaded the 5.8.2 WordPress install files. Then I changed all the permissions to 0755. I created a fresh database for the install.

At first, the setup would appear. I would go through the install, but when I clicked install after entering all the database info, I got "There has been a critical error on this website." I recreated the .htaccess file to the default and tried again. Now I get this error just hitting the domain, no more setup screens. The site does redirect to the /wp-admin/setup-config.php file. I don’t have a wp-config.php file in the directory, just the sample one. I tried creating a wp-config.php with the correct info, but same error. I also tried adding the debug options, increasing PHP memory, etc. Same error. I don’t get any error logs.

Does anyone now how to get an error log or can help with ideas on how to create a fresh WordPress site? I did change the PHP versions to older ones, but that didn’t work either.

4

Answers


  1. Chosen as BEST ANSWER

    There was something wrong on the hosting side. The source of the issue was indeed that WordPress could not write to the config file. Even the hoster was unable to delete the files. We ended up deleting the entire root directory and starting from scratch. Now it's all good.

    The lesson learned is that one of the sources of the "There has been a critical error on this website." error is that WordPress is unable to write/edit files. It's also why it could not write an error log. WordPress could have been more descriptive here.


  2. You need to take a backup of your file ,then fallow the fallowing instruction.

    • Rename your plugin one by one and refresh the website.
      this issue due to the unsupported plugin ,that is installed in your wordpress website.
    Login or Signup to reply.
  3. 1- Make a backup copy of the files and from the old database

    2- After that, download these files on your PC

    3- Install WordPress again

    4- Replace the wp-content file with the old one

    5- Clean the new database and import the old database through phpMyAdmin

    Login or Signup to reply.
  4. I solved that problem installing an older version of Xampp, with previous version of php, MySQL and Apache. I give up version 8.1.1

    XAMPP 7.4.27 / PHP 7.4.27
    https://www.apachefriends.org/download.html

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search