Problem/Motivation
Trying to add a Paragraph Type and I get this PHP error:
TypeError: Drupal\paragraphs_ee\Entity\ParagraphsCategory::getDescriptionFormat(): Return value must be of type string, null returned in Drupal\paragraphs_ee\Entity\ParagraphsCategory->getDescriptionFormat() (line 82 of modules/contrib/paragraphs_ee/src/Entity/ParagraphsCategory.php).
Steps to reproduce
Click on "Add paragraphs catagory" in /admin/structure/paragraphs_category
Drupal version: 10.1.5
PHP: 8.1.23
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | cli info.mp4 | 2.38 MB | kenrbnsn |
| #12 | drupal errors.mp4 | 11.21 MB | kenrbnsn |
Comments
Comment #3
stborchertUh, sorry about that. And thanks for finding this.
Fixed in https://www.drupal.org/project/paragraphs_ee/releases/10.0.2
Comment #4
kenrbnsn commentedThanks. The page now comes up but I get these warnings:
Comment #5
stborchert@kenrbnsn: Where/ when do you get these warnings? I tried adding, editing, removing categories and paragraph bundles and created content but didn't see such warnings.
Comment #6
stborchertNevermind, I get the message now :/
Comment #7
abhishek_gupta1 commentedComment #8
stborchert@abhishek_virasat I'm already working on it. Thanks for offering your help.
Comment #9
stborchertIt seems that the update hook that modifies the existing paragraph categories did not run properly.
Comment #11
stborchertPlease test the latest development branch. This should do ... hopefully.
Comment #12
kenrbnsn commentedStill getting the errors/warnings. I created a new empty site on ddev and did some screen captures.
Comment #14
stborchertAh. 🤦♂️ You don't see errors and warnings if you configure Drupal to not display them.
Thanks for the videos, that helped a lot. I've committed some changes that should finally fix this.
Comment #15
kenrbnsn commentedAll fixed (for now...)
Thanks
Comment #16
jhuhta commentedThis fixes the issue for us too.
Comment #17
stborchertComment #18
onfire84 commentedGreat to see this fixed!
Would it be possible to have a new release here? I feel a bit uncomfortable to use a dev version in production.
Comment #19
plkThe fix in the dev Branch "10.0.x" fixed this issue for me.
But the null checks and the fix is not founded in the 10.0.2 release.
Would you please release a new version?