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?

CommentFileSizeAuthor
#2 error.jpg105.29 KBtol_drupal
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

spineless’s picture

Priority: Critical » Minor
tol_drupal’s picture

Assigned: spineless » Unassigned
Priority: Minor » Normal
Status: Active » Needs work
FileSize
105.29 KB

Hi,

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 'Only local images are allowed.';
}

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!

nomonstersinme’s picture

I'm sorry but something must have went wrong with the git migration.. I will fix it when i have time. sorry for an inconvenience..

jeffwidman’s picture

subscribe

nomonstersinme’s picture

Status: Needs work » Fixed

This is all set now in 7.x-1.x or 7.x-1.1 sorry about that!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.