# Fatal error

**URL:** <https://forum.infinityfree.com/t/fatal-error/86745>\
**Category:** Hosting Support\
**Created:** [November 26, 2023, 8:35am UTC](https://forum.infinityfree.com/t/fatal-error/86745 "2023-11-26T08:35:53Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eldorean](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/eldorean/32/21700_2.png) [@Eldorean](https://forum.infinityfree.com/u/Eldorean)\
**Post date:** [November 26, 2023, 8:35am UTC](https://forum.infinityfree.com/t/fatal-error/86745/1 "2023-11-26T08:35:53Z")

</div>

Hi everyone!  
Please help resolve the following error:

Website: GNOSIS.GE

Error Message:

**Fatal error** : Uncaught Error: Undefined constant “‘FORCE\_SSL\_ADMIN’” in /home/vol11\_1/epizy.com/epiz\_30773473/htdocs/wp-config.php:87 Stack trace: #0 /home/vol11\_1/epizy.com/epiz\_30773473/htdocs/wp-load.php(50): require\_once() #1 /home/vol11\_1/epizy.com/epiz\_30773473/htdocs/wp-blog-header.php(13): require\_once(‘/home/vol11\_1/e…’) #2 /home/vol11\_1/epizy.com/epiz\_30773473/htdocs/index.php(17): require(‘/home/vol11\_1/e…’) #3 {main} thrown in **/home/vol11\_1/epizy.com/epiz\_30773473/htdocs/wp-config.php** on line **87**

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [November 26, 2023, 8:51am UTC](https://forum.infinityfree.com/t/fatal-error/86745/2 "2023-11-26T08:51:07Z")

</div>

Take note

> [@How to fix a corrupted WordPress installation](https://forum.infinityfree.com/t/how-to-fix-a-corrupted-wordpress-installation/49359/):
>
> WordPress frequently releases updates, which you can install through WordPress’ admin interface. Usually, this works without a hitch. But with some (big) upgrades, the upgrade fails half way and leaves you with a broken website. Fortunately, you can still fix your website without any data loss, and this article tells you how to do that. Download a fresh copy of WordPress First of all, you will need to download a fresh copy of WordPress. You can download this from the official WordPress website…

> [@Installation failed: There has been a critical error on your website](https://forum.infinityfree.com/t/installation-failed-there-has-been-a-critical-error-on-your-website/49361/):
>
> WordPress supports installing and updating plugins and themes from the official store right through the WordPress admin interface. However, after trying to install or update a large plugin (like WooCommerce) or theme, you may encounter an error like this: Installation failed: There has been a critical error on your website. Please check your site admin email inbox for instructions. Learn more about debugging in WordPress. This error means that the installation process crashed, and may have l…

> [@How to install, setup and update WordPress correctly](https://forum.infinityfree.com/t/how-to-install-setup-and-update-wordpress-correctly/68099/):
>
> Do you often see this on your WordPress website? [image] If so you may need to change some of the installation settings. Installing WordPress For Fresh Installation Make sure you are using the following settings when using Softaculous Install Existing Installation You can access your existing installation via Followed by Make sure these are the settings used On the WordPress config To play safe, add this line to the wp-config.php …

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [November 26, 2023, 11:36am UTC](https://forum.infinityfree.com/t/fatal-error/86745/3 "2023-11-26T11:36:34Z")

</div>

That doesn’t seem like a WordPress corruption to me, but more like an error in your wp-config.php.

Looking at the documentation from WordPress, the `FORCE_SSL_ADMIN` setting could be set in the wp-config.php file to enforce SSL. But it should only ever be _set_, not _used_ there, which your code appears to be doing.

> **[Administration Over SSL](https://wordpress.org/documentation/article/administration-over-ssl/#to-force-ssl-logins-and-ssl-admin-access)**
>
> To easily enable (and enforce) WordPress administration over SSL, there are two constants that you can define in your site’s wp-config.php file. It is not sufficient to define these constants in a plugin file; they must be defined in your...

Did you try to set the `FORCE_SSL_ADMIN` parameter in your wp-config.php? If so, could you please share what code you added exactly?

---

<div class="post-metadata">

**Author:** ![Eldorean](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/eldorean/32/21700_2.png) [@Eldorean](https://forum.infinityfree.com/u/Eldorean)\
**Post date:** [November 26, 2023, 12:02pm UTC](https://forum.infinityfree.com/t/fatal-error/86745/4 "2023-11-26T12:02:11Z")

</div>

Thanks for the reply. No I haven’t done anything. The website crushed suddenly by itself. I don’t really know what exactly is there to fix.

---

<div class="post-metadata">

**Author:** ![Eldorean](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/eldorean/32/21700_2.png) [@Eldorean](https://forum.infinityfree.com/u/Eldorean)\
**Post date:** [November 26, 2023, 1:48pm UTC](https://forum.infinityfree.com/t/fatal-error/86745/5 "2023-11-26T13:48:01Z")

</div>

I tried to upload new Wordpress and now I have new error:

**Fatal error** : Uncaught Error: Call to undefined function wp() in /home/vol11\_1/epizy.com/epiz\_30773473/htdocs/wp-blog-header.php:16 Stack trace: #0 /home/vol11\_1/epizy.com/epiz\_30773473/htdocs/index.php(17): require() #1 {main} thrown in **/home/vol11\_1/epizy.com/epiz\_30773473/htdocs/wp-blog-header.php** on line **16**

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [November 26, 2023, 4:48pm UTC](https://forum.infinityfree.com/t/fatal-error/86745/6 "2023-11-26T16:48:13Z")

</div>

> [@Eldorean](#):
>
> I tried to upload new Wordpress

It doesn’t seem like you uploaded a complete and correct copy of WordPress. Or some files failed to transfer so you may have ended up with a corrupted copy of WordPress.

If you want to fix this existing installation, you can do so like this:

> [@How to fix a corrupted WordPress installation](https://forum.infinityfree.com/t/how-to-fix-a-corrupted-wordpress-installation/49359):
>
> WordPress frequently releases updates, which you can install through WordPress’ admin interface. Usually, this works without a hitch. But with some (big) upgrades, the upgrade fails half way and leaves you with a broken website. Fortunately, you can still fix your website without any data loss, and this article tells you how to do that. Download a fresh copy of WordPress First of all, you will need to download a fresh copy of WordPress. You can download this from the official WordPress website…

---

<div class="post-metadata">

**Author:** ![Eldorean](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/eldorean/32/21700_2.png) [@Eldorean](https://forum.infinityfree.com/u/Eldorean)\
**Post date:** [November 26, 2023, 5:38pm UTC](https://forum.infinityfree.com/t/fatal-error/86745/7 "2023-11-26T17:38:28Z")

</div>

I downloaded wp-content folder via filezilla, then I reinstalled Wordpress and uploaded the content folder again. However now I see only sample theme on my website, no content, no files, no users. I have checked database settings in wp-config and it seems correct. I also checked wp-content folder and my old files are all there. Any idea what might fix this?

Edit: In Scriptinstall I see a completely different database info from what I see on MySQL, which is confusing.

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [November 26, 2023, 6:55pm UTC](https://forum.infinityfree.com/t/fatal-error/86745/8 "2023-11-26T18:55:23Z")

</div>

> [@Eldorean](#):
>
> Any idea what might fix this?
> 
> Edit: In Scriptinstall I see a completely different database info from what I see on MySQL, which is confusing.

You’ve pretty much answered your own question.

If you installed a fresh copy of WordPress, you most likely got a new database too, or at least a new set of tables, which contain all the content and settings of your site.

As long as the database and tables were not deleted, you can still recover them. But it’s a bit more complicated.

And there is a reason why the guide I linked to does not say to reinstall anything.

The goal is to update the wp-config.php of your site so it uses the database tables of your previous site. That, along with your wp-content folder, should restore your old site.

So I can give you appropriate instructions, can you please tell:

- Did you reinstall WordPress with Softaculous or by hand?
- Did you delete or overwrite old WordPress files when reinstalling?
- Did you create a new database when installing WordPress (Softaculous does this by default, but you don’t have to when installing by hand) or reuse your existing database?

---

<div class="post-metadata">

**Author:** ![Eldorean](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/eldorean/32/21700_2.png) [@Eldorean](https://forum.infinityfree.com/u/Eldorean)\
**Post date:** [November 27, 2023, 5:52am UTC](https://forum.infinityfree.com/t/fatal-error/86745/9 "2023-11-27T05:52:45Z")

</div>

To answer your questions:

1. I reinstalled WordPress with Softaculous
2. Before installing I downloaded wp-content folder and deleted everything in htdocs (mainly because when I tried to overwrite Wordpress files I got an error of not enough quota)
3. Softaculous created wp-config where the database username and password were different from MySQL on infinityfree, so I changed it manually to the existed one.

Edit: One thing to note, I was not able to log in with my Wordpress account to the wp-admin, it said my account did not exist. When softaculous installed new Wordpress I think it re-created my account.

---

<div class="post-metadata">

**Author:** ![Herbert](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/herbert/32/43603_2.png) [@Herbert](https://forum.infinityfree.com/u/Herbert)\
**Post date:** [November 27, 2023, 6:01am UTC](https://forum.infinityfree.com/t/fatal-error/86745/10 "2023-11-27T06:01:26Z")

</div>

Hey there, Is your problem solved now?

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [November 27, 2023, 6:02am UTC](https://forum.infinityfree.com/t/fatal-error/86745/11 "2023-11-27T06:02:30Z")

</div>

> [@Eldorean](#):
>
> I was not able to log in with my Wordpress account to the wp-admin

You can do it via Softaculous

---

<div class="post-metadata">

**Author:** ![Eldorean](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/eldorean/32/21700_2.png) [@Eldorean](https://forum.infinityfree.com/u/Eldorean)\
**Post date:** [November 27, 2023, 1:56pm UTC](https://forum.infinityfree.com/t/fatal-error/86745/12 "2023-11-27T13:56:55Z")

</div>

Hey. No, far from it…

---

<div class="post-metadata">

**Author:** ![Herbert](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/herbert/32/43603_2.png) [@Herbert](https://forum.infinityfree.com/u/Herbert)\
**Post date:** [November 27, 2023, 2:01pm UTC](https://forum.infinityfree.com/t/fatal-error/86745/13 "2023-11-27T14:01:00Z")

</div>

Can you please tell me the issue you are having at the moment?

---

<div class="post-metadata">

**Author:** ![Eldorean](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/eldorean/32/21700_2.png) [@Eldorean](https://forum.infinityfree.com/u/Eldorean)\
**Post date:** [November 27, 2023, 2:08pm UTC](https://forum.infinityfree.com/t/fatal-error/86745/14 "2023-11-27T14:08:10Z")

</div>

My website was down for some reason. It seemed the Wordpress update gone wrong. So I downloaded my wp-content folder, deleted everything in htdocs, then installed Wordpress again with Softaculous and re-uploaded content folder. But my old website is gone and I only see new, sample theme. No posts, no pictures, no users, nothing…

---

<div class="post-metadata">

**Author:** ![Herbert](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/herbert/32/43603_2.png) [@Herbert](https://forum.infinityfree.com/u/Herbert)\
**Post date:** [November 27, 2023, 2:11pm UTC](https://forum.infinityfree.com/t/fatal-error/86745/15 "2023-11-27T14:11:56Z")

</div>

First check for the old database, where your old posts are stored.

And if you can please share the website’s link

---

<div class="post-metadata">

**Author:** ![Eldorean](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/eldorean/32/21700_2.png) [@Eldorean](https://forum.infinityfree.com/u/Eldorean)\
**Post date:** [November 27, 2023, 2:22pm UTC](https://forum.infinityfree.com/t/fatal-error/86745/16 "2023-11-27T14:22:18Z")

</div>

It’s Gnosis.ge

I think in wp-config I have set the old database settings but still nothing.  
(could you please read the thread from the beginning so that you have a better idea how I ended up in this situation? 😃 )

---

<div class="post-metadata">

**Author:** ![Herbert](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/herbert/32/43603_2.png) [@Herbert](https://forum.infinityfree.com/u/Herbert)\
**Post date:** [November 27, 2023, 3:24pm UTC](https://forum.infinityfree.com/t/fatal-error/86745/17 "2023-11-27T15:24:32Z")

</div>

Sorry for the late reply, I’ve read your issue. And according to it, this Is what I can tell you.

Ensure that you’ve replaced the correct `htdocs` folder. Confirm that you’ve copied the old WordPress files into the correct directory where your new WordPress installation is expecting them.

Also,

If your old WordPress installation used a different database prefix than the new one, it can cause issues. Ensure that the `wp-config.php` file in the old WordPress files matches the correct database prefix.

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [November 27, 2023, 8:08pm UTC](https://forum.infinityfree.com/t/fatal-error/86745/18 "2023-11-27T20:08:24Z")

</div>

Thank you for the information.

If you installed a new copy of WordPress with Softaculous, then Softaculous will have created a new database, which is different from the database of your old site. But we can link your new WordPress installation to the old database to basically restore it to how it was before.

### Update the database name

First you need to find the name of the database.

Start by going into the file manager and checking the wp-config.php file. In it is the `DB_NAME` setting.

Then in the client area or control panel, you can see the list of MySQL Databases. You should have two values there: one which is the database of your old site, and one which is the new site.

The database in the wp-config.php is currently one of those two databases. You’ll want to change it to the other one.

### Update the table prefix

WordPress supports having multiple installations in the same database. To keep them separate, WordPress prefixes every database with a prefix like `wp1Bc_`.

Open the database for your old site, and look for the prefix, the same value that’s before every table name.

Then, go back to the wp-config.php file, and find the `$table_prefix` setting. Update that value to match the prefix you found in the database.

* * *

That’s it! If you updated both settings to the correct value, and the database is in-tact, you should now be able to open your website and see all your pages and settings!

---

<div class="post-metadata">

**Author:** ![Eldorean](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/eldorean/32/21700_2.png) [@Eldorean](https://forum.infinityfree.com/u/Eldorean)\
**Post date:** [November 28, 2023, 7:15am UTC](https://forum.infinityfree.com/t/fatal-error/86745/19 "2023-11-28T07:15:20Z")

</div>

Thank you for the reply. Upon checking the info the prefix of the table matches my old database. Upon checking the tables in the database I see that old posts are erased and are replaced by the sample, hello world, etc. only 5 posts are there while it should have been 20 or more.  
Could it be that new installation wrote over the old database and is now erased?  
And can my backup wp-content folder do something in that case?

---

<div class="post-metadata">

**Author:** ![Herbert](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/herbert/32/43603_2.png) [@Herbert](https://forum.infinityfree.com/u/Herbert)\
**Post date:** [November 28, 2023, 7:35am UTC](https://forum.infinityfree.com/t/fatal-error/86745/20 "2023-11-28T07:35:24Z")

</div>

> [@Eldorean](#):
>
> Could it be that new installation wrote over the old database and is now erased?

Yeah it could be.

> [@Eldorean](#):
>
> And can my backup wp-content folder do something in that case?

I don’t think so. If you haven’t dumped the database with the wp-content folder, you can’t retrieve the database data.

[Next page](https://forum.infinityfree.com/t/fatal-error/86745.md?page=2)
