When fieldsets are added to the fields sometimes fields are not allowed to be dragged into the fieldsets in reorder mode.
It almost always happens initially but sometimes it happens when adding new fields or reconfiguring the fields (moving a field from one to another fieldset).

Errors collected:

Error: Call to a member function addWhere() on null in Drupal\views\Plugin\views\filter\BooleanOperator->queryOpBoolean() (line 260 of core/modules/views/src/Plugin/views/filter/BooleanOperator.php)
Error: Call to a member function get() on null in Drupal\views_ui\Form\Ajax\Rearrange->submitForm() (line 154 of core/modules/views_ui/src/Form/Ajax/Rearrange.php)

Comments

xaddict created an issue. See original summary.

jcaritas’s picture

Yes, I have this issue as well. If I have a fieldset in a view, I'm not able to add or rearrange my fields after initially setting them up, even if I'm not attempting to add fields into the fieldset itself, but merely rearrange them in a different way. It won't allow me to save the "rearrange" palette if there's a fieldset in it. Usually, the first time I save the view it works brilliantly -- it's when I have to go back in that it gets messed up.

rudiedirkx’s picture

I know. This is some D7 to D8 incompatibility maybe, I had to change a few things with the reorder library, and then it seemed to work, but it doesn't quite. I've no idea how to fix properly.

Patches always very welcome. (Co)-maintainers too. I only do critical bugs anymore.

rudiedirkx’s picture

If this is actually the same as #2583535: Fieldset not allowing any field to be nested inside, we should probably Close As Duplicate one.

rudiedirkx’s picture

Status: Active » Closed (cannot reproduce)
johnhanley’s picture

This bug is actually completely unrelated to #2583535.

I'm unable to configure a fieldset with Drupal 8.4. Dragging a field (via Rearrange fields) within a fieldset does not work.

This issue should be considered a critical bug because this module is presently unusable.

johnhanley’s picture

Priority: Normal » Critical
Status: Closed (cannot reproduce) » Active
kferencz91’s picture

I am also experiencing this. As jcaritas mentioned, having this module installed on 8.4 seems to interfere not just with adding into a fieldset, but rearranging views field order as a whole, as it does not allow you to save once the rearrangement has been made. If I click "apply" a few times and then reload the view, regular rearrangement orders do apply, but anything regarding a fieldset does not save.

I get the following error in the site log when trying to save:

Error: Call to a member function addWhere() on null in Drupal\views\Plugin\views\filter\BooleanOperator->queryOpBoolean() (line 260 of /Users/user/website/core/modules/views/src/Plugin/views/filter/BooleanOperator.php) #0 [internal function]: Drupal\views\Plugin\views\filter\BooleanOperator->queryOpBoolean('node_field_data...', '=') #1 /Users/user/website/core/modules/views/src/Plugin/views/filter/BooleanOperator.php(223): call_user_func(Array, 'node_field_data...', '=') #2 /Users/user/website/core/modules/views/src/ViewExecutable.php(1371): Drupal\views\Plugin\views\filter\BooleanOperator->query(false) #3 /Users/user/website/core/modules/views/src/ViewExecutable.php(1260): Drupal\views\ViewExecutable->_build('filter') #4 /Users/user/website/modules/views_fieldsets/views_fieldsets.module(177): Drupal\views\ViewExecutable->build('block_1') #5 [internal function]: views_fieldsets_views_ui_rearrange_form_submit(Array, Object(Drupal\Core\Form\FormState)) #6 /Users/user/website/core/lib/Drupal/Core/Form/FormSubmitter.php(111): call_user_func_array('views_fieldsets...', Array) #7 /Users/user/website/core/lib/Drupal/Core/Form/FormSubmitter.php(51): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object(Drupal\Core\Form\FormState)) #8 /Users/user/website/core/lib/Drupal/Core/Form/FormBuilder.php(585): Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object(Drupal\Core\Form\FormState)) #9 /Users/user/website/core/lib/Drupal/Core/Form/FormBuilder.php(314): Drupal\Core\Form\FormBuilder->processForm('views_ui_rearra...', Array, Object(Drupal\Core\Form\FormState)) #10 /Users/user/website/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php(212): Drupal\Core\Form\FormBuilder->buildForm('views_ui_rearra...', Object(Drupal\Core\Form\FormState)) #11 /Users/user/website/core/lib/Drupal/Core/Render/Renderer.php(576): Drupal\views_ui\Form\Ajax\ViewsFormBase->Drupal\views_ui\Form\Ajax\{closure}() #12 /Users/user/website/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php(214): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #13 /Users/user/website/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php(123): Drupal\views_ui\Form\Ajax\ViewsFormBase->ajaxFormWrapper('Drupal\\views_ui...', Object(Drupal\Core\Form\FormState)) #14 /Users/user/website/core/modules/views_ui/src/Form/Ajax/Rearrange.php(35): Drupal\views_ui\Form\Ajax\ViewsFormBase->getForm(Object(Drupal\views_ui\ViewUI), 'block_1', 'ajax') #15 [internal function]: Drupal\views_ui\Form\Ajax\Rearrange->getForm(Object(Drupal\views_ui\ViewUI), 'block_1', 'ajax', 'field') #16 /Users/user/website/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #17 /Users/user/website/core/lib/Drupal/Core/Render/Renderer.php(576): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #18 /Users/user/website/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #19 /Users/user/website/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #20 [internal function]: Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #21 /Users/user/website/vendor/symfony/http-kernel/HttpKernel.php(153): call_user_func_array(Object(Closure), Array) #22 /Users/user/website/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #23 /Users/user/website/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #24 /Users/user/website/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #25 /Users/user/website/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #26 /Users/user/website/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #27 /Users/user/website/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #28 /Users/user/website/core/lib/Drupal/Core/DrupalKernel.php(657): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #29 /Users/user/website/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #30 {main}.

