Closed djvilione closed 5 years ago
I can verify that downgrading the JSON:API Extras module to version 3.4 and the JSON:API module to version 2.3 solved this issue for me.
$ composer require drupal/jsonapi_extras=3.4
$ composer require drupal/jsonapi=2.3
$ drush cache:rebuild
This should now be fixed thanks to the latest release of JSON:API Extras, no downgrade necessary anymore.
Thanks for contributing to the issue queue!
@e0ipso I'm still seeing this same problem after a fresh install with:
8.x-3.5
8.x-2.4
8.x-1.0-beta3
If I insert a simple return statement as the first line in contenta_enhancements_node_view_alter
, I have no issues. As far as I know, I don't have anything strange in my configuration (I've tried to keep it simple).
Would you consider re-opening this issue, or should I create a new one in one of the above projects?
Would you consider re-opening this issue, or should I create a new one in one of the above projects?
Absolutely. Can you share the error messages here?
Same here: The website encountered an unexpected error. Please try again later.
Message | LogicException: Render context is empty, because render() was called outside of a renderRoot() or renderPlain() call. Use renderPlain()/renderRoot() or #lazy_builder/#pre_render instead. in Drupal\Core\Render\Renderer->doRender() (line 241 of /home/website/website.com/contentacms/web/core/lib/Drupal/Core/Render/Renderer.php).
Know in the past had to deal with contenta_enhancements... may have to do with being in core now - never changed contenta_enhancements. ALSO see, DO: jsonapi_extras/issues/3045087 & jsonapi_extras/issues/3044925 (and /schemata/issues/3045194 & schemata/issues/3044788 Have no Idea why got posted there? Can see it related to contenta_enhancements) all seem related. But think the fix is needed in contenta_enhancements... it is also the longest non upgraded part.
I've been upgrading the same Contenta site for 6-7 months... Actually only have contenta_enhancements module in the database code, as I don't see it in /contrib module folder anymore! -so don't know when it was removed from the contenta config.json... I've just used 'composer update' and lots of reading the tea-leaves on fixes to keep it up and running all this time from the original install.
Good stuff you guys been doing. Looking forward to meet in Seattle.
In chatting about this on the Slack channel, I believe it's a Schemata issue at this point.
Thanks for the patience here, there are many moving pieces to this. At the moment https://www.drupal.org/project/jsonapi_extras/issues/3049221 is a known issue that may cause this.
After updating JSON:API to 8.x-2.4, node views which display the JSON object are broken. I'm not sure if this is a Contenta, JSON:API, or JSON:API Extras issue, but can confirm that the site breaks in contenta_enhancements_node_view_alter when normalizing $entity. The on screen error is: