Problem/Motivation

After Installing the version 2.0.1 I get the following error when I try to save the configuration of the book.

"'show_top_item' is not a supported key."

Error

Steps to reproduce

Install Book 2.0.0 and update to version 2.0.1

CommentFileSizeAuthor
#3 Error.png44.05 KBdbielke1986

Issue fork book-3531800

Command icon 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

dbielke1986 created an issue. See original summary.

dbielke1986’s picture

Issue summary: View changes
dbielke1986’s picture

Issue summary: View changes
StatusFileSize
new44.05 KB
smustgrave’s picture

Did you run drush updb? Not able to replicate

dbielke1986’s picture

Yes, updatedb was running successfully.
Can I provide you any further information to get the issue analyzed?

smustgrave’s picture

Status: Active » Needs review

try this

smustgrave’s picture

Priority: Normal » Major
kwiseman’s picture

Status: Needs review » Reviewed & tested by the community

I was having the same issue after upgrading from 1.0.0 to 2.0.1, even after updating the database. I applied the changes from the merge request as a patch, and that solved it.

smustgrave’s picture

Will deploy this tonight when I’m back in front of my computer

  • smustgrave committed 3cbc322b on 2.0.x
    Issue #3531800 by dbielke1986, smustgrave: 'show_top_item' is not a...

  • smustgrave committed a8ee2cb7 on 3.0.x
    Issue #3531800 by smustgrave, dbielke1986, kwiseman: 'show_top_item' is...
smustgrave’s picture

Status: Reviewed & tested by the community » Fixed
dbielke1986’s picture

Version: 2.0.x-dev » 2.0.2

Is working fine! No errors anymore.

Thank you for the quick fix and release @smustgrave

andyf’s picture

Hey, I think there's an issue with the hook_update_N() that was committed. From the docs, it's safe to use

\Drupal::configFactory()->getEditable() and \Drupal::config(), as long as you make sure that your update data matches the schema, and you use the $has_trusted_data argument in the save operation.

(my emphasis)

Thanks!

Status: Fixed » Closed (fixed)

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