1

I keep geting this error message on every page request:

Fatal error: Allowed memory size of 167772160 bytes exhausted (tried to allocate 36 bytes) in C:\wamp\www\mydrupal2\includes\theme.inc on line 98
Call Stack
#   Time    Memory  Function    Location
1   0.0100  142240  {main}( )   ..\index.php:0
2   0.0220  449448  drupal_bootstrap( ) ..\index.php:20
3   0.2050  3025040 _drupal_bootstrap_full( )   ..\bootstrap.inc:2259
4   0.6290  15508712    drupal_theme_initialize( )  ..\common.inc:5144

Increasing memory allowance has not had any effects. I try using drush to disable the offending theme or go back to the last working one, it's the same error message. I can't even use drush for anything else. It reports the same error message. I tried the SQL method on this drupal.org page. Same result.

9
  • Roll back your site from backup, using the backup you created just before you enabled the custom theme. Jun 19, 2014 at 19:07
  • In your message the memory limit is about 160Mb, this is usally too low, have tried incrementing to 512Mb or 1024Mb just to test? If you have disabled the theme using the SQL method linked then your error is not comming form the theme, did you enable any other module before?
    – sanzante
    Jun 19, 2014 at 19:15
  • I think the problem is now from the drupal itself and not the theme. I suggest you clear the cache and restart the server and see if that would help. Jun 19, 2014 at 19:33
  • @FreeRadical I don't have a backup
    – okey_on
    Jun 19, 2014 at 21:08
  • @AhmedJabar I can't do anything on drupal, even with drush. It's always this error message.
    – okey_on
    Jun 19, 2014 at 21:09

1 Answer 1

0

theme.inc on line 98 is trying to collect theme's ancestors.

My bet is that your custom theme is wrong and it's telling Drupl that is a subtheme of itself, making Drupal the enter in an infinte loop that exhausts memory.

Double check your custom theme configuration or just move it away from Drupal directories so Drupal can't process it.

4
  • I have moved custom theme directory from drupal installation. Still no luck.
    – okey_on
    Jun 20, 2014 at 0:58
  • Same erorr in the same theme.inc?
    – sanzante
    Jun 20, 2014 at 10:49
  • yes. Same error message.
    – okey_on
    Jun 20, 2014 at 18:43
  • Then this is not the right answer. Sorry, I have no more ideas :(
    – sanzante
    Jun 22, 2014 at 21:01

Not the answer you're looking for? Browse other questions tagged or ask your own question.