Title: Fatal Error &#8211; template.php
Last modified: August 19, 2016

---

# Fatal Error – template.php

 *  Resolved [stubbyd](https://wordpress.org/support/users/stubbyd/)
 * (@stubbyd)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-templatephp-1/)
 * I last succesfully logged in to my blog yesterday.
 * Tried to login tonight and I’m getting:
 * > Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate
   > 122880 bytes) in /public_html/wp-admin/includes/template.php on line 2572
 * However on looking at line 2572 (programmers editor) I can’t see anything that
   makes any sense to me! But then I’m no programmer either.
 * I tried searching but can only find references to changing my wp-settings.php
   memory size. Did that and no difference was made either.
 * Any suggestions please?

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

 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-templatephp-1/#post-1173227)
 * > tried searching but can only find references to changing my wp-settings.php
   > memory size. Did that and no difference was made either.
 * that IS the solution, and done properly, it works.
 *  Thread Starter [stubbyd](https://wordpress.org/support/users/stubbyd/)
 * (@stubbyd)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-templatephp-1/#post-1173234)
 * Apologies if this sounds rude …
 * … but as I stated – I have already searched both google and the forum here with
   no success.
 *  Thread Starter [stubbyd](https://wordpress.org/support/users/stubbyd/)
 * (@stubbyd)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-templatephp-1/#post-1173250)
 * I’ve now fixed this.
 * Used another search engine which found a post in this forum …
 * My solution was to add
 * php_value memory_limit 32M
 * to my .htaccess file.
 * The post I found has several options you can try – your mileage may vary but 
   the post is here:
 * [http://wordpress.org/support/topic/235026?replies=4](http://wordpress.org/support/topic/235026?replies=4)
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-templatephp-1/#post-1173253)
 * its not rude at all, actually. And I owe you an apology — that setting change
   should have been made inside your wp-config.php not the wp-settings.php in order
   to work.
 * My sincerest apology.
 * the .htaccess bit does exactly the same thing.

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

The topic ‘Fatal Error – template.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [whooami](https://wordpress.org/support/users/whooami/)
 * Last activity: [16 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-templatephp-1/#post-1173253)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