The views_fieldsets module function is called even when a fieldset is not included in the view. (I get this error even when saving without a fieldset).

kferencz91’s picture

Wanted to follow-up and say that after removing all the views fieldsets I was using and completely uninstalling the module on 8.4.0, I no longer have rearrangement and saving issues on my views. So this is definitely related to this module.

johnhanley’s picture

@kferencz91, thanks for your comments.

If I click "apply" a few times and then reload the view, regular rearrangement orders do apply, but anything regarding a fieldset does not save.

Yup, I experienced this as well.

This module could use some TLC.

lquessenberry’s picture

Bump. I have nothing to add other than the fact that for me it seems like it might be an ajax or jquery issue.

rudiedirkx’s picture

Patches and (co-)maintainers are very welcome! I don't Drupal 8 anymore, so I won't fix it.

lquessenberry’s picture

ajax.js?v=8.4.0:472 Uncaught 
Drupal.AjaxError {message: "↵An AJAX HTTP error occurred.↵HTTP Result Code: 20…re/modules/views_ui/src/Form/Ajax/Rearrange.php).", name: "AjaxError"}
message
:
"↵An AJAX HTTP error occurred.↵HTTP Result Code: 200↵Debugging information follows.↵Path: /admin/structure/views/ajax/rearrange/taxonomy_term/page_1/field↵StatusText: OK↵ResponseText: Error: Call to a member function get() on null in Drupal\views_ui\Form\Ajax\Rearrange->submitForm() (line 154 of /var/www/docroot/core/modules/views_ui/src/Form/Ajax/Rearrange.php)."
name
:
"AjaxError"
__proto__
:
Error at http://ecbarton.dev/core/misc/ajax.js?v=8.4.0:110:32 at http://ecbarton.dev/core/misc/ajax.js?v=8.4.0:591:3
lquessenberry’s picture

I am not a very good ajax developer, but the above is the output from my console. Any tips or tricks in the right direction are appreciated. It's too bad that rudiedirkx is unwilling to work on this further. I will do my best to figure it out, but I can assure you there are much more capable people than I am who would be better suited to fix this issue.

lquessenberry’s picture

Digging a bit further, but I am not sure how would I go about determining the issue for the issue above. Best I can tell is that there was maybe a Drupal API change in Drupal 8.4.0 but I am not sure how to approach this.

https://api.drupal.org/api/drupal/core%21modules%21views_ui%21src%21Form...

lquessenberry’s picture

I thought a shot in the dark by upgrading to Drupal 8.5.x-dev would help. Newp. Didn't help.

johnhanley’s picture

