So I am new to using Drupal. In fact i just installed Drupal 7 today. The first thing I did was download the Orange theme. That seamed to work ok. However Drupal told me it was not compatible with Drupal 7.
I installed it anyway. Now I see an error message.
•Notice: Undefined index: #attributes in orange_fieldset() (line 96 of /home/mysite/www/mysite/sites/all/themes/orange/template.php).
•Recoverable fatal error: Argument 1 passed to drupal_attributes() must be an array, null given, called in /home/mysite/www/mysite/sites/all/themes/orange/template.php on line 96 and defined in drupal_attributes() (line 2258 of /home/mysite/www/mysite/includes/common.inc).
At this point the only thing I want to do is uninstall Orange and select a different theme. I am not able to do this within Drupal. I am concerned because this error pops up on every area within the admin panel so I can completely locked out of Drupal. I cannot do anything.
How do I manually uninstall the theme?
How do I manually point to a new theme?
Comment | File | Size | Author |
---|---|---|---|
#2 | error.jpg | 105.29 KB | tol_drupal |
Comments
Comment #1
spineless CreditAttribution: spineless commentedComment #2
tol_drupal CreditAttribution: tol_drupal commentedHi,
Can you please help me to resolve this issue.
I got this message: Recoverable fatal error: Argument 1 passed to drupal_attributes() must be an array, string given, called in /srv/www/vhosts/prototype01.gateus.com/includes/theme.inc on line 1517 and defined in drupal_attributes() (line 2258 of /srv/www/vhosts/prototype01.gateus.com/includes/common.inc).
and am not able to work on drupal anymore..
here is the code fragment:
function theme_image($variables) {
$attributes = $variables['attributes'];
$attributes['src'] = file_create_url($variables['path']);
foreach (array('width', 'height', 'alt', 'title') as $key) {
if (isset($variables[$key])) {
$attributes[$key] = $variables[$key];
}
}
return '';
}
function drupal_attributes(array $attributes = array()) {
foreach ($attributes as $attribute => &$data) {
$data = implode(' ', (array) $data);
$data = $attribute . '="' . check_plain($data) . '"';
}
return $attributes ? ' ' . implode(' ', $attributes) : '';
}
P.S: Screenshot attached
Can anyone please help me to resolve this. Thanks in advance!
Comment #3
nomonstersinme CreditAttribution: nomonstersinme commentedI'm sorry but something must have went wrong with the git migration.. I will fix it when i have time. sorry for an inconvenience..
Comment #4
jeffwidman CreditAttribution: jeffwidman commentedsubscribe
Comment #5
nomonstersinme CreditAttribution: nomonstersinme commentedThis is all set now in 7.x-1.x or 7.x-1.1 sorry about that!