Questions tagged [drupal]

Drupal is an open source CMS framework written in PHP. *IMPORTANT* Rather than using this tag, consider posting your question directly on https://drupal.stackexchange.com/. Also, because of substantial differences between major versions, consider using either the drupal-6, drupal-7 or drupal-8 tags.

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

3 errors during Drupal 10 version upgrade in my console

I perform the version upgrade in drupal 10, in my console, I still have these 3 errors that I cannot correct. I've been stuck on it for 2 days, does anyone have a solution? I searched on the net to ...
Damein's user avatar
  • 1
-2 votes
0 answers
15 views

Download a file and then Redirect in DRUPAL WEBFORM HANDLER [Without Using JS/jQuery] [duplicate]

I am facing an issue while redirecting the user after downloading a file in DRUPAL WEBFORM HANDLER. I have tried to debug the issue but nothing worked out. The most important thing is I need to ...
Amrinder Singh's user avatar
0 votes
0 answers
4 views

Drupal 9, filter two views on single page based on same filters

There is one page containing a view for doctor listing which gets filtered based on the facets. Two facets are "Speciality" and "Location". Thse two fields are tagged in the doctor ...
Vaibhav Yadav's user avatar
0 votes
0 answers
6 views

Why does my custom Drupal module's config file return null?

I'm trying to use a config file in a custom Drupal module. I've followed the the instructions from the following resource: https://www.drupal.org/docs/develop/creating-modules/defining-and-using-your-...
khastick's user avatar
0 votes
0 answers
8 views

Mass delete multiple Drupal nodes via PHP

I have created a script that connects to a Drupal 9 database, and then creates a table of the posts added in the last month (including some additional columns created joining some tables). <?php $...
MultiformeIngegno's user avatar
0 votes
0 answers
5 views

Acquia - Get task context in web hook

What I want is to know if it is possible to get the "task" details in the web hook sripts, post a deployment job in Acquia cloud. Let me explain a bit more. In the post-code-update hook, ...
Pratip Ghosh's user avatar
  • 1,790
0 votes
0 answers
6 views

Nginx won't return 304

