Hi all, I'm a Drupal newbie trying to teach myself how to run the system in preparation for some projects I'll be working on in the future.
I have a local installation of Drupal on my MacBook running under MAMP. Last night, I tried to upgrade from version 6 to version 6.3. I read the instructions in the update file, and thought I was doing everything just fine. When I ran upgrade.php, the system didn't report any errors. However, when I went to administer the site, none of the themes would show, and I saw the following errors at the top of my page:
* warning: array_map() [function.array-map]: Argument #2 should be an array in /Applications/MAMP/htdocs/drupal/modules/system/system.module on line 975.
* warning: array_keys() [function.array-keys]: The first argument should be an array in /Applications/MAMP/htdocs/drupal/includes/theme.inc on line 1720.
* warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/drupal/includes/theme.inc on line 1720.
What do these mean, and is this something that can be easily fixed without a fresh installation? Thanks!
Comments
After upgrading to 6.4, I
After upgrading to 6.4, I found that somehow all my themes had been 'disabled' and I had to re-enable via checkboxes the ones I was using in admin/build/themes. Try checking that out and see if it's the same problem.
Thank you!
That did it for me! - I guess I would have searched for a couple of extra hours without that hint!
Same Error but fix didnt work ...
hi there,
i got the same error, but the fix to go directly to the admin/build/themes ends up in this error-messages:
Anyone has help? My whole site is not workin anymore *arrghh :D
I think we've isolated the
I think we've isolated the problems:
#305653: Themes disabled during update - Fixes themes being disabled when update.php is run
#147000: Rewrite module_rebuild_cache() and system_theme_data() - Fixes the massive delete/inserts that happen on the system table
Hi! I had the same problem
Hi! I had the same problem that you are describing. Try to change your database password and then manually updating settings.php to reflect the new password. Hope it helps!
Thanks
This worked for me.
I think this will solve the problem
Open the file sites/default/settings.php
At the end of the file add:
global $custom_theme;
$custom_theme = 'garland';
Open a browser and go to your site e.g http://localhost/drupal. It will still (probably) complain about errors, but now you should have the possibility to login.
After logging in as administrator, go to Administer menu and then click on Themes link.
Click on "Reset To Defaults" button at the end of the page.
Click on "Save configuration" button.
Once again, open the file sites/default/settings.php
Remove the following:
global $custom_theme;
$custom_theme = 'garland';
Voila!
/rob
it did't work for me my
it did't work for me
my drupal is 6.4
any other solution ?
thanks
Nice Tip
This worked to get me back up, in and on. Now I just have to figure out how to get my custom theme back.
Thank you!
Thank you - it worked for me
I am so glad I found your suggestion for adding the two lines to the settings.php file. Who would have known. You saved days in troubleshooting.
I also now have to figure out how to regain my custom theme.
it works
goto http://site.drupal.loc/user (site.drupal.loc your drupal site)
this will display the login page
- login
- navigate to site building -> themes -> configure -> global settings
- scroll down to the bottom of the page click Reset to Defaults