Title: Compat.php &#8211; PHP Fatal error
Last modified: May 9, 2019

---

# Compat.php – PHP Fatal error

 *  [joluitsme](https://wordpress.org/support/users/joluitsme/)
 * (@joluitsme)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/compat-php-php-fatal-error/)
 * Hello all,
 * I’m receiving the following error:
 * `[25-Feb-2019 15:15:47 UTC] PHP Fatal error: Allowed memory size of 536870912
   bytes exhausted (tried to allocate 268435464 bytes) in /var/www/html/blog/wp-
   includes/compat.php on line 181`
 * At first I thought it had something to do with the PHP_Memory_Limit but I already
   raised it from 64 to 128mb then to 256mb and now to 512mb. The result remains
   the same and I still get the error messages. The difference is the amount it 
   is trying to allocate. As I raise the limit so does the tried to allocate part.
 * In this example I had set the php_memory_limit to 256mb
    `[12-Feb-2019 05:15:
   48 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried
   to allocate 134217736 bytes) in /var/www/html/blog/wp-includes/compat.php on 
   line 181`
 * Does someone have a clue about what is causing this?
    -  This topic was modified 7 years, 2 months ago by [joluitsme](https://wordpress.org/support/users/joluitsme/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [7 years, 2 months ago](https://wordpress.org/support/topic/compat-php-php-fatal-error/#post-11245941)
 * Weird. something is trying to get 2GB.
 * This may be a plugin or theme conflict. Please attempt to disable all plugins,
   and use one of the default (Twenty*) themes. If the problem goes away, enable
   them one by one to identify the source of your troubles.
 * If you can install plugins, install “Health Check”: [https://wordpress.org/plugins/health-check/](https://wordpress.org/plugins/health-check/)
   On the troubleshooting tab, you can click the button to disable all plugins and
   change the theme for you, while you’re still logged in, **without affecting normal
   visitors to your site**. You can then use its admin bar menu to turn on/off plugins
   and themes one at a time.
 * See [http://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/](http://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/)
 *  [sudeepkalu](https://wordpress.org/support/users/sudeepkalu/)
 * (@sudeepkalu)
 * [7 years ago](https://wordpress.org/support/topic/compat-php-php-fatal-error/#post-11511929)
 * hello,
    I am getting this message on opening admin or site Warning: require(/
   home/iw999x2jj11o/public_html/wp-includes/sodium_compat/autoload.php): failed
   to open stream: No such file or directory in /home/iw999x2jj11o/public_html/wp-
   includes/compat.php on line 447
 * Fatal error: require(): Failed opening required ‘/home/iw999x2jj11o/public_html/
   wp-includes/sodium_compat/autoload.php’ (include_path=’.:/opt/alt/php56/usr/share/
   pear:/opt/alt/php56/usr/share/php’) in /home/iw999x2jj11o/public_html/wp-includes/
   compat.php on line 447
    Please anyone help
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [7 years ago](https://wordpress.org/support/topic/compat-php-php-fatal-error/#post-11512933)
 * [@sudeepkalu](https://wordpress.org/support/users/sudeepkalu/), If you need support
   then per the forum guidelines please start your own topic.
 * A lot more people will see your post, and that way you stand a good chance of
   getting the assistance you want. Despite any similarity in symptoms, your issue
   is likely to be completely different because of possible differences in physical
   servers, accounts, hosts, plugins, theme, configurations, etc. Thus one problem,
   on one setup is not indicative of the functionality and reliability of an application
   as a whole.
 * [https://wordpress.org/support/forum-user-guide/faq/#i-have-the-same-problem-can-i-just-reply-to-someone-elses-post-with-me-too](https://wordpress.org/support/forum-user-guide/faq/#i-have-the-same-problem-can-i-just-reply-to-someone-elses-post-with-me-too)
 * [https://wordpress.org/support/guidelines/#post-in-the-best-place](https://wordpress.org/support/guidelines/#post-in-the-best-place)
 * You can do so here:
 * [https://wordpress.org/support/forum/how-to-and-troubleshooting/#new-post](https://wordpress.org/support/forum/how-to-and-troubleshooting/#new-post)
 * I’ll be archiving your post and mine to not spam the original poster and detract
   from their question.
 * Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Compat.php – PHP Fatal error’ is closed to new replies.

## Tags

 * [compat.php](https://wordpress.org/support/topic-tag/compat-php/)
 * [memory_limit](https://wordpress.org/support/topic-tag/memory_limit/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/compat-php-php-fatal-error/#post-11512933)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
