Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
when I try to create a new flagging collection, I get the following error message (Drupal 9):
Error: Call to a member function isSyncing() on null in flag_lists_actions_flagging_collection_presave() (line 71 of modules/contrib/flag_lists/modules/flag_lists_actions/flag_lists_actions.module).
Any idea?
Thanks for support!
Comment | File | Size | Author |
---|---|---|---|
#12 | Call_to_a_member_fuction-3257955-12.patch | 1.64 KB | sl27257 |
Issue fork flag_lists-3257955
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
beatrizrodriguesComment #4
beatrizrodriguesHere's a MR that I think will fix that. Please, review.
Comment #5
filburt CreditAttribution: filburt commentedWow, thank you for your quick response!
I can confirm that it fix the issue.
Comment #6
victoria-marina CreditAttribution: victoria-marina at CI&T commentedComment #7
sl27257I agree that is was a quick fix. I was on lunch :)
Thank you for the diff!
The question is however why the flag isn't there. I should be... This is on -rc2. I wonder if it has a relation to #3200737: make the related_flag id unique ? It seems like something is not working with the update that fixes the names. May I ask what you where doing? Was it during the upgrade or something else?
/Thomas
Comment #8
filburt CreditAttribution: filburt commentedHi,
In my case it was a fresh install of flag and flag-lists modules on an existing Drupal website which I updated from D8 to D9 before (flag and flag lists were never installed before). Nothing changed in the default settings besides that I attached all the things to a given content type...
Hope it helps.
Thanks for suppport.
Comment #9
victoria-marina CreditAttribution: victoria-marina at CI&T commentedI've installed the module, reproduced the issue, applied patch and saw changes. Tested again with patch and the error was gone.
Comment #10
sl27257Thanks for your reports! It seems like your cases have nothing to do with an upgrade...
/Thomas
Comment #11
sl27257Now I managed to create it!
BR
/Thomas
Comment #12
sl27257The super quick fix is to uninstall the "Flag Lists Actions" sub-module, unless you really need it.
The full fix is attached. Please try it out and see if it is working. The fix is doing most of the job. There might be some tweak to make sure it is called for the right cases.
As the bug might have caused some missing actions the easiest way to restore them is to uninstall the "Flag Lists Actions" sub-module and then install it again. All actions will first be removed and then restored.
Comment #13
sl27257Comment #15
sl27257