Closed (fixed)
Project:
BUEditor
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Apr 2011 at 02:24 UTC
Updated:
21 Apr 2011 at 20:31 UTC
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
Comment #1
ufku commentedI 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.
Comment #2
agileware commentedYeah, 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.
Comment #3
ufku commentedAlt key was introduced in d6. It's now obvious why the alt key was missing.
Committed a fix to 6.x-2.x branch.