Hi all,

We created a queue with queue type "Multiple subqueues". Now when we create a new subqueue, It can't add more than one item, we only add more than one item when edit subqueue. Any one get same issue?

CommentFileSizeAuthor
#5 2836279.patch2.3 KBamateescu

Comments

tamnv created an issue. See original summary.

beltofte’s picture

Version: 8.x-1.0-alpha4 » 8.x-1.x-dev
Priority: Critical » Normal

Steps to reproduce:

# Add a new queue of the type “Multiple subqueues”.
# Add a new subqueue.
# Add a new item without saving the queue.
# Add a second item without saving the queue.
# When clicking “Add another item” is 3rd item field not added.
# Saving the subqueue will save the first item added, but the second item is lost.

After saving the subqueue is it working fine again. So it looks like it happens only when the subqueue was added and not saved.

When the issue occurs is the following error logged in the watchdog:

LogicException: Settings can not be serialized. This probably means you are serializing an object that has an indirect reference to the Settings object. Adjust your code so that is not necessary. in Drupal\Core\Site\Settings->__sleep() (line 62 of /core/lib/Drupal/Core/Site/Settings.php).

beltofte’s picture

Title: Add item when we create subqueue » LogicException in unsaved subqueues when adding multiple items.

  • amateescu committed 81b0712 on 8.x-1.x
    Issue #2836279: LogicException in unsaved subqueues when adding multiple...
amateescu’s picture

Status: Active » Fixed
StatusFileSize
new2.3 KB

Thanks for the detailed steps to reproduce, it's now fixed with the patch attached.

tamnv’s picture

Hi @amateescu,
This patch worked for me.

Thanks you.

Status: Fixed » Closed (fixed)

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