When I try to edit the Header in one of my Views, I get the following message:
Notice: Undefined index: buttons in views_ui_basic_form_alter() (line 127 of /home5/briarcli/public_html/new/sites/all/modules/views_ui_basic/views_ui_basic.module).
How do I fix this?
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | undefined_index_buttons_views_ui_basic_form-2273221-14.patch | 805 bytes | raphael apard |
Comments
Comment #1
simon georges commentedHi,
Are you eventually using other Views-related modules that could conflict with Views UI Basic, to help me debug the root cause of the issue?
Comment #2
tjtj commentedWell, this worked properly on one view, and died on another. And I was able to do the footer in the failed view.
Eva
(eva)
7.x-1.2 Provides a Views display type that can be attached to entities.
Requires: Views (enabled), Chaos tools (enabled)
Views Bulk Operations
(views_bulk_operations)
7.x-3.1 Provides a way of selecting multiple rows and applying operations to them.
Requires: Entity API (enabled), Views (enabled), Chaos tools (enabled)
Views Export XLS
(views_export_xls)
7.x-1.0 Plugin to export views to XLS
Requires: Views (enabled), Chaos tools (enabled)
Permissions
Views Galleriffic
(views_galleriffic)
7.x-1.1+5-dev Use Views to make JQuery Galleriffic image gallery
Requires: Views (enabled), Chaos tools (enabled)
Views UI
(views_ui)
7.x-3.8 Administrative interface to views. Without this module, you cannot create or edit your views.
Requires: Views (enabled), Chaos tools (enabled)
Configure
Views UI: Edit Basic Settings
(views_ui_basic)
7.x-1.2 Interface to edit basic Views settings, such as headers, footers, title, empty text, and items to display.
Requires: Views (enabled), Chaos tools (enabled)
Operations
Configure
Views
(views)
7.x-3.8 Create customized lists and queries from your database.
Requires: Chaos tools (enabled)
Required by: Date Views (disabled), Eva (enabled), Views Bulk Operations (disabled), Views content panes (enabled), Views Export XLS (enabled), Views Galleriffic (enabled), Views UI (enabled), Views UI: Edit Basic Settings (enabled)
Permissions
Comment #3
cocopuffs commentedI can confirm this issue. I was trying to edit the view header and this error appeared aswell. Any ideas how to fix it? It doesn't work on any of my views
Comment #4
simon georges commented@cocopuffs, can you give us your View-related modules, to see which one is intefering?
Comment #5
cocopuffs commentedI have:
Views Bootstrap
Views UI
Views
Comment #6
cocopuffs commentedany updates?
Comment #7
simon georges commentedWell, you don't have a lot of modules, so I'm wondering what is happening. Could it be theme-related? What administration theme are you using?
Comment #8
cocopuffs commentedusing the default bartik theme since I'm just starting the website. I don't have a lot of contents and the view content that I would like to have content admins change is the frontpage and the about us section.
Comment #9
roman_iglin commentedHi,
in one views some pages, the conflict is possible!
Comment #10
simon georges commentedCan anybody with the issue paste me the content of the view when it happens (with a
debug($form);inserted before the line in question (the debug message should then appear in the watchdog)?Comment #11
tdurocher commentedThis just started happening to me as well, with a new display on a view where they other displays work fine. This is the first display created in about a year, so may have been module updates since then. I'm wondering if I left anything out on defining the new display but I checked the display's box under /admin/structure/views/views_ui_basic. I have defined Title, Header, and Pager Options as editable. Only Header gives the error and the other two work as expected. Attached is the debug output you requested. Thanks for your help.
Comment #12
ippy commentedAfter looking at most aspects of the two Views I experienced this issue with - and being unable to find obvious commonalities in the display type, settings, fields, etc - I just had a "duh!" moment with this when I realised that it was the presence of a "Header: Global: Text area" on the (page) display itself that was effectively obstructing Views UI Basic. I removed it from the View and VuiB now works fine.
Comment #13
raphael apard commentedThis problem shows up when you have an exsting area (only one) on your view, and the name of this area is not "area".
With no exisiting area, or default "area" views_ui_basic_edit_form() will "auto-create add form".
With multiple existing views_ui_basic_edit_form() will add a switch form.
But with only one existing area named "area_1" for example, views_ui_basic_edit_form() won't add it to the form.
A solution could be to define $config_area using the key of $view_area if this one only has 1 element.
Here a (not pretty) patch
Comment #14
raphael apard commentedSame issue when using multiple areas
Comment #15
simon georges commented@Raphael, thanks for the patch!
@Others, can you verify that if fixes the issue for you? Since it seems harmless, I'll eventually commit it anyway.
Comment #16
knalstaaf commentedPatch won't do it for me.
Using the following Views-related modules:
Error occurs regardless of used views plugin.
Comment #17
tdurocher commentedThe patch in #14 worked for me. Thanks!
Comment #18
jorditr commentedPatch #14 also worked for me. Thanks!