When I delete an editor on the bueditor config page (admin/config/content/bueditor) I get the following error message:

Notice: Undefined index: alt in bueditor_delete_editor() (line 607 of sites/all/modules/bueditor/admin/bueditor.admin.inc).

Comments

ufku’s picture

I wasn't able to reproduce it, even with a fresh install where "bueditor_roles" variable is undefined.
The variable "bueditor_roles" could be either empty or filled with roles with alt keys. If alt key is missing, there must have been an error while submitting the editor-role assignment form.
You may want to dump the variable before and after form submission to debug the issue.

agileware’s picture

Yeah, I can't make it happen again no matter what I try.

The site I got the error on was a drupal 5 site using bueditor, upgraded to drupal 6 then upgraded to drupal 7.
So maybe the format of
variable_get('bueditor_roles', array());

has changed between versions and my site still had the old format.
The error only occurred once for the first editor I removed.

I can't remember if I saved the roles after the upgrade or after I saw the error but that may have fixed it up.

Anyway, I'm happy for this to be closed unless you want to investigate the possibility of the upgrade path missing something with the bueditor_roles variable.

ufku’s picture

Title: Notice: Undefined index: alt in bueditor_delete_editor() (line 607 of admin/bueditor.admin.inc) » Update bueditor_roles during 5.x -> 6.x upgrade path
Version: 7.x-1.1 » 6.x-2.x-dev
Status: Active » Fixed

Alt key was introduced in d6. It's now obvious why the alt key was missing.
Committed a fix to 6.x-2.x branch.

Status: Fixed » Closed (fixed)

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