Just added the Dragabble Views field in Views and on the field config screen I Am seeing this warning.

Notice: Undefined index: sorts in options_form() (line 32 of draggableviews/handlers/draggableviews_handler_fieldapi.inc

Comments

istryker’s picture

Status: Active » Postponed (maintainer needs more info)

I have seen this as an issue with Commerce Kickstart products. I believe is was do to mis-configured View.

Need more information, the export of the view or images

giorgio79’s picture

Status: Postponed (maintainer needs more info) » Active
StatusFileSize
new40.98 KB
new3.4 KB

Sure, attaching screenshot and export of this super simple view :)

istryker’s picture

Okay, I can confirm this. I am getting this error in my watchdog, but not the screen. This happen when I open the field config and again when I close the config (by either clicking the Apply or Cancel button).

istryker’s picture

FYI - #2 view is misconfigured. I have created a new issue around this #1915588: Need warning when using Native and are not using 'Draggableviews: Weight' sort

geraldito’s picture

I get the same warning even I have have the 'Draggableviews:weight' sort field enabled.

janekD7’s picture

I also get the same warning, but only on remote server. When I work on localhost everything works just fine. Strange.
Of course 'Draggablevies:weight' is enabled in both cases.
What is more when I click on weight field in sorting section I get other error:
Warning: Invalid argument supplied for foreach() in (here is the views_plugin_display.inc file path ) on line 289
similar to this
http://drupal.org/node/1546202#comment-6699766

EDIT:
It turns out that on remote server I have error_reporting(E_ALL) so I gets Warnings and Notices unlike my local server when error reporting level was higher (only errors).

istryker’s picture

Version: 7.x-2.0 » 7.x-2.x-dev
Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new1.71 KB

I am not getting an errors locally, but looking at the code I should get one.

Patch Attached that adds isset() check.

joelstein’s picture

Status: Needs review » Reviewed & tested by the community

Patch in #7 works for me.

  • iStryker authored 976a29c on 7.x-2.x
    Issue #1915394 by iStryker, giorgio79: Notice: Undefined index: sorts in...
istryker’s picture

Status: Reviewed & tested by the community » Fixed

Ran test manually and it passed. Committed

Status: Fixed » Closed (fixed)

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