@lquessenberr, thanks for digging in on this issue. I got slammed this week, but I will try and carve out some time next week to investigate.

lquessenberry’s picture

John,

I will keep digging next week too. I’m new to Drupal 8 and I really like this module from my D7 sites so I’m really hoping to use it.

Lee

rudiedirkx’s picture

Dragging a field (via Rearrange fields) within a fieldset does not work.

Works fine for me in a clean D8.4 install. I do have to refresh the Views UI page to see it worked, but it did save fine. The view result looks good too.

Multiple fields and multiple fieldsets work fine too.

What doesn't work is collapsible, but that can't be related.

I'm still not sure how it doesn't work. Only JS? Only PHP? Fatal errors all around? Saving the Field? Or the View? Etc.

rudiedirkx’s picture

StatusFileSize
new21.46 KB

I created this beauty without any major problems.

Views UI

TableDrag in D8 works crappily, but it always has, and it's still doable. No JS or PHP errors.

johnhanley’s picture

@rudiedirkx, that's interesting.

I too started with a clean install of 8.4.0. I just couldn't get Views fieldsets 8.x-3.1 to work correctly.

rudiedirkx’s picture

I'm using Views Fieldsets 8.x dev. I'm user 1. I started with a minimal install. Maybe it's fighting with some other module. Might still be VF's fault, but only in combination.

johnhanley’s picture

Both 8.x-3.1 and 8.x dev have the same date of September 29, 2017, which I believe are the same. While my application is pretty light, the problem could most certainly be a conflict.

kferencz91’s picture

StatusFileSize
new70.3 KB

I tried a completely fresh 8.4.0 Drupal install using Simply Test Me and with only Views Fieldsets installed - no other contrib modules - I still couldn't use this module. No matter how many times I tried to drag and drop in, and no matter how many times I saved and refreshed the page, it did not apply.

There were multiple errors in the site log as well once attempting to save. Screengrab attached - if anyone needs the full errors themselves, I can post.

Unlike the other site I was working on, I was at least able to save dialog box, which I could not do before, so that piece may be a conflict with another module, or an outlying issue. This other site was an 8.3.7 site that was then upgraded to 8.4.0. Views Fieldsets seemed to work fine on 8.3.7, but then broke once the site was upgraded to 8.4.0. Either way, even on this fresh 8.4.0 install with nothing else included besides core, there are still issues.

rudiedirkx’s picture

Works fine for me. https://du0rp.ply.st/fielded (User 1 is root // boele)

I really don't understand what you're doing....

johnhanley’s picture

@rudiedirkx, thanks for the example app. I logged in and you're right, it definitely works as described. I'll give it another whirl locally and report back.

kferencz91’s picture

@rudiedirkx Not really doing much of anything. Start the instance, create a view using the basic page content type. Add a title and body field. Try to add the views fieldset - can't. Absolutely nothing else installed.

