Title: Git it Write PHP error Memory exhausted
Last modified: November 18, 2023

---

# Git it Write PHP error Memory exhausted

 *  [carlosaleono](https://wordpress.org/support/users/carlosaleono/)
 * (@carlosaleono)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/git-it-write-php-error-memory-exhausted/)
 * I´ve been using your plugin git it write, it allows me to upload almost 30000
   blogs in the last week, thank you for that. Now I’m updating the blogs with backlinks
   but ran into this error;
 * PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate
   8192 bytes) in /wordpress/core/6.4.1/wp-includes/class-wpdb.php on line 2320
 * I already tried deactivating all the other plugins, clearing the cache and updating
   the blogs in small batches but the error continues to pop up.
 * Thanks in advance for your help.

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

 *  Plugin Author [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/git-it-write-php-error-memory-exhausted/#post-17212368)
 * Hi [@carlosaleono](https://wordpress.org/support/users/carlosaleono/),
 * Thanks for using GIW. Happy that you like it.
 * The error you have shared means that server ran out of memory trying to publish
   the posts. 30,000 is a lot of posts.
 * This would happen even when you try to import posts. This is something beyond
   the plugin’s scope.
 * My suggestions would be,
    1. To increase server memory – [https://wordpress.org/support/topic/fatal-error-allowed-memory-size-126/](https://wordpress.org/support/topic/fatal-error-allowed-memory-size-126/),
       [https://www.wpbeginner.com/wp-tutorials/fix-wordpress-memory-exhausted-error-increase-php-memory/](https://www.wpbeginner.com/wp-tutorials/fix-wordpress-memory-exhausted-error-increase-php-memory/)
    2. Or pull the wordpress posts using GIW in small batches in multiple tries. The
       plugin won’t re-publish posts if it is already there. There should be some progress
       this way. One all posts are published, then future changes shouldn’t be that
       memory intensive.
 * I’m also curious to know your website URL and the github repo if possible to 
   see how the plugin is used.
 * Thanks,
 * Aakash
 *  Thread Starter [carlosaleono](https://wordpress.org/support/users/carlosaleono/)
 * (@carlosaleono)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/git-it-write-php-error-memory-exhausted/#post-17215754)
 * Hi [@vaakash](https://wordpress.org/support/users/vaakash/), thank you for your
   answer.
 * I already have the maximum value of memory allowed from WordPress and I was uploading
   them in small batches but a few days ago it stopped working.
 * This is the website [https://infoinstitute.wpcomstaging.com/](https://infoinstitute.wpcomstaging.com/)
 * Also when pulling, it erases the pages I made in wordpress like blog and glossary
   for example, is there a way to make that stop?
 * Thanks in advance.
 *  Plugin Author [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/git-it-write-php-error-memory-exhausted/#post-17216671)
 * Hi [@carlosaleono](https://wordpress.org/support/users/carlosaleono/),
 * In that, there is no way to stop that error. This is resource crunch problem 
   and beyond the plugin’s control 🙁
 * I would suggest to retry the pull slowly even if fails. Once all posts are published
   this wouldn’t be needed.
 * Regarding certain posts getting deleted, that is not expected. The plugin does
   not delete any page. What is the github url and the page which is getting deleted?
 * Thanks,
 * Aakash

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

The topic ‘Git it Write PHP error Memory exhausted’ is closed to new replies.

 * ![](https://ps.w.org/git-it-write/assets/icon.svg?rev=2362025)
 * [Git it Write - Write posts from GitHub](https://wordpress.org/plugins/git-it-write/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/git-it-write/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/git-it-write/)
 * [Active Topics](https://wordpress.org/support/plugin/git-it-write/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/git-it-write/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/git-it-write/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [vaakash](https://wordpress.org/support/users/vaakash/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/git-it-write-php-error-memory-exhausted/#post-17216671)
 * Status: not resolved