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?

Comments

simon georges’s picture

Hi,
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?

tjtj’s picture

Well, 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

cocopuffs’s picture

I 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

simon georges’s picture

@cocopuffs, can you give us your View-related modules, to see which one is intefering?

cocopuffs’s picture

I have:

Views Bootstrap
Views UI
Views

cocopuffs’s picture

any updates?

simon georges’s picture

Well, 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?

cocopuffs’s picture

using 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.

roman_iglin’s picture

Hi,
in one views some pages, the conflict is possible!

simon georges’s picture

Can 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)?

tdurocher’s picture

StatusFileSize
new392.02 KB

This 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.

ippy’s picture

After 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.

raphael apard’s picture

This 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

raphael apard’s picture

StatusFileSize
new805 bytes

Same issue when using multiple areas

simon georges’s picture

Status: Active » Needs review

@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.

knalstaaf’s picture

Version: 7.x-1.2 » 7.x-1.3
Status: Needs review » Needs work

Patch won't do it for me.

Error:
Notice: Undefined index: buttons in views_ui_basic_form_alter() (line 133 of /sites/all/modules/views_ui_basic/views_ui_basic.module).

Using the following Views-related modules:

  • Views translation (7.x-3.0-alpha1)
  • Views bootstrap (7.x-3.1+31-dev)
  • Views Masonry (7.x-3.0)
  • Leaflet Views (7.x-1.3)
  • Metatag: Views (submodule - 7.x-1.13)

Error occurs regardless of used views plugin.

tdurocher’s picture

The patch in #14 worked for me. Thanks!

jorditr’s picture

Patch #14 also worked for me. Thanks!