For what it's worth, I'm trying to make a block instead of a page view. Not sure if that makes a difference (haven't had time to test between the two).

I can try to screencast as well if that would help. @johnhanley, interested to hear what your report back.

rudiedirkx’s picture

Javascript and PHP logs are most interesting probably. Keep the JS console open while dragging and see what comes up. If nothing, still mysterious, but any errors might be useful. Same for PHP. According to #8 there were even PHP errors. Are these consistent? After saving what? After JS errors? Etc.

If I can reproduce it relatively easily, I'll try to fix it, but I can't so far...

rudiedirkx’s picture

Issue summary: View changes
rudiedirkx’s picture

Not related to #2583535

ta-im-ok’s picture

With the JS console open while dragging, this is what comes up

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /admin/structure/views/ajax/rearrange/frontpage/page_1/field
StatusText: OK
ResponseText: Error: Call to a member function get() on null in Drupal\views_ui\Form\Ajax\Rearrange->submitForm() (line 154 of /core/modules/views_ui/src/Form/Ajax/Rearrange.php).

droprocker’s picture

Since this also happend to me, I made one simple test. I changend my browser and violà, it worked! So it seems to be an issue with Chrome. Just change to Firefox an everything works as expected.

babin’s picture

Using Firefox does not fix my problem, and refreshing no longer shows my changes, so I cant even trick it to work.

I can move my fields into the fieldset, but I get

AjaxError:
An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /admin/structure/views/ajax/rearrange/page_copy/block_1/field
StatusText: OK
ResponseText: Error: Call to a member function addWhere() on null in Drupal\views\Plugin\views\filter\BooleanOperator->queryOpBoolean() (line 260 of /svn/web/core/modules/views/src/Plugin/views/filter/BooleanOperator.php).
ajax.js:110:32

when I try to apply the changes.

:(

hamrant’s picture

The same problem - after rearrange on save button click:

"
An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /admin/structure/views/ajax/rearrange/test_export/rest_export_1/field
StatusText: OK
ResponseText: "

From DBlog:
Error: Call to a member function addRelationship() on null in Drupal\views\Plugin\views\relationship\RelationshipPluginBase->query() (line 159 of /var/www/drupalvm/drupal/web/core/modules/views/src/Plugin/views/relationship/RelationshipPluginBase.php) #0 /var/www/drupalvm/drupal/web/core/modules/views/src/ViewExecutable.php(1371): Drupal\views\Plugin\views\relationship\RelationshipPluginBase->query(false) #1 /var/www/drupalvm/drupal/web/core/modules/views/src/ViewExecutable.php(1246): Drupal\views\ViewExecutable->_build('relationship') #2 /var/www/drupalvm/drupal/web/modules/contrib/views_fieldsets/views_fieldsets.module(177): Drupal\views\ViewExecutable->build('rest_export_1') #3 [internal function]: views_fieldsets_views_ui_rearrange_form_submit(Array, Object(Drupal\Core\Form\FormState)) #4 /var/www/drupalvm/drupal/web/core/lib/Drupal/Core/Form/FormSubmitter.php(111): call_user_func_array('views_fieldsets...', Array) #5 /var/www/drupalvm/drupal/web/core/lib/Drupal/Core/Form/FormSubmitter.php(51): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object(Drupal\Core\Form\FormState)) #6 /var/www/drupalvm/drupal/web/core/lib/Drupal/Core/Form/FormBuilder.php(585): Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object(Drupal\Core\Form\FormState)) #7 /var/www/drupalvm/drupal/web/core/lib/Drupal/Core/Form/FormBuilder.php(314): Drupal\Core\Form\FormBuilder->processForm('views_ui_rearra...', Array, Object(Drupal\Core\Form\FormState)) #8 /var/www/drupalvm/drupal/web/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php(212): Drupal\Core\Form\FormBuilder->buildForm('views_ui_rearra...', Object(Drupal\Core\Form\FormState))

MGParisi’s picture

Same issue here...

sachit.thapa’s picture

I am also getting the same error.
Drupal.AjaxError {message: "↵An AJAX HTTP error occurred.↵HTTP Result Code: 20…sults/block_1/field↵StatusText: OK↵ResponseText: ", name: "AjaxError"}
message
:
"↵An AJAX HTTP error occurred.↵HTTP Result Code: 200↵Debugging information follows.↵Path: /admin/structure/views/ajax/rearrange/aaa/block_1/field↵StatusText: OK↵ResponseText: "
name
:
"AjaxError"

Has anyone able to find solutions for this?

Thanks
Sachit

adanielyan’s picture

Having same issue in both Chrome and FF. Was anyone able to find a fix or workaround?

unrealauk’s picture

Version: 8.x-3.0 » 8.x-3.x-dev
Component: User interface » Code
Status: Active » Needs review
StatusFileSize
new448 bytes

Fixed PHP notices. Which are mentioned #24
Please, review the patch.

  • pifagor committed 9380193 on 8.x-3.x authored by unrealauk
    Issue #2908454 by unrealauk, rudiedirkx, kferencz91: Unable to put...
pifagor’s picture

Status: Needs review » Fixed
pifagor’s picture

Status: Fixed » Closed (fixed)
peterg.griffin’s picture

I'm still getting this error with both the 8.x-3.3 and 8.x-dev versions of the module:
Error: Call to a member function get() on null in Drupal\views_ui\Form\Ajax\Rearrange->submitForm() (line 154 of /vagrant/web/core/modules/views_ui/src/Form/Ajax/Rearrange.php)

attisan’s picture

sorry, but this issue isn't fixed yet. I'm having issues too.

db-log:

Error: Call to a member function addWhere() on null in Drupal\views\Plugin\views\filter\InOperator->opSimple() (Zeile 399 in /var/www/drupal/web/core/modules/views/src/Plugin/views/filter/InOperator.php)
#0 /var/www/drupal/web/core/modules/views/src/Plugin/views/filter/InOperator.php(387): Drupal\views\Plugin\views\filter\InOperator->opSimple()
#1 /var/www/drupal/web/core/modules/views/src/Plugin/views/filter/Bundle.php(119): Drupal\views\Plugin\views\filter\InOperator->query()
#2 /var/www/drupal/web/core/modules/views/src/ViewExecutable.php(1370): Drupal\views\Plugin\views\filter\Bundle->query(false)
#3 /var/www/drupal/web/core/modules/views/src/ViewExecutable.php(1259): Drupal\views\ViewExecutable->_build('filter')
#4 /var/www/drupal/web/modules/contrib/views_fieldsets/views_fieldsets.module(170): Drupal\views\ViewExecutable->build('default')
#5 [internal function]: views_fieldsets_views_ui_rearrange_form_submit(Array, Object(Drupal\Core\Form\FormState))
#6 /var/www/drupal/web/core/lib/Drupal/Core/Form/FormSubmitter.php(111): call_user_func_array('views_fieldsets...', Array)
#7 /var/www/drupal/web/core/lib/Drupal/Core/Form/FormSubmitter.php(51): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object(Drupal\Core\Form\FormState))
#8 /var/www/drupal/web/core/lib/Drupal/Core/Form/FormBuilder.php(585): Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object(Drupal\Core\Form\FormState))
#9 /var/www/drupal/web/core/lib/Drupal/Core/Form/FormBuilder.php(314): Drupal\Core\Form\FormBuilder->processForm('views_ui_rearra...', Array, Object(Drupal\Core\Form\FormState))
#10 /var/www/drupal/web/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php(212): Drupal\Core\Form\FormBuilder->buildForm('views_ui_rearra...', Object(Drupal\Core\Form\FormState))
#11 /var/www/drupal/web/core/lib/Drupal/Core/Render/Renderer.php(582): Drupal\views_ui\Form\Ajax\ViewsFormBase->Drupal\views_ui\Form\Ajax\{closure}()
#12 /var/www/drupal/web/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php(214): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#13 /var/www/drupal/web/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php(123): Drupal\views_ui\Form\Ajax\ViewsFormBase->ajaxFormWrapper('Drupal\\views_ui...', Object(Drupal\Core\Form\FormState))
#14 /var/www/drupal/web/core/modules/views_ui/src/Form/Ajax/Rearrange.php(35): Drupal\views_ui\Form\Ajax\ViewsFormBase->getForm(Object(Drupal\views_ui\ViewUI), 'default', 'ajax')
#15 [internal function]: Drupal\views_ui\Form\Ajax\Rearrange->getForm(Object(Drupal\views_ui\ViewUI), 'default', 'ajax', 'field')
#16 /var/www/drupal/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#17 /var/www/drupal/web/core/lib/Drupal/Core/Render/Renderer.php(582): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#18 /var/www/drupal/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#19 /var/www/drupal/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#20 [internal function]: Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#21 /var/www/drupal/vendor/symfony/http-kernel/HttpKernel.php(153): call_user_func_array(Object(Closure), Array)
#22 /var/www/drupal/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#23 /var/www/drupal/web/modules/contrib/pc/src/Middleware.php(38): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#24 /var/www/drupal/web/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Drupal\pc\Middleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#25 /var/www/drupal/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#26 /var/www/drupal/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#27 /var/www/drupal/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#28 /var/www/drupal/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#29 /var/www/drupal/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#30 /var/www/drupal/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#31 /var/www/drupal/web/core/lib/Drupal/Core/DrupalKernel.php(657): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#32 /var/www/drupal/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#33 {main}.

js-console:

Error: Call to a member function addWhere() on null in Drupal\views\Plugin\views\filter\InOperator->opSimple() (line 399 of /var/www/drupal/web/core/modules/views/src/Plugin/views/filter/InOperator.php).

hth

unrealauk’s picture

@attisan, @peterg.griffin
Sorry, but I can't reproduce the bug.

Could you provide more information about this bug?
I mean, steps to reproduce it or you can record a video with the bug.

I need any information about it - views settings, etc.

pifagor’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)
pifagor’s picture

eddylbs’s picture

Hello everyone,

I am also confronted with this error when I want to save the order of the fields in a view, the configuration popup does not close and errors are generated.

It looks like it happens when the view contains at least one contextual filter, since after testing without contextual filters it seems to work.

Error : Call to a member function addWhere() on null dans Drupal\views\Plugin\views\filter\InOperator->opSimple()
Notice : Undefined property: Drupal\views\Plugin\views\filter\Bundle::$query dans Drupal\views\Plugin\views\filter\InOperator->opSimple()

Drupal version => 8.4.5
Module Views fieldsets => 8.x-3.3
Module Views Exposed Form Fieldset => 8.x-1.1
Module Field Group => 8.x-1.0

My view settings:
- Current nid in contextual filters
- Use ajax: No
- Has exposed filters on field of type "select list"
- Better exposed filters activated
- View displayed: "HTML List"
- Display fields
- Order by Updated Date

Thanks

unrealauk’s picture

Sorry, I can't reproduce it.
I did the same views with your settings, but I didn't catch error.

rudiedirkx’s picture

I couldn't reproduce it either. Fresh or new Drupal install. Home server or https://simplytest.me/

Maybe it's a specific combination of (admin?) modules. Or a certain combination of modules that fixes it.

If someone who does have this problem could debug it a bit, that would be super helpful.

pifagor’s picture

Hello everyone.
@attisan and @peterggriffin
Is it possible to prepare a docker compose with a ready-made resource, where we can reproduce the issue? I think the reason is conflict with some additional modules.

rudiedirkx’s picture

Or a complete Drush Make file?

rainer f. gottlieb’s picture

Same problem here, error in log same as posted in #43, in some views it worked, but now, no way to get it work.

Edit (a makeshift):

When I deleted the context filter within the view, it worked (after delete the filter save the view, then rearange fields under field set, save (its not dislpayed correct, but after saving the view, it will) saving the view, then adding the context-filter again.

jcaritas’s picture

Yes! Rainer, you're correct (at least for me)! I couldn't figure out why it seemed to work sometimes and not others, but temporarily removing my contextual filter allowed me to save with the fieldsets intact. Thanks for the workaround!

Vuds’s picture

+1 confirming: when the contextual filter is added, it is impossible to edit the positioning of fields inside the fieldsets.

Temporarily removing the filter, it all returns back to normal.

namli’s picture

And for me it's work: Temporary remove contextual filter fix problem.

m.lebedev’s picture

Hello. It is a quick fix.

pifagor’s picture

Status: Postponed (maintainer needs more info) » Needs review
bohemier’s picture

Patch #56 works for me, thanks

  • pifagor committed d0c997f on 8.x-3.x authored by m.lebedev
    Issue #2908454 by unrealauk, m.lebedev, rudiedirkx, kferencz91,...
pifagor’s picture

Status: Needs review » Fixed

Done

Status: Fixed » Closed (fixed)

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

ydahi’s picture

thx for the patch in #56, rtbc on 8.x-3.3. Should be included in next release as without patch the module is almost inoperable.

markdc’s picture

I second this.

Hitby’s picture

Patch applied cleanly to 3.3 and fixed the issue for me.

WillGFP’s picture

I've got the latest dev version with the patch in #56 applied, still getting the error.

Error: Call to a member function get() on null in Drupal\views_ui\Form\Ajax\Rearrange->submitForm()

It only happens for me when there's an RSS Feed display on the view, if I delete the Feed display, it works just fine. The Views UI button specifically says "Apply (this display)" when the AJAX error occurs, even though the error seems to be cause by a conflict with the other display.

lordzik’s picture

I've got the same error as in #65

Error: Call to a member function get() on null w Drupal\views_ui\Form\Ajax\Rearrange->submitForm() (linia 156 w /var/www/html/drupal8/core/modules/views_ui/src/Form/Ajax/Rearrange.php) #0 [internal function]: Drupal\views_ui\Form\Ajax\Rearrange->submitForm(Array, Object(Drupal\Core\Form\FormState)) #1 /var/www/html/drupal8/core/modules/views_ui/src/ViewUI.php(258): call_user_func_array(Array, Array) #2 [internal function]: Drupal\views_ui\ViewUI->standardSubmit(Array, Object(Drupal\Core\Form\FormState)) #3 /var/www/html/drupal8/core/lib/Drupal/Core/Form/FormSubmitter.php(111): call_user_func_array(Array, Array) #4 /var/www/html/drupal8/core/lib/Drupal/Core/Form/FormSubmitter.php(51): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object(Drupal\Core\Form\FormState)) #5 /var/www/html/drupal8/core/lib/Drupal/Core/Form/FormBuilder.php(590): Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object(Drupal\Core\Form\FormState)) #6 /var/www/html/drupal8/core/lib/Drupal/Core/Form/FormBuilder.php(319): Drupal\Core\Form\FormBuilder->processForm('views_ui_rearra...', Array, Object(Drupal\Core\Form\FormState)) #7 /var/www/html/drupal8/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php(214): Drupal\Core\Form\FormBuilder->buildForm('views_ui_rearra...', Object(Drupal\Core\Form\FormState)) #8 /var/www/html/drupal8/core/lib/Drupal/Core/Render/Renderer.php(582): Drupal\views_ui\Form\Ajax\ViewsFormBase->Drupal\views_ui\Form\Ajax\{closure}() #9 /var/www/html/drupal8/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php(216): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #10 /var/www/html/drupal8/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php(125): Drupal\views_ui\Form\Ajax\ViewsFormBase->ajaxFormWrapper('Drupal\\views_ui...', Object(Drupal\Core\Form\FormState)) #11 /var/www/html/drupal8/core/modules/views_ui/src/Form/Ajax/Rearrange.php(37): Drupal\views_ui\Form\Ajax\ViewsFormBase->getForm(Object(Drupal\views_ui\ViewUI), 'page_1', 'ajax') #12 [internal function]: Drupal\views_ui\Form\Ajax\Rearrange->getForm(Object(Drupal\views_ui\ViewUI), 'page_1', 'ajax', 'field') #13 /var/www/html/drupal8/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #14 /var/www/html/drupal8/core/lib/Drupal/Core/Render/Renderer.php(582): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #15 /var/www/html/drupal8/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #16 /var/www/html/drupal8/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #17 /var/www/html/drupal8/vendor/symfony/http-kernel/HttpKernel.php(151): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #18 /var/www/html/drupal8/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #19 /var/www/html/drupal8/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #20 /var/www/html/drupal8/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #21 /var/www/html/drupal8/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #22 /var/www/html/drupal8/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #23 /var/www/html/drupal8/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #24 /var/www/html/drupal8/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #25 /var/www/html/drupal8/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #26 /var/www/html/drupal8/core/lib/Drupal/Core/DrupalKernel.php(693): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #27 /var/www/html/drupal8/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #28 {main}.

I happens when i try to save rearranged fields when view has rss enabled.

karenann’s picture

The patch in #56 fixed my issue:

Error: Call to a member function addRelationship() on null in Drupal\views\Plugin\views\relationship\RelationshipPluginBase->query() (line 159 of /usr/share/nginx/html/docroot/core/modules/views/src/Plugin/views/relationship/RelationshipPluginBase.php)

rroose’s picture

Patch in #56 works, thanks.

aldibier’s picture

Patch #56 works.

marceldeb’s picture

Patch applied cleanly to 3.3 and fixed the issue for me.

prsnjtbarman’s picture

Patch #56 worked for me having relationship set in view

kebne’s picture

Patch #56 didn't worked for me (not using fieldsets in my view).

But moving views_fieldsets away make reordering works again. And after saving my changes I can move views_fieldsets back and there's no more error!

Just like: https://www.drupal.org/project/drupal/issues/3068437

breezeweb’s picture

Thanks!
Patch in #56 works for me on 8.x-3.3

gionnibgud’s picture

+1 for patch in #56

dangreenman’s picture

The patches did not work for me.
Only moving the RSS feeds to a different view solved the problem.
Thank you for your help.

yfma’s picture

Thank you, Patch 56 works on 8.x-3.3

lubwn’s picture

Patch #56 is working for me as well. Please push this into production.

chucksimply’s picture

Looks like it was finally committed to 8.x-3.4. thanks!