Questions tagged [8]

Version tags should be used for questions that apply to a version only, not to merely say what version a site is using.

Filter by
Sorted by
Tagged with
-1
votes
0answers
19 views

Apply patch : 1 out of 1 hunk FAILED

I'm trying to apply a patch on the content_synchronizer module in order to test how patches work. So i've cloned the repo to into some dummy folder, do some changed and then run this command git diff ...
1
vote
0answers
11 views

How can I receive and process form data submitted from an external site?

I'm working on a CRM implementation in Drupal for a client and they have an existing website with forms on for people to make enquiries and so on. They would like the data submitted via those forms to ...
0
votes
0answers
8 views

How to fix this DateFormatter error upon saving a node?

I am getting an intermittent error upon saving a node. A google search returns a few similar errors but most relate to contrib modules. This appears to be related to core. Any suggestions of the cause ...
0
votes
0answers
19 views

Module update with composer, updates module but not really

I am updating modules on my drupal site and I am using the composer like this: composer require 'drupal/module' The output I get from composer looks like everything is working fine but when I go to ...
0
votes
0answers
8 views

Old GZ file is generated after editing CSS original

After editing CSS file in the /sites/default/files/css directory I removed its GZ version and it's generated after a while, but with old CSS code. How to edit CSS correctly? And how to force ...
0
votes
1answer
12 views

How to programmatically limit access to node specific display?

I want to programmatically limit access to the specific displays of nodes. For example, I want to limit users to viewing nodes in the "full" display but let them viewing nodes in the teaser ...
-1
votes
0answers
16 views

Breadcrumb showing username instead of group name

I have created a group and reached to members adding page. The displaying breadcrumb is below. I have install group 8.x 1.3 module Home > username >> Content >> Add >> Group ...
0
votes
1answer
14 views

View Displaying Incorrect Image

I'm not sure what happened with the View I created, but it is displaying the incorrect image when it's on my site. I've selected the Desktop Hero Image to be displayed in my View, but the output on my ...
0
votes
1answer
20 views

Class Drupal\dfm\EventSubscriber\DfmSubscriber not found when try to remove the Drupella File Manager

I installed the Drupella File Manager module for Drupal 8.8, but I have Drupal 8.7. I received this error. Call to undefined method Drupal\Core\File\FileSystem::scanDirectory() I don't need the ...
0
votes
0answers
40 views

Get the value of a field to do an if statement Twig

