Theme not working

Hello,

I am new to drupal.

I had installed Drupal 8 and I had uploaded the theme which I already had, but when I try to browse the website, it is giving me the following error:

The website encountered an unexpected error. Please try again later.

How can I troubleshoot the error and make the site work?

Thank you 

Can anyone point me towards a well documented/How to tutorial for Decoupled Drupal

I've been looking around and have run into the REST and JSON:API modules but have not had much luck for what I am looking for. Any other good resources on the matter? 

How do I find out where a twig variable is coming from?

In Drupal, I need to change the output of a template. I'm curious where I can find out this variable chat or phone is originating from?  Is this field from a content type?

{% if chat or phone%}
<ul class="utilities-list no-bullet clearfix">

Print fields of content of a referenced entity field in paragraph template

I currently have the following scenario:

There is an entity reference field in my paragraph, in which you can select a content of a certain type. I now need to print fields of the content referenced in that field in my paragraph template.

I have not yet managed to get any field printed. 

I have tried the following with field_reference being the entity reference field in the paragraph:

{{ content.field_reference.0.entity.title }}

{{ content.field_reference.entity.title.value }}

and variations of it but nothing rendered anything.

Sudden 500 error on one page only

I've been building a site for a while now and everything is working fine, but suddenly on one certain page I get the infamous 500 error.

So every other page works fine, but this one doesn't. There is nothing in the watchdog or the server side logs. Also the page was working fine yesterday and nothing concerning it has changed, so this is a bit weird situation.

Twig Debug...

Hi all,

Just a simple question.  I was having issues getting twig debug to turn on with Drupal 8.9.13.  I tried all sorts. 

In end number 2 in this post:

https://stackoverflow.com/questions/42794112/drupal-8-enable-twig-debug-not-working

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x