I'm pretty new to Drupal, but took over a preconfigured site recently.
I noticed some of the admin pages weren't loading properly, so I attempted to switch the admin theme. The entire backend is now returning the same error:
Fatal error: Cannot redeclare adaptivetheme_admin_preprocess_page() (previously declared in /nas/webroot/mydomain.com/web/dev/themes/adaptivetheme/at_admin/template.php:6) in /nas/webroot/mydomain.com/web/dev/themes/adaptivetheme/at_admin/template.php on line 47
I found if I changed the name of the "at_admin" folder, I am temporarily able to access the backend (10 seconds or so). It's long enough to make a single change at a time, and I've tried disabling the adaptive theme entirely, but it still gives the same error. I can see the file it's referencing, but I'm unsure what it has to do with the entire backend not loading:
<?php
/**
* Override or insert variables into page templates.
*/
function adaptivetheme_admin_preprocess_page(&$vars) {
// RFC2822 date format
if ($rfc = date("r" , time())) {
$vars['datetime_rfc'] = t('@time', array('@time' => $rfc));
}
else {
$rfc = '';
$vars['datetime_rfc'] = '';
}
// ISO 8601 date format
if ($iso = gmdate('Y-m-d\TH:i:sO')) {
$vars['datetime_iso'] = $iso;
}
else {
$iso = '';
$vars['datetime_iso'] = '';
}