I am trying to generate a PDF with Entity Print. Until then all is well. In my Twig page, I try to make conditional displays. But I can’t get the conditions to work. I render my fields using {{ ...
0
votes
0answers
27 views

With sites/default/files not part of the git repo, which content will be used in dev?

I am using a composer managed Drupal install and want to use git to move it between development and production environments. From what I understand, the only directory that is not supposed to be in ...
0
votes
1answer
30 views

The contact block isn't displayed after clicking the button Clear all caches

I see in the page source code that the HTML code is ended before the place where the form should be. If I comment the line containing {{ drupal_block('contact_block') }} in Twig template, the HTML ...
-2
votes
0answers
26 views

webform feature compatible modules [closed]

can anyone suggest me which modules are used tracked webform submission data ,webform submission confirmation?my requirements are 1.want to convert the term ids for webform select lists mapped to ...
0
votes
0answers
18 views

Integrating jQuery Auto Height with Views Infinite Scroll

I have a views block with an infinite scroll (using Views Bootstrap and Views Infinite Scroll modules). The block displays cards and I want them to have the same height. jQuery Auto Height does that ...
0
votes
0answers
19 views

How do I add update/delete buttons to a custom module items list in a table?

I have made a custom form for customers to fill out their selling requests. And made a view item list for the administrator to view the details. Now I want to add the buttons to edit and delete the ...
-1
votes
0answers
19 views

jQuery validation is not getting translated

Drupal 8 file extension validation error not working with translation. Screenshot
0
votes
0answers
9 views

Custom User Field Hook_query_view_alter()

I want to dynamically filter a view using the hook_view_query_alter. My goal is to be able to display all the users for the sub-admin in a view that has the same custom field as it. But I don't ...
0
votes
1answer
14 views

How to set default value on Select2 Autocomplete via hook_alter

What's the best way to set a default value to a Select2 autocomplete field widget on form load (I'm using a reference view to populate options). I've tried a ton of different variations from within ...
0
votes
0answers
40 views

Programmatically create a new image style

I'm creating my own module and I need to programmatically create an image style to use with a new media type. I found the core/profile/standard/config/optional/image.style.max_1300x1300.yml file whose ...
0
votes
1answer
16 views

Access a user entity reference in a commerce-product template file

I have a field_intervenantfield which contains a user entity reference. In the commerce-product template file, I want to access the description field of each intervenant. How can I achieve it? I tried ...
0
votes
0answers
16 views

How to send email verification link with webform?

I am using a webform for anonymous users (logging in is not an option). Once a webform is submitted, I want to send out an email asking to click on a confirmation link. Only once this link is clicked, ...
0
votes
1answer
28 views

html Form within a block

I have a form within custom block in drupal 8 and I know that this is not the right method to write a form within a block but someone wrote it and I am trying to fix it without changing the method. ...
0
votes
0answers
30 views

How do I add a custom URL for node/add/{custom-content-type}?

I have a custom content type which I fill up with the help of the Forms Steps module. I want to set custom URL for node/add/{custom-content-type}. I tried using a route subscriber and the following ...
0
votes
0answers
13 views

How to get a product variant field (not attribute) value?

I have created a product variant with 1 attribute (say "Subscription Plan" or attribute_sub_plan) and 1 field (say "Number of Issues" or field_num_issues). The attribute was for ...
0
votes
1answer
20 views

How to get current user jwt token?

In a custom module, I need to get the jwt token (access_token) related to the current user. Following this issue I've tried to get it, but without success, because get_jwt_key() and jwt_token_params() ...
1
vote
0answers
53 views

Upgrading core from 8.7.10 to 8.9.16

My current site version is running on Drupal 8.7.10 and I want to upgrade it to 8.9.16. I backed up all the files and folders. Should I backup the Pathauto module, update the new Pathauto module, and ...
0
votes
0answers
14 views

How to remove home in a breadcrumb from a specific page in easy breadcrumbs and add carets for the breadcrumbs?

I've been using the easy breadcrumb module in Drupal 8, I enabled the option - "Include the front page as a segment in the breadcrumb" for all pages, but there are few pages for instance /...
1
vote
0answers
18 views

Webform token won't render value in iframe

I have an iframe in which I'm trying to include a token which is a value from a select list. In the code below, this value: [webform_submission:values:choose_video:raw] Won't render in the iframe, ...
0
votes
0answers
21 views

TypeError for Argument 2 in Solarium Client [closed]

I'm trying to start a client using Search_api_solr v4.1 and Solarium v6.0 but I keep getting a TypeError. TypeError: Argument 2 passed to Solarium\Core\Client\Client::__construct() must be an ...
1
vote
0answers
44 views

Using a #submit callback on a textfield

We have a need to add 'repeatable fields' to a form based on input provided in a textfield. Usually, we use a 'add another' button to keep track of the number of fields to render in the buildForm(), ...
0
votes
0answers
48 views

I installed Solr for the Search API Solr can someone can give me hints what i could have done wrong?

I'm currently running a CentOS 7 server with cPanel and Drupal 8. I installed Solr 8.8.1 and I can access the administratrion page where I an able to create cores. I installed the Search API module ...
0
votes
0answers
23 views

How do I install Drupal with multiple custom languages using drush?

I know I can install a new Drupal web site with single custom language using: $ drush si standard \ --db-url='mysql://[db_user]:[db_pass]@localhost/[db_name]' \ --account-name=admin --account-...
1
vote
1answer
31 views

Problem removing field collection module

We recently migrated successfully in our drupal 8 instance from field collection module (latest alpha) to paragraphs. Now I am trying to remove the field collection module from our drupal instance, ...
1
vote
0answers
21 views

How to allow   (and other HTML entities) in ckeditor?

Our customer want to be able to add thin spaces in addition of non breaking spaces. But when we try to add the character   in source of ckeditor, ckeditor doesn't keep it and convert it as ...
0
votes
1answer
30 views

Rules Custom Field

I am developing a Drupal site, where the administrator creates user accounts. Indeed for this site the administrator creates user accounts, he fills in the fields with the strict minimum (Last name, ...
1
vote
2answers
41 views

Incorporating logs into Splunk

As of now we are running Drupal 8 and we would like to send the Drupal logs to Splunk. I have researched several plugins for Drupal that did such a thing, unfortunately they were all for Drupal 7 and ...
0
votes
1answer
5 views

LIKE operator to load taxonomy term

I want to retrieve a taxonomy term using this line: $term = $this->entityTypeManager->getStorage('taxonomy_term') ->loadByProperties(['myfield' => 'mytext']); How can I rather use ...
-1
votes
2answers
39 views

How can I get the current URL including all query paramters as a string in a template?

I am trying to get a URL including all parameters as a string in a Twig template but I'm unable to achieve that in Twig. Is there a way we can get the url include parameter as string in Drupal 8? I ...
1
vote
1answer
31 views

Why can't admin access private file?

I have a file field as part of a Paragraph. The Paragraph is attached to a node bundle. Each paragraph can hold a single file. I have added the same file to the node (each in its own paragraph) ...
0
votes
0answers
14 views

Problem sending mail through a REST API

I have a site developed with Drupal 8. I created a REST API to consume from the app and also from another site and they work well. What I have not been able to do is send an email through an API I am ...
0
votes
0answers
35 views

Error with creating custom fieldtype

I am creating a custom multi-value fieldtype for some functionality that I need. I have been using the drupal core 'telephone' module and the contrib 'address' module as reference, but am running into ...
1
vote
0answers
20 views

Force field “location” in layout_builder

I'm using layout_builder and have a node bundle that allows for layout customization per entity. Right now, I have a default layout that places a few fields on the page. The problem is, users can then ...
-2
votes
0answers
23 views

How do I programmatically add a user? [duplicate]

I am working on oAuth integration with Drupal. I'd like to programmatically assign users to groups upon logged in. Does the Group module have an API to accomplish something like this?
0
votes
0answers
26 views

Redirect to another action in submit function in a multiple button form

I wanted to alter a form to add a new button. I implemented the hook_form_alter() and this works fine. function mymodule_form_alter(&$form, FormStateInterface $form_state, $form_id){ $confirm = ...
0
votes
1answer
44 views

PHP Script taking up way more memory than expected

We have a script that is meant to clean up some user data. Essentially, we 1) load all user ids and loop through them. For each user we 1) load the user object then 2) alter some data and finally 3) ...
-2
votes
0answers
47 views

No connection to database after project change

I have set up several projects on my local computer, all projects run in docker containers. Here are the projects: drupal_projekt_1 drupal_projekt_AB drupal_projekt_43 For a while I worked on the ...
-1
votes
1answer
28 views

Add custom form to content type (Basic Page or any) using custom extesnion

I am new to Drupal. Actually, I have to add a custom form to the content type and it will be visible to the frontend user where they can submit their response. So I have created the form and save the ...
2
votes
0answers
46 views

How to kernel test a custom formatter for an entity reference field type?

We have a custom field formatter for a string and an entity reference field type. While this works for testing the string field: $node = $this->createNode(['type' => 'page', 'field_id' => '...
-1
votes
1answer
23 views

Download Single Webform Submission CSV

I would like to download the webform submissions one by one. Currently the core of Webform owns to download all submission data to a CSV. Webform -> Result -> Download How to download one ...
0
votes
0answers
25 views

304 Responses / revalidations

We have a Drupal 8 site, using nginx and Adv/Agg with typical settings. Our server never returns 304 response codes to requests for html documents, even if the etag is unchanged. It always returns a ...

1
2 3 4 5
314