Title: Fix Allocation Memory Fetal Error
Last modified: August 20, 2016

---

# Fix Allocation Memory Fetal Error

 *  Resolved [shahzadsmb](https://wordpress.org/support/users/shahzadsmb/)
 * (@shahzadsmb)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/fix-allocation-memory-fetal-error/)
 * > Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate
   > 491520 bytes) in /home/mukhbirc/public_html/addon/nabtron/technab/wp-content/
   > themes/thesis_17/lib/classes/options_site.php on line 851
 * Well this error is nothing new for many of us. To fix this error, simply follow
   this:
 * **1. Goto your wordpress root directory**
 * Either login via ftp or use the filemanager if your web host provides you with
   this feature (to get a cpanel based hosting click here).
 * **2. Edit the config file**
 * In your wordpress 3.0 installation root folder, find the file named:
 * config.php
 * Open the file to be edited in your favorite editor
 * **3. Add the code to file and save**
 * Add this code to your config.php file ( type it manually if it don’t work on 
   copy / paste )
 * define(‘WP_MEMORY_LIMIT’, ’64M’);
 * **after the lines :**
 * /** Database Charset to use in creating database tables. */
    define(‘DB_CHARSET’,‘
   utf8’);
 * /** The Database Collate type. Don’t change this if in doubt. */
    define(‘DB_COLLATE’,”);
 * Save the file and refresh your wordpress page and it should not give the error
   again.
 * If the error still appears then try changing 64M to 128M.
 * Let me know if error still persists.
 * Thanks to [ITWeL](http://itwel.com) fixing the problem.

The topic ‘Fix Allocation Memory Fetal Error’ is closed to new replies.

## Tags

 * [fetal error](https://wordpress.org/support/topic-tag/fetal-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [shahzadsmb](https://wordpress.org/support/users/shahzadsmb/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/fix-allocation-memory-fetal-error/)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
