On localhost, if the option Rebuild registery is selected then each time theme registery is called a php message appears in differents drupal core files:

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 98304 bytes) in C:\Users\...\modules\system\system.admin.inc on line 1194

I didn't know this error but I've search in PHP environment and in my new subtheme, as it is a copy of an previous one.

I've cleared the cache but it wasn't the solution.

The only solution is to disable the option Rebuild registery in the theme.

Comments

star-szr’s picture

Title: Rebuild registery: Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 98304 bytes) » Rebuild registry: Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 98304 bytes)
Category: Bug report » Support request
Issue tags: -Drupal 7.26, -rebuil registery, -Allowed memory size

It looks like your PHP memory limit is set to 64MB, I'd recommend increasing that if possible (128MB should do it). Enabling the option to rebuild the theme registry on each page is more taxing on memory. You may also find you'd prefer to clear your cache/theme registry manually when needed (when adding new template, preprocess function, etc.) rather than enabling this option.

https://drupal.org/requirements/php
https://drupal.org/node/207036

Christopher James Francis Rodgers’s picture

Status: Active » Closed (fixed)

@ Cottser: Well put; good job.

@kalamityjane: I assume this is no longer an issue for you.

In the case of my using "Acquia dev desktop" for "Local" Drupal use,
the PHP limit starts out set at 256mb,
and that makes me wonder if you had purposefully set
your AMP-stack php limit to 64mb for some reason.

I would recommend that you not set your limit above 128mb

My online shared web-host only allows me
a limit of 128mb with my standard rate plan,
so you might want to keep that in mind,
and not set your limit 'local'-ly to some insanely high number
in the eventuality that you too will someday go 'online',
where there will be some limit on the PHP-limit you will be allowed.

If you are still looking for how to change the php-limit,
I wrote a step-by-step long-ago,
which is referenced on the second of the two links
that Cottser gave above:

Drupal 7 "Fatal error: Allowed memory size of ..."
https://drupal.org/node/76156#comment-4582924

Sahil Gupta’s picture

You can use a module to control this memory limit as well. PHP Runtime Configurator module provides many options to configure without changing your php.ini file and restart Apache.
You can configure following parameters:

- File Upload Limit
- Memory Limit
- Maximum Execution Time Limit
- Maximum Input Variable Limit