On a small Drupal site I'm building, I'm getting a 500 internal server error/memory size exhausted, regardless of the memory limit I set in the local php.ini. (I'm on Bluehost and have tried changing where php.ini is read from, etc.)
The error text is:
PHP Fatal Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 71 bytes) in /site_home/includes/theme.inc on line 98
Theme.inc line 98 is "$base_theme[] = $themes[$ancestor];" so I thought it must have something to do with a Bartik subtheme I was trying to build. Since I hadn't even enabled it yet, I thought I'd be safe just deleting the subtheme folder, but that didn't fix the issue.
I tried resetting the default theme to garland using the following SQL (which I found at http://drupal.org/node/200774):
UPDATE system SET status=1 WHERE name = 'garland';
UPDATE variable SET value='s:7:"garland"' WHERE name = 'theme_default';
TRUNCATE cache;
That didn’t work, so I tried disabling the base Bartik theme via the database as well using the same syntax:
UPDATE system SET status=0 WHERE name = 'bartik';
No dice … still getting the same error on line 98 of theme.inc, and I'm not sure what to do next.
I even tried taking the bartik folder from a fresh Drupal download and replacing the existing one with it. Same error.