Title: Potential memory allocation issue
Last modified: September 20, 2025

---

# Potential memory allocation issue

 *  Resolved [p15h](https://wordpress.org/support/users/prestonwordsworth/)
 * (@prestonwordsworth)
 * [8 months, 3 weeks ago](https://wordpress.org/support/topic/potential-memory-allocation-issue/)
 * Thank you for creating this most useful plugin!
 * I’m not actually sure TablePress is the issue here. But since it got mentioned
   in the log of php-fpm, I wondered if this suggests a possible culprit to you:
 * > [20-Sep-2025 06:14:53 UTC] PHP Fatal error: Allowed memory size of 536870912
   > bytes exhausted (tried to allocate 4295229440 bytes) in /usr/local/apache/htdocs/
   > wp-includes/theme.php on line 325
   > Stack trace: 0 /usr/local/apache/htdocs/wp-
   > content/plugins/tablepress/libraries/freemius/start.php(105): get_template()#
   > 1 /usr/local/apache/htdocs/wp-content/plugins/tablepress/tablepress.php(62):
   > require_once(‘…’) 2 /usr/local/apache/htdocs/wp-content/plugins/tablepress/
   > tablepress.php(92): tb_tp_fs()#3 /usr/local/apache/htdocs/wp-settings.php(545):
   > include_once(‘…’) 4 /usr/local/apache/htdocs/wp-config.php(111): require_once(‘…’)
   > 5 /usr/local/apache/htdocs/wp-load.php(50): require_once(‘…’) 6 /usr/local/
   > apache/htdocs/wp-admin/admin-ajax.php(22): require_once(‘…’) 7 {main}
 * The 4GB memory it tried to allocate is puzzling.

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 months, 3 weeks ago](https://wordpress.org/support/topic/potential-memory-allocation-issue/#post-18649728)
 * Hi,
 * Thanks for your post and sorry for the trouble!
 * Indeed, it’s most likely not TablePress itself that’s causing this: TablePress
   is not allocating 4GB memory itself! What you are seeing here is that the limit
   that is defined in the PHP configuration is reached, and this limit is for the
   sum of all memory that is used, by WordPress, the theme, and all plugins, with
   all data that is used/loaded during that particular request. TablePress just 
   happens to be the plugin that’s running right at that moment when the limit is
   reached.
 * Now, this doesn’t mean that TablePress is not using PHP memory, of course! Depending
   on e.g. the size of your tables, it is possible that this plays a role. So, that’s
   worth checking, and I do recommend using a modern version of PHP, like PHP 8.4,
   as these need much less memory than older versions.
 * Best wishes,
   Tobias
 *  Thread Starter [p15h](https://wordpress.org/support/users/prestonwordsworth/)
 * (@prestonwordsworth)
 * [8 months, 3 weeks ago](https://wordpress.org/support/topic/potential-memory-allocation-issue/#post-18658509)
 * Thanks! Since TablePress is likely not the issue here, I’m closing the thread
   until I see it mentioned multiple times in similar situations.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/potential-memory-allocation-issue/#post-18659793)
 * Hi,
 * yes, if you can pinpoint this on actual memory usage by TablePress, please let
   me know!
 * Best wishes,
   Tobias

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

The topic ‘Potential memory allocation issue’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [8 months, 2 weeks ago](https://wordpress.org/support/topic/potential-memory-allocation-issue/#post-18659793)
 * Status: resolved