Needs work
Project:
DraggableViews
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Mar 2015 at 12:48 UTC
Updated:
25 Aug 2021 at 19:22 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pmchristensen commentedSolved with the following patch.
Comment #2
istryker commentedDo you know why you are getting the error and how you patch fixes it?
What version of PHP are you running?
Comment #3
pmchristensen commentedWell the notice is comming because it loops through this twice, once with the value set to "flag_bookmarks:page" in $view->sort[$weight_key]->options['draggableviews_setting_view'] and the second time with the value set to "self", which fails because the following is run against the value list($setting_view_name, $setting_view_display) = explode(':', $view->sort[$weight_key]->options['draggableviews_setting_view']);
So it looks like a problem between draggableviews and the flag module. Have installed the latest stable version of the flag module.
Comment #4
istryker commentedCan you test #2413433: update 'self' sort handler setting in db patch and see if that works. I believe that get rid of the self in the database.
Comment #5
istryker commentedSorry. Forget #2413433: update 'self' sort handler setting in db and test #2413429: always provide sort options . Patch #5 in #2413429 gets rid of the if statement completely.
Comment #6
acrosmanI'm seeing the same notice after updating to the current release version. Patch #5 in #2413429 did not resolve it. Patch #1 here doesn't apply cleanly for me to the current release (which obviously may not be a problem really). I'll try it against the dev.
Comment #7
acrosmanPatch #1 applied cleanly against dev, and clears the notice.
Comment #8
pglatz commentedSame problem - using PHP 5.4.34, dev from 5/6/15. Have applied patch #1, and when I do, get no results from the view.
Comment #9
sonicthoughts commentedI see this issue but do not have flag module enabled (it is installed however).
Comment #10
istryker commentedNeeds reroll
Comment #11
wayne.gormont commentedWhat solved this issue for me was to change the field "Draggableviews: Weight" under Sort Criteria on Argument Handling from "Do not use any arguments (use empty arguments)" to " Use all arguments".
Comment #12
simohell commented#11 got rid of the errors. Didn't check for side effects yet...
Comment #13
pglatz commentedJust updated from 7.x-2.0 to 7.x-2.1, getting the same problem:
Undefined offset: 1 in draggableviews_join_handler->build_join() line 50
Comment #14
jldust commentedThis issue is still occurring, did we narrow down the problem?
Comment #15
bhushan.nagaonkar commentedissue still occuring, getting notices Undefined offset: 1 in draggableviews_join_handler->build_join() line 50
Comment #16
ed2908 commentedI'm seeing this as well on 7.x-2.1 using core 7.89, no flag module installed, every view block set to use all arguments.