All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
97 views

Why is CloudFlare blocking file uploads?

I have a simple form where people raise IT helpdesk requests (oh, the irony...) and this creates a case in CiviCRM. It's an unsophisticted but cheap helpdesk system for the few requests we get. A ...
ChumKui's user avatar
  • 139
0 votes
1 answer
128 views

Inject a class as depency injection in a service

I just want to inject a custom module class A as a dependency injection for a custom service. I tried but I failed. Can any one please guide me. I'm using Drupal version 10. Here is my code. moduleb....
zed Blackbeard's user avatar
0 votes
1 answer
37 views

Configure new site automatically

Is there a way for me to automate the form-filling steps on a brand new site's /install.php? I'm doing a bunch of experimenting where I set up a site inside a Docker container and try some stuff out, ...
Ken Williams's user avatar
-3 votes
1 answer
65 views

Adding URL redirect showing path http instead of https in redirect [closed]

I have ssl enabled but Adding URL redirect showing path http instead of https in redirect. How we can changes http to https.
new dev's user avatar
  • 11
0 votes
0 answers
19 views

Email field is not migrated

I am trying to migrate an email field from Drupal 7 profile2 (don't think that matters) and it becomes blank on the Drupal 9 instance. The remaining fields migrate without any issues. My process ...
user111465's user avatar
0 votes
1 answer
27 views

How do I programmatically disable a filter from a text format?

Suppose I have a text format like full_html and I have an enabled filter with ID my_filter_id. How can I disable the filter programmatically from full_html. I needed to put this in an update hook. ...
pmagunia's user avatar
  • 697
0 votes
0 answers
33 views

How can one share content and users between two domains without using Domain module?

We have DomainA and DomainB that we want to both redirect to the same Drupal site. Because we want to share content, users, and database. The reason for this is because we are whitelisting our site to ...
John Wick's user avatar
-2 votes
1 answer
88 views

Constantly creating new Anonymous users

I find that my instance of drupal is always "creating" new anonymous users. I have an even on Create New User that simply logs the name to a file, and it is filled with entries like 2023-10-...
dmgig's user avatar
  • 129
0 votes
0 answers
26 views

How to make autocomplete works with the Japanese language?

I'm working on setting up search with the Search API module and Elasticsearch, for the Japanese language. Following what described in How to implement Japanese full-text search in Elasticsearch, I ...
Nasreddine's user avatar
0 votes
1 answer
52 views

Configuring dynamic PHPUnit environment variables

Current State: I'm currently working on running PHPUnit Browser tests in Drupal, and I've successfully configured my phpunit.xml file with these environment variables: <env name="...
Marwen Amri's user avatar
0 votes
1 answer
55 views

Why doesn't my completion message show?

I have this form to handle a custom content entity: created by this code: public function buildForm(array $form, FormStateInterface $form_state, $contractId = NULL) { Some code to inialize ...
gbmapo's user avatar
  • 1,066
0 votes
1 answer
13 views

Promotion options not visible to Editor role

I have a "Editor" Role with limited access rights. It can basically only create blog type nodes. I'd like to expose to them the possibility to make to publish the node to the frontpage via ...
Andreas's user avatar
  • 372
-3 votes
1 answer
42 views

A complicated question about views, pls help~ [closed]

May I ask how to achieve this requirement? There is a task content type, which has an applicant field, which is multi-valued (that is, a task allows multiple people to apply at the same time), which ...
Major's user avatar
  • 1
0 votes
1 answer
21 views

How to move on to the next profile page in views after flagging a profile within the view?

I created a view that current user can use to search/view user profiles. The view lists user profiles and shows one at a time. A profile page can be either flagged “Like” or “Pass” (dating website ...
Dee's user avatar
  • 512
1 vote
1 answer
70 views

Stylesheets not loading

Has anyone successfully dealt with this kind of error? [Error] Did not parse stylesheet at 'https://*****.***/core/assets/vendor/jquery.ui/themes/base/core.css?s2pf9q' because non CSS MIME types are ...
Cary Gordon's user avatar
1 vote
1 answer
33 views

How to add extra validate hook to the order information form?

I am trying to collect additional information on checkout to add to the order. I have added new fields to the order entity and then used hook_form_commerce_checkout_flow_multistep_default_alter to add ...
liquidcms's user avatar
  • 1,224
0 votes
0 answers
52 views

TriggeringElement not working properly for my ajax form

<?php namespace Drupal\demo\Form; use Drupal\Core\Form\FormBase; use Drupal\Core\Form\FormStateInterface; use Drupal\Component\Serialization\Json; use Drupal\node\Entity\Node; use \Drupal\...
Z CHAMP's user avatar
  • 62
1 vote
0 answers
52 views

upgrade_d7_file_private failed

i am trying to migrate drupal 7 private files to drupal 9 Step 1 :- i have modified below file /opt/httpd/htdocs/staging/sitename/master/web/core/modules/file/src/Plugin/migrate/source/d7/File.php ...
Ali Rizvi's user avatar
1 vote
2 answers
119 views

Should I migrate my site from Drupal 7 directly to Drupal 10, or via Drupal 9?

I have been working through some upgrade issues with a site migration from Drupal 7 to Drupal 10. In my tests I have been running migrations from Drupal 7 to Drupal 9. I wondered if there is any ...
Lemmy's user avatar
  • 201
0 votes
1 answer
49 views

How to hide a region in a node (most preferably without a module)?

I want to hide the sidebar region only in my homepage. CSS display:none for the sidebar region is not enough because main content won't expand to cover the actual region so I think about using a ...
fuzzy_designer's user avatar
2 votes
1 answer
52 views

Drupal unable to login and logout several accounts in a single functional test

I am trying to run some functional tests in DDEV that check functions of protected routes. I can log in the first couple of users fine, but after that drupaLogin() fails to generate a logged in ...
Kevin's user avatar
  • 27.7k
1 vote
1 answer
122 views

How to make the “last access time” field visible to anonymous users?

I have configured the user data display to show the last access information, but only me as I have the admin role can see it, anonymous users can not, nor even authenticated users: So my question is ...
Andrés Chandía's user avatar
0 votes
0 answers
19 views

Webforms setElementData on checkboxes

Here's a form with two elements: A checkbox field and a checkboxes field. langcode: en status: open dependencies: module: - my_module weight: 0 open: null close: null uid: 1 template: false ...
esod's user avatar
  • 309
1 vote
1 answer
23 views

Nginx: block access to extensionless LICENSE files

The Drupal Nginx recipe doesn't block access to extensionless files (such as files named "LICENSE"), and it also allows access to LICENSE.md and other files that can be checked to see what ...
mbomb007's user avatar
  • 514
0 votes
1 answer
100 views

Why does Ajax prevents managed_file to be displayed?

I have this form created by this code: public function buildForm(array $form, FormStateInterface $form_state, $contractId = NULL) { some initialisation code... $database = \Drupal::database(...
gbmapo's user avatar
  • 1,066
0 votes
0 answers
31 views

Why does a custom matcher cause a linkit profile to be deleted on module uninstall?

In a custom module, I've set up a custom EntityMatcher in order to get suggestions for instances of my custom entity type in the linkit dialogue. This all works very fine. However, when uninstalling ...
MSNOP's user avatar
  • 11
0 votes
1 answer
96 views

How to return failure with an event subscriber?

I have an event subscriber that deducts a credit when someone makes a booking. If there are no credits left, how do I return a failure and stop the booking being made? The subscriber is acting on ...
Interlated's user avatar
  • 1,405
0 votes
1 answer
75 views

Passing variable from parent paragraph to children without using getParentEntity

I have a paragraph called Boxes which is a parent paragraph referencing to many paragraphs of type Box. I have written the preprocess function of paragraph Boxes which contains some logic that can't ...
Mira chalak's user avatar
0 votes
0 answers
54 views

View breaks the page output

Has anyone encountered this problem or can at least help me debug it? The views is displayed as standard if the parameters are specified. Format:Unformatted list | Settings Show:Field If I change it ...
drupnub's user avatar
0 votes
1 answer
36 views

Order is not geting created, but transition is happening in cart

I am doing an Offsite redirection payment with Drupal Commerce. I have a custom payment workflow defined in my_module.workflow.yml as follows: order_linktypeplus_validation: id: ...
KTM's user avatar
  • 2,352
3 votes
1 answer
99 views

Check for active/qualified session in EventSubscriber, destroy session and cookies if not

I have an application that has a custom SSO with a third party service. We are porting Drupal 7 code to Drupal 10 to continue the functionality. Previously we had a hook_init function that did the ...
Kevin's user avatar
  • 27.7k
-3 votes
1 answer
76 views

Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2022-07-22/3238515-8-17-no-link-template-except [closed]

Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2022-07-22/3238515-8-17-no-link-template-exception.patch. below is composer.json file code. { &...
Drupal's user avatar
  • 1
0 votes
0 answers
48 views

403 when trying to retrieve data via the JSON:API

I'm trying to find all taxonomy terms, where one field IS NULL via the JSON API. So I'm testing to retrieve a node via the name and it works without any issues: /jsonapi/taxonomy_term/tax?filter[title-...
Chris's user avatar
  • 277
1 vote
1 answer
78 views

Can't access data posted from Dialog.ajax to dialog box

I am opening a simple dialog box from Ajax, using the following code- var exportActionDialog = Dialog.ajax({ dialog: dialogSettings, dialogType: 'modal', type: 'POST', url: '/web/admin/crm/...
ilechcod's user avatar
  • 113
0 votes
0 answers
51 views

massageFormValues not being run on custom form

I've built a widget for my custom field and this works OK when I create / update a "normal" node edit via the normal D10 content interface & forms. I've added this widget to a custom ...
Alex Monaghan's user avatar
0 votes
0 answers
110 views

How do I implement email dispatch with Drupal Symfony Mailer from scratch?

I'm implementing a cron job that should send a notification email to all users that meet a certain criterion. I created a Service implementing the CronInterface and hook_cron calls this service's run()...
flauschi's user avatar
0 votes
2 answers
140 views

Composer issues when trying to upgrade

I'm trying to upgrade from Drupal 9 to Drupal 10, and I'm running into errors from composer. Here's the command I'm using: composer require drupal/core-composer-scaffold:10.1.5 drupal/core-recommended:...
Lambic's user avatar
  • 708
0 votes
0 answers
45 views

route resolving corrupted

I have a weird situation. Somehow some routes got corrupted and I cannot fix them. So the /user/:uid/edit and /user/register are corrupted, the /user/:uid , /user/:uid/anything-else , /user/login or /...
Marius Ilie's user avatar
  • 3,072
0 votes
1 answer
40 views

In Multisite setup the custom page '/speakers' should available on domain1 site only

I have Multi-site setup , want to make available custom page say '/speakers' on domain1 site but not on domain2 site I have tried to figured out in routing.yml file to check is there way to pass any ...
mini's user avatar
  • 692
1 vote
0 answers
83 views

Disable custom module Block Caching or force correct caching

I have build a custom module that builds out a list of child page links based on 'this' page's id. Logged in it works as expected. But an anon user has problems which range from the block not showing ...
ice70's user avatar
  • 121
1 vote
0 answers
117 views

Issues using placeholdering + bigpipe with varnish and CDN for personalised block based on IP

My use case is to show a block of recommended nodes on a node page. This should be personalized by IP address, so if someone's IP address indicates they are from x location show them y block and vice ...
chap's user avatar
  • 347
1 vote
0 answers
45 views

Add cancel button to Inline Entity Form/Entity Browser dialog

We're using Inline Entity Form to give users the ability to create new nodes of a different content type and add them to the being edited/created node. When using one of the IEF widgets, there's a ...
fallenturtle's user avatar
1 vote
0 answers
104 views

Unclear what the Redis "Render cache entries with most variations " means in the Redis report

We've recently started using Redis, and the report page shows a "Render cache entries with most variations" list. I've got about a dozen items that look like this: entity_view:block:...
zip_000's user avatar
  • 11
0 votes
1 answer
52 views

How to send file from React to Webform via Rest

I want to send an attached file in a React form to Drupal Webform via REST , but don't know how. I am sending the other fields successffully. They appear in the List with submissions. Here is my code: ...
Anatoli Asenov's user avatar
0 votes
1 answer
49 views

How can I get the human name from the machine name for an extension?

I want to get the human name from the machine name for an extension (i.e. a module or a theme). I know that I can do this for a module by this call: $human_name = \Drupal::service('extension.list....
Free Radical's user avatar
  • 15.1k
0 votes
1 answer
66 views

How to have views exposed filter value show as different value in the url?

I have a search page with a Views exposed filter for the name of a taxonomy term. I have added an #autocomplete_route_name to the form element to make this an autocomplete selector for my term names. ...
liquidcms's user avatar
  • 1,224
2 votes
1 answer
114 views

Change Priority of ServiceProvider class

I have a module, pod. I am attempting to alter another service (group.relation_handler.access_control.group_content_menu), by implementing Drupal\pod\PodServiceProvider::alter(). This is working ...
Jaypan's user avatar
  • 17.3k
0 votes
0 answers
18 views

Prevent view results duplicate caused by workflow transitions

I have a view that lists content fields and it works fine, but, if I want to add a workflow field to the result (I have a field called reject_reason attached to workflow), I added workflow transition ...
Abdulmuhaymin's user avatar
2 votes
1 answer
121 views

What is the approach for autocompletion of links in CKEditor5?

I have a new install of Drupal 10 with CKEditor 5 enabled, and I thought that CKEditor 5 now provided autocompletion of links, as used to be provided by the Linkit module. However, whenever I try to ...
Monkeybrain's user avatar
1 vote
1 answer
170 views

Command "cim" is not defined

I'm getting the following error while running drush cim on a new environment to import the configurations as they exist in the repo: Command "cim" is not defined also: Command "config:...
DriveItLikeYouStoleIt's user avatar

15 30 50 per page
1
3 4
5
6 7
1750