Title: PHP allowed size error
Last modified: August 30, 2016

---

# PHP allowed size error

 *  Resolved [imemine](https://wordpress.org/support/users/imemine/)
 * (@imemine)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/php-allowed-size-error/)
 * Hi,
 * Getting this
 * `Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate
   72 bytes) in /home/*NAME*/public_html/ada/wp-includes/wp-db.php on line 2255`
 * on trying to create a backup.
 * Even 256MB isn’t enough?
 * [https://wordpress.org/plugins/wp-database-backup/](https://wordpress.org/plugins/wp-database-backup/)

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

 *  [Prashant Walke](https://wordpress.org/support/users/walkeprashant/)
 * (@walkeprashant)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/php-allowed-size-error/#post-6452137)
 * Hi,
 * 256M is really a lot of memory. Changing the memory limit is really putting a
   bandage on the problem.
    Remove everything unnecessary.
 * There may be your site have large database and for processing large database 
   it’s give memory error.
 * Try to increase memory and late me know in case any issue.
 * You can override this by defining WP_MAX_MEMORY_LIMIT in wp-config.php:
 * define( ‘WP_MAX_MEMORY_LIMIT’ , ‘512M’ );
 *  [Prashant Walke](https://wordpress.org/support/users/walkeprashant/)
 * (@walkeprashant)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-allowed-size-error/#post-6452225)
 * Hi,
 * Is your issue resolved?
 *  [Prashant Walke](https://wordpress.org/support/users/walkeprashant/)
 * (@walkeprashant)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/php-allowed-size-error/#post-6452241)
 * Hope you are doing well.
 * Let me know in case any issue.
 *  Thread Starter [imemine](https://wordpress.org/support/users/imemine/)
 * (@imemine)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/php-allowed-size-error/#post-6452242)
 * Hey Prashant,
 * Thanks 🙂
 * I didn’t know you cared this much.
 * Closing this now.
 * Thanks
 *  [dwheeler](https://wordpress.org/support/users/dwheeler/)
 * (@dwheeler)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/php-allowed-size-error/#post-6452254)
 * I have
    define(‘WP_MEMORY_LIMIT’, ‘1024M’); and I’m still getting the error.
 * It is a large database. Are there limits to the program?
 *  [Prashant Walke](https://wordpress.org/support/users/walkeprashant/)
 * (@walkeprashant)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/php-allowed-size-error/#post-6452255)
 * Hi,
 * If database size is very large then this issue is occurred.
 * I will try to find alternative solution for large database or divide sql dump
   in to number of dump.
 * I will try on test server and let you know.

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

The topic ‘PHP allowed size error’ is closed to new replies.

 * ![](https://ps.w.org/wp-database-backup/assets/icon-256x256.png?rev=2838048)
 * [WP Database Backup - Unlimited Database & Files Backup by Backup for WP](https://wordpress.org/plugins/wp-database-backup/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-database-backup/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-database-backup/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-database-backup/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-database-backup/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-database-backup/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Prashant Walke](https://wordpress.org/support/users/walkeprashant/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/php-allowed-size-error/#post-6452255)
 * Status: resolved