Trying to return 304 on Nginx (see following response). Nginx 1.2, PHP FPM 7.4. Is there any other thing I am missing?. There is no reverse proxy. Location Block is as following: location ~* ^.+\.(?:...
JM John's user avatar
  • 23
-1 votes
0 answers
20 views

How to connect oracle DB to php in local XAMPP server

I have been trying to connect Oracle DB coonection to my Local system with XAMPP server, I have PHP 7.4.10. But Whenever I try to use php function "oci_connect". It says: Call to undefined ...
Akash Shaw's user avatar
-1 votes
0 answers
19 views

How do I address fatal error running Composer?

Newbie question: When attempting to run Composer (any command involving Composer), I get the following error: Fatal error: require(): Failed opening required 'phar://composer.phar/bin/composer' (...
Webmaster Energy Justice's user avatar
0 votes
0 answers
18 views

In drupal, I want to allign every product on same Line in bootstrap theme

I am developing an E-commerce site for that i am using Bootstrap theme & Accordion module. I have added taxonomy for all Categories with their respective sub categories. After that i have added ...
Surya kiran's user avatar
0 votes
0 answers
20 views

Drupal : Custom access for a web-based custom type

For my Drupal site, I maid a custom type named MyCoolCustomType. I'd like to grant access to view this customtype only to certain condition on user role and properties of the custom content itself (ex....
Ben's user avatar
  • 62
0 votes
0 answers
15 views

How to add the title with a sequence number to inline entity form?

I have an edit form of a custom entity that is passed to the controller: $form = $this->entityFormBuilder()->getForm($entity_quote, 'edit'); This custom entity has the reference field to another ...
bimsalrobit's user avatar
0 votes
1 answer
21 views

bcmath extention is enabled in my ubuntu system for php 8.2, but drupal 10 commerce module it is showing error

$ php -i | grep -i bcmath PHP Warning: Module "gd" is already loaded in Unknown on line 0 /etc/php/8.2/cli/conf.d/20-bcmath.ini, bcmath BCMath support => enabled bcmath.scale => 1 =&...
Anuraag Moharana's user avatar
0 votes
0 answers
21 views

Drupal 10, Taxonomy term View:

'Fields: Taxonomy term revision: Revision user' simply doesn't work. Similar field in Content View works as expected. There are even empty markup (Inscpector: FF Inspector SS Am I doing something ...
Ats Miller's user avatar
0 votes
1 answer
13 views

In drupal 10, Can i use devel generate module for ecommerce site?

I have content type with fields Product ID, Name, Image, description, category ( taxonomy ), price. Can i Create sample products and select the respective sub categories with devel generate module ?
Surya kiran's user avatar
0 votes
0 answers
15 views

Drupal CKEditor 5 custom plugin focus stays on toolbar button after clicking

I've created a custom CKE5 plugin that is working as it should with one exception. The plugin uses the insertContent method to insert an inline html tag wrapping some editable content. BUT after ...
Fmyles's user avatar
  • 1
0 votes
0 answers
34 views

Drupal 10 : Why my private contenttype's fields are viewable by anonymous?

I made a custom contenttype in drupal UI, and I want it to be available only for editors so I don't check the box "published" when I'm on my custom_contenttype_edit_form. I grant to editors ...
Ben's user avatar
  • 62
0 votes
0 answers
12 views

Drupal : Can I have sound and playback at the same time?

My site is built with Drupal. I have integrated a player on my website reacheable with www.alafiatv.bj But when I unmute the sound, the video playback stops. Even if I restart playback, it doesn't ...
Jesdias LIKPETE's user avatar
0 votes
0 answers
13 views

How to best set CSS :root variables dynamically?

I run a Drupal site and I am in need of a way to customize CSS :root variables prior to page load. Namely I want to change some default colors to a user selected one. But I also want to change a ...
Eric's user avatar
  • 311
0 votes
0 answers
8 views

How do I put blocks inline in drupal without layout builder?

I am a beginner in Drupal. I am having a problem putting inline blocks. In layout builder, it is easy. add a section and put a block to the section. But I am building a site without a layout builder ...
MilanBogic's user avatar
0 votes
0 answers
16 views

Drupal Leaflet - How to hide markers and disable clusters on click

I want to be able to disable/hide all other markers and marker clusters when the "show on map" link is clicked for one location. This means that whenever a location link is clicked, only ...
Dana's user avatar
  • 1
0 votes
0 answers
8 views

Implementing Simplesamlphp in drupal 7 site. can not able to view simplesaml page. its loading folder structure

Implementing Simplesamlphp in Drupal 7 site. Downloaded simplesamlphp folder and placed on. Added below lines in C:\xampp\apache\conf\extra\httpd-vhosts.conf <VirtualHost *> ServerName ...
Babu A's user avatar
  • 11
-1 votes
1 answer
26 views

Drupal: Is there a "Large Print" display option?

I am working on a Drupal 10 site with a Bootstrap 5 (Barrio) custom theme. I have some older followers who would find it easier to view the site if the type was larger. I want to provide a large-...
Len Lamberg's user avatar
0 votes
2 answers
24 views

How can i place a region insde a block template on drupal 8

I have a block named block--system-branding-block.html.twig which contains some menu items. I need to show contents from block which is placed in a region as submenu item. How can i place a region ...
Steve James's user avatar
1 vote
0 answers
46 views

Composer updates at scale on Drupal 9 containers (ECS Fargate)

******EDIT I've boiled this down to the following: I am moving my composer require commands to image build time rather than run time. I am not sure if this is ideal but it feels better. The composer ...
Jordan's user avatar
  • 13
0 votes
0 answers
10 views

Replicate /system/files to get route or query param with full path

I'm trying to understand how the /system/files route works in Drupal 10 (or 9). My goal is to get a controller for a path which can have an unknown amount of subfolders and should stream files like /...
mpj's user avatar
  • 3
-1 votes
1 answer
74 views

Unable to create account in Sendgrid. Getting, You are not authorized to access SendGrid, please contact

I'm working with drupal 10, i want to work with Sendgrid module I tried to create sendgrid account.I have entered all the basic details it asked. Then I got two mails Two-Factor Authentication & ...
Surya kiran's user avatar
0 votes
0 answers
19 views

How is it better to install Open Social Distribution for Drupal in Container in Docker Desktop?

I am a beginner and need some help to find a good workflow for my task: I need to try localy different Drupal modules in frontend to understand if thay are useful for my future project (mostly in UX ...
Milana's user avatar
  • 1
0 votes
0 answers
13 views

Drupal 9 swagger-ui-formatter.js=1.0 is returning HTTP and not HTTPS

I am struggling on an issue. My drupal site using Apigee Kickstart is all https. The swagger module specifically swagger-ui-formatter.js=1.0 is returning http and giving me a mixed content error. I ...
SkipCody's user avatar
0 votes
0 answers
25 views

Drupal Commerce 2 - Modify Review Checkout Pane

I'm using guidance from https://docs.drupalcommerce.org/commerce2/developer-guide/checkout/replacing-existing-checkout-pane to try to modify the Review checkout pane. I need to check some data from a ...
Glenn's user avatar
  • 67
-1 votes
2 answers
33 views

Drupal 10 custom block with Bootstrap 5 dropdown button code - dropdown not functioning

I have a custom block in Drupal 10 with the Bootstrap 5 theme and I'm trying to create a functional Bootstrap 5 dropdown button on it. It renders fine but the dropdown function does nothing when ...
Fwells11's user avatar
0 votes
0 answers
14 views

D7 -> D10 upgrade login model with php

I'm currently working on migrating my Drupal site from D7 to D10 and need help with the on-page token authentication system. My site uses an interconnection system with other Drupal sites using a user ...
MiSuisse's user avatar
0 votes
0 answers
22 views

Drupal 9: list ordered items in the custom-made confirmation letter

I use a simple custom module to send confirmation emails in Drupal 9 Commerce 2 for a custom order states. The module resides in modules/custom/my_newmodule/src/EventSubscriber and it's in a php file: ...
loarrin's user avatar
  • 33
1 vote
1 answer
32 views

expand the list item based on the id

I have the following HTML content on the FAQ page. <div id="block-companysubtheme-content" class="block block-system block-system-main-block panel o-box"> <article ...
Tan's user avatar
  • 1,349
0 votes
1 answer
50 views

How to remove or disable " Subject " In Comments Field in Drupal 10

I am using Drupal 10 I have created a content type (Film Review) & added few fields like Comments & Image. So When i try to post comments using various roles ( for eg: Anonymous Role ) Comment ...
Surya kiran's user avatar
0 votes
1 answer
58 views

Create a custom Drupal image using Dockerfile for local testing

I'm trying to create a custom Drupal image for local testing, but I don't know what exactly to add in the Dockerfile's workdir, cmd, run and so on. I've been searching but there is no help from the ...
Se55's user avatar
  • 1
0 votes
1 answer
20 views

figuring out the proper location of defining my javascript in drupal for specific page manipulation

First time touching Drupal 9 and I have got a site working locally on my computer using Docksal , Docker on Ubuntu 22.04 WSL 2 where I can test/make any changes. I have a Frequently Asked Question ...
Tan's user avatar
  • 1,349
0 votes
0 answers
10 views

Is there still a UI to edit a table in Drupal 10?

I'm working on a project in Drupal 10. I used composer to build the project and used the standard installation. When I go to add a table in the content management section, I can select the number of ...
zoidberg's user avatar
0 votes
2 answers
32 views

Using Python to upload an image to Drupal

Via the JSON:API I'm creating and updating content entities on Drupal 9.5.8 - for content, taxonomies, relationships it's working fine. But I can't get images to upload - they seem to be corrupted. I'...
Chris's user avatar
  • 1,225
0 votes
0 answers
7 views

How to get node data from comment email notification with hook_mail_alter

I'm using the comment_notify module. Looking to change a part of the email sent out when a comment is made with a custom module using the hook_mail_alter() - Problem is as far as I can tell, I can't ...
Scott B's user avatar
  • 23
0 votes
0 answers
28 views

Drupal 9 - How to alter pagination link from /hub/blog?page=0 to /hub/blog

I look after a Drupal 9 website that has a blog that shows pagination at the bottom of the listing page. The blog listing page can be accessed using the path /hub/blog, but then the first page link in ...
SheppardDigital's user avatar
0 votes
1 answer
20 views

Is there a way to turn off Drupal flood unblock/control from code?

I would like to turn off the flood unblock/control in Drupal, because the user are blocked after a wrong password. Attemted all of simple possibilities and disabled it on the admin page, but every ...
Csámpai Elemér's user avatar
0 votes
1 answer
16 views

Migrating users from Drupal to Auth0

We have a site in Drupal 8, and are planning on moving the Users Accounts to Auth0. Is this possible to do, allowing the users to keep their current login credentials (name and password)? It would ...
Andreas Lundgren's user avatar
0 votes
0 answers
16 views

How can I disable journal updates every time a user logs in to my Drupal site?

I have a drupal site in which users can log in and purchase things. However, there is a problem. My site is adding an updateed journal entry for a user account whenever a user logs in. This creates an ...
MJC's user avatar
  • 1
0 votes
0 answers
18 views

How can a Drupal module retrieve the list of Drush commands programmatically from within a Controller or .module file?

What is the way to programmatically retrieve the list of Drush commands defined by core or contributed modules in a custom Drupal 9 or Drupal 10 module? For example: I have a custom module and now I ...
Prashant Chauhan's user avatar
0 votes
0 answers
8 views

Tracking conversions accurately in Drupal

Just wondering can a conversion (page view) on a URL that looks like the following: /node/17/done?sid=1803&token=aadf592c136d5b94088e792c788d1d24 be counted as multiple conversions in google ...
Tancredi Leone's user avatar
0 votes
0 answers
15 views

Locking translation on nodes that have been manually modified so that someone doesn't accidentally overwrite them with a TMGMT import

We use the TMGMT Crowdin plugin to translate the content on our website, but sometimes after a translation is done someone internal to the company wants to change the wording of one of the translated ...
David Beuving's user avatar
0 votes
1 answer
23 views

Core Taxonomy Term Views using Search API Indexed content, NOT normal content

This seems like a logical use case, but I cannot find any information about how to do this. I am creating a large, number of pages, site and want to use Solr Indexed data on the Taxonomy Term pages. ...
WT-Ranger's user avatar
0 votes
0 answers
25 views

How to place exposed sort options as a dropdown above the grid? - Drupal 9 views

I have a view in D9 that has exposed sort fields. I want to place the exported sort fields as a dropdown above the grid results as below: The grid above are the view results. I want to place the &...
Rick's user avatar
  • 1,364
2 votes
2 answers
142 views

How to add inline JS code in Drupal CKEditor 5?

Trying to add my JS code to custom block in Drupal 9.5.3 with CKEditor 5. But JS code is not running there. I tried adding code using code button in tool bar of CKEditor. But doesn't working. In the ...
vjprabhakar's user avatar

1
2 3 4 5
407