I tried to do some theming changes but I did not do it correctly and caused a fatal error. Now instead of the standard blue Drupal home screen, I have an all white screen that says the same things as the normal screen did but I can nnot get past my home page without it sayins fatal error. There is a red box on the screen with the follwing text:
* warning: array_map() [function.array-map]: Argument #2 should be an array in C:\xampplite\htdocs\drupal\modules\system\system.module on line 1015.
* warning: array_keys() expects parameter 1 to be array, null given in C:\xampplite\htdocs\drupal\includes\theme.inc on line 1817.
* warning: Invalid argument supplied for foreach() in C:\xampplite\htdocs\drupal\includes\theme.inc on line 1817.
Is there any way to fix this problem? Or can I just restore the defaults and start over?? I tried to re-download the drupal software and start over but it said I already had an existing account and brought me back to the error page.
Please help me,
Brandon
Comments
You should be able to regain
You should be able to regain access to your site by specifying a default theme in your settings.php. Can't help with the theme issue though...usually a matter of trial and error commenting things out until I discover the culprit when something like that happens to me...
Some more specific info, and perhaps the code of the file you were working on when everything broke might help.
Judging from the nature of
Judging from the nature of the error, you're supposed to have an array somewhere that you do not. Do you know what files specifically that you made changes to..? If so, post the code. Also, the first error references line 1015 of system.module, which is where a list of your theme's regions is built. What's in your .info file..?
edit: Ok, this is so freaking strange... I was just installing a development site and got the same exact errors as you. Totally random. In my case, it's because my installation profile selected a theme that doesn't actually exist. Make sure you're theme name didn't change (specifically whatever your .info file is named, e.g. mytheme.info). I can almost guarantee that your problem is Drupal having the default theme set to something that doesn't exist.
If you have access to the DB, check for 'theme_default' in the variables table.