Title: Template.php broken . . .
Last modified: August 30, 2016

---

# Template.php broken . . .

 *  Resolved [musbkc](https://wordpress.org/support/users/musbkc/)
 * (@musbkc)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/templatephp-broken/)
 * Please help me out here. I have two sites that are broken due to this issue!
 * Thanks . . .
 * Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate
   7680 bytes) in /home/worships/public_html/wp-admin/includes/template.php on line
   1876
 * kcjulieclark.com
    worshipstaffing.com mycrossroads.co/beta/

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

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [10 years, 9 months ago](https://wordpress.org/support/topic/templatephp-broken/#post-6253111)
 * Looks like you’ve fixed one of them.
 * Try deactivating all of your plugins to explore whether any could be responsible.
 *  [accuwebhosting](https://wordpress.org/support/users/accuwebhosting/)
 * (@accuwebhosting)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/templatephp-broken/#post-6253114)
 * Hi,
 * Please try following suggestions:
 * 1. Try adding this line to your wp-config.php file:
    define(‘WP_MEMORY_LIMIT’,‘
   128M’);
 * 2. If you have access to your PHP.ini file, change the line in PHP.ini
    If your
   line shows 32M try 128M: memory_limit = 128M ; Maximum amount of memory a script
   may consume (128M)
 * If you do not access to php.ini, contact your webhost they will help you to raise
   the php memory limit.
 * Thanks,
 *  Thread Starter [musbkc](https://wordpress.org/support/users/musbkc/)
 * (@musbkc)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/templatephp-broken/#post-6253115)
 * hey [@andrew](https://wordpress.org/support/users/andrew/) I think that worked...
   i disabled several plug-ins and it fixed the issue.
 * THanks
    KC
 *  [loriwildman](https://wordpress.org/support/users/loriwildman/)
 * (@loriwildman)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/templatephp-broken/#post-6253460)
 * Accuwebhosting, where in the wp-config.php file would I add that line? I need
   to do that for my site as well, but have no idea where the right location is 
   to insert it!

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

The topic ‘Template.php broken . . .’ is closed to new replies.

## Tags

 * [bytes exhausted](https://wordpress.org/support/topic-tag/bytes-exhausted/)
 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [template.php](https://wordpress.org/support/topic-tag/template-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 4 participants
 * Last reply from: [loriwildman](https://wordpress.org/support/users/loriwildman/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/templatephp-broken/#post-6253460)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
