# Critical error on wp-admin page

**URL:** <https://forum.infinityfree.com/t/critical-error-on-wp-admin-page/71891>\
**Category:** Hosting Support\
**Created:** [February 2, 2023, 3:04pm UTC](https://forum.infinityfree.com/t/critical-error-on-wp-admin-page/71891 "2023-02-02T15:04:30Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [February 2, 2023, 6:39pm UTC](https://forum.infinityfree.com/t/critical-error-on-wp-admin-page/71891/4 "2023-02-02T18:39:29Z")

</div>

It’s very strange, normally the error logs should be displayed on the page.

Fortunately, there are some other parameters to tweak, specifically `WP_DEBUG_DISPLAY` and `WP_DEBUG_LOG`. I tried enabling both on your website and still nothing was visible on the page. But it did create a file in wp-content/debug.log, with the message:

```auto
[02-Feb-2023 18:36:34 UTC] PHP Fatal error: require_once(): Failed opening required '/XXX/wp-admin/includes/upgrade.php' (include_path='.:/usr/share/pear/') in /XXX/wp-admin/upgrade.php on line 22

```

So it does look like some files are missing from your site. Please add the missing files, preferrably through the method described in [How to fix a corrupted WordPress installation](https://forum.infinityfree.com/t/how-to-fix-a-corrupted-wordpress-installation/49359/).

---

_[View the full topic](https://forum.infinityfree.com/t/critical-error-on-wp-admin-page/71891)._
