- Merge request !145Issue #3553911: Fix undefined array key 'depth' in BookManager β (Open) created by smustgrave
During migrations, I am getting a bunch of warnings 'Undefined array key "depth" BookManager.php'. They refer to this line: $book['depth'] = $parent['depth'] + 1;
I don't know in detail what is causing this. It may be that migration code ought to be setting the depth. However, I noticed that this code has no protection against depth not being set. Indeed $parent could be an empty array (that is the default). If it was, there would also be other errors about undefined array keys.
If depth must be set, log and display a better error message. Otherwise, fallback to a sensible default.
Figure out what should be done. Implement.
None.
None except that these warnings would not appear.
None.
Active
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.