How to create a php node

Hello,

I created a php file here:

examplesite/themes/bootstrap/templates/node/thanks.php

Content of the node

<h1> hello </h1>

When I go to the directory at the browser examplesite/themes/bootstrap/templates/node/thanks.php

I get

The requested page could not be found.

. Please advise!

How to set values into webform submission fields (entity_type and entity_id)programmatically ?

Hi all, I create a custom module and I want to know how can I set values into the webform submission fields (entity_type and entity_id) manually. I add a submit handler to get the id of the current submission. I loaded the webform submission by ID and now I have to set the entity type and the entity id manually. I know that the webform can detect these fields automatically, but I have a complicated client demand, that's why I have to make it manually.  

In the "WebformSubmission.php" file I can't find "setSourceEntity()" function, and I just find the "getSourceEntity()". 

ERROR UNRESOLVED DEPENDENCIES

after updating drupal 8 i get this error

> Webform views require webform >=6.x 

If i run: 

> composer outdated drupal/*

Everything is up to date, webform is 6.x-dev

How can I solve?
 

Bootstrap carousel loading when ajax is set to Yes

Hello,

I have two views bootstrap carousels in two different sites. Views > Advanced > Use Ajax to Yes for both. One site does not reload the page another site reloads the page during the slideshows. When I say "reload", it means if I am on the node where the slideshow is, I see the node is bit refreshed/auto scroll up(it may not be the complete reload like F5) as the slider is sliding. 

Please advise!

Field (x) exists but is missing a corresponding field definition and may be misconfigured

I seem to have a comment field that is a remnant that I cannot get rid of. I have a website upgraded from Drupal 7 a couple years ago and am on Drupal 8.9.11. There are the 2 errors in my log, which indicate the error, but the error actually prevents a few other things on my website from working properly.

Field comment.comment_node_vegetation_communities.comment_body exists but is missing a corresponding field definition and may be misconfigured.

404 on all pages except home [Nginx]

Hi,

I know this is very old and know issue in Drupal and there a very handy dandy guide available to fix the problem and I know how to fix this issue BUT on an Apache server. I have been using apache all my career (more than 6 years now) and recently changed my mind to switch to nginx after a discussion with a colleague.

Nginx Installation:

So I installed nginx using brew;

brew install nginx

Output;

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x