/r/drupal

Photograph via snooOG

The place for news, articles, and discussion regarding Drupal and Backdrop, one of the top open source (GPL) CMS platforms powering millions of websites and applications, built, used, and supported by a diverse community of people worldwide.

More Info: http://drupal.org and https://backdropcms.org

Check out the sidebar for our AMA schedule, or view our past AMA's.


Welcome to r/Drupal

The place for news, articles and discussion regarding one of the top open source (GPL) CMS platforms: Drupal.

More Info: Drupal.org


Previous AMA's:

Latest AMA:

  • Mike Gifford (Accessibility Core Maintainer Drupal 8) – Click Here

Upcoming AMA's:

  • When would you like to start? Let us know!

Would you or someone you know make for an interesting Drupal AMA? Message the mods.


Weekly rotating posts

  • Monday: Beginner questions - no question is too easy.
  • Tuesday: Triumphant Tuesday - post recent Drupal successes and site launches
  • Wednesday: Contrib modules chat - Talk about recently tried modules, recommendations, warnings, etc.
  • Thursday: Development questions & discussion - Coding questions go here. Anything dev-related goes.
  • Friday: Useful things to know - Things you wish you had known earlier about Drupal.

Drupal Resources


Rules & Requests

Please no job ads. If you wish to post something of that nature we suggest you check out Drupal.org's paid services job board


Our Friends

/r/drupal

16,735 Subscribers

1

Weird Behavior with some URL and Whatssapp

Hello, I have a Drupal 10.3.1 instalation with pathauto installed. The Drupal instalation is in a share server (100webspace to be exact) there is a behavior I just find out, there are some of the links when i send them via Whatsapp taht when someon open it in a mobile, it doens open, it says the website is unreachable. BUT if I send the link in any other way (IG messenger, email, etc) the url open normal. I have 3 separate websites (in the same hosting) and the 3 of them behaves the saeme. Does anyone have experimented this, or know a solution to this problem?

0 Comments
2024/12/02
23:56 UTC

1

Mathjax Latex plugins

Can anyone recommend a good LaTeX plug in that is actively maintained?

0 Comments
2024/12/02
17:03 UTC

1

localhost access only

After installing using ddev, what steps would I need to take to make sure my sites are accessible only from localhost/the machine I'm working on?

I'm using ddev to make practice sites and don't want them to be seen or available to anyone on the internet or local network.

6 Comments
2024/12/02
17:00 UTC

5

Acquia Certified Back End Specialist - Drupal 10 exam

Anybody passed recently Acquia Certified Back End Specialist exam?

I want to take one in December, but it is kinda (350$) expensive for a try of a luck. So I'm curious what to expect. There is quite large list for preparation, but I'm doubt that topic questions would be mixed equally.

  • Are there would be a lot questions about PHP coding? Would they be tricky or general coding skill would be fine?
  • Do I need remember methods of Drupal core services and their behaviour?
  • Would there be lot questions about events and plugins?

Anyway, what to expect and to which D10 topics I should be more concentrated?

Thank you

8 Comments
2024/12/02
14:13 UTC

1

Database Issue or maybe gallery issue?

Hi guys.

I’m encountering an issue with a gallery of photos in my project. Here's the situation:

  • The gallery works perfectly fine in my local project.
  • After exporting the SQL and pushing everything to Bitbucket, I imported the updated SQL into the dev site.
  • On the dev site, one specific page with the photo gallery breaks, while another page using the same module and gallery setup remains intact.

This inconsistency is puzzling. It works locally but not on the dev site. Sometimes I manage to resolve it temporarily, but the issue seems to return.

I’m not sure what’s causing this behavior—could it be related to the database import/export process, a path issue, or something else entirely?

Would appreciate any thoughts or suggestions on how to tackle this.

1 Comment
2024/12/02
03:25 UTC

2

What happens to the Drupal 7 modules on drupal.org after 5th Jan?

Will they be archived as read-only on drupal.org, deleted or moved elsewhere?

6 Comments
2024/12/01
20:53 UTC

2

Changing the "Group by" field in a View applies to ALL displays within the View. I.e., you can't have different grouping fields for different displays. Workaround?

I'm sure there's some reasonable technical reason for it, but this limitation truly took me by surprise.

Anyway, the only workaround that I've come up with is to duplicate the entire View (one View for each display) and then set the grouping fields in each view. This seems inefficient as, in my View, the displays only differ in minor ways... not to mention that if I need to make a global change to all displays, I'll have to do it now in each separate view.

Is there a workaround?

4 Comments
2024/12/01
18:21 UTC

8

Using Solr to reduce load on database?

Hi all, so we are building a website with a slightly obscene amount of content (c. 800,000 nodes that can have one or more of 100 taxonomy terms attached). These nodes are then to appear in one of around 30 different views, each with a bunch of filtering options scattered around the website.

All this is understandably causing the database to crawl to a standstill. I was wondering if anyone has had any experience with using Solr to handle the queries, sorting, etc. to optimise performance? Any advice would be greatly appreciated.

18 Comments
2024/12/01
17:27 UTC

2

Drupal 10/11 with CapRover

Hi,

Did anyone managed to install Drupal 10 or 11 with CapRover? I would like to have a two environments dev and production, where we first test everything on dev and then move to production.

Anyone with experience and which docker image you used will be highly appreciated.

Thanks.

10 Comments
2024/11/29
22:27 UTC

7

Spam management modules?

I can tell my fresh Drupal installation is getting some SEO traction because I'm seeing an uptick in fake accounts being created. What do you all use to manage spam accounts and comments? And if there are any specific settings that you all adjust to minimize the spam, I'd love to know that, too.
I'm a super-noob to Drupal, so I'm still learning best practices and configurations. Any help and suggestions are appreciated!

20 Comments
2024/11/29
14:31 UTC

3

After updates, Pantheon dashboard is reporting different module versions than Drupal's extend page. What's going on here?

This is a Pantheon-Drupal question. I hope it's ok here! I know a lot of you folks are hosted at Pantheon.

I just used the Pantheon Dashboard to run updates to my Drupal 10 site. All updates successful! And yet, when I go to my Drupal site's module update page (/admin/modules/update), I still see modules that have updates. For example, Linkit, shown here in my Drupal site as version 6.1.4:

https://preview.redd.it/3b8oxv9x1r3e1.png?width=1770&format=png&auto=webp&s=7342ec1c920a2e927cf6a55eab333a16305c1db4

You can see though that in Pantheon's commit log, it's reporting that it updated Linkit from 6.1.5 to 6.1.6:

https://preview.redd.it/iy0mc64b2r3e1.png?width=1752&format=png&auto=webp&s=d369873af34a5440e454d4234387b9180f3fbc30

But Drupal is reporting that it's still on 6.1.4.

Here's the line in the composer require section:

"drupal/linkit": "^6.1.4",

Shouldn't that pick up any new updates? What's going on here?

5 Comments
2024/11/29
02:18 UTC

1

Where to view list of "needs review" pages already published?

In the "moderated content" tab of the content list, all "needs review" pages that show are new, unpublished pages.

When I look at the content list, it doesn't even show these pages in the recent updates.

Where can I view the "needs review" edits to already published pages?

We've set this up as a workflow, but quickly realized it's not sufficient if we can't easily see all updated pages in one view.

Thanks!

0 Comments
2024/11/28
22:19 UTC

43

Drupal at your fingertips updates

Check out the latest updates to Drupal at your fingertips https://www.drupalatyourfingertips.com

We now have over 1300 commits so lots of new information including the new Artificial intelligence chapter to setup Retrieval Augmented Search (RAG) and details on setting up Solr and DDEV for local development. Enjoy!

3 Comments
2024/11/28
17:03 UTC

0

Resources for Acquia Certification

Hello,

Is there any resources for Acquia Certification? How to practice? Any video courses?

https://www.acquia.com/support/training-certification/acquia-certification/drupal-10-certification-track

1 Comment
2024/11/26
19:44 UTC

2

Revert Layout Builder breaking block changes?

I'm a solo Drupal dev and web manager and feel like I'm maybe missing something when encountering this problem. Every so often I'll be using Layout Builder and tweaking and configuring a Layout Block when something goes sideways. I'll get the white screen of death. Now in some cases this gives you an actionable error that can be fixed. But there are other times I don't really care, I just want to undo the last change I'd made, in this case a block that seemingly had a misconfiguration.

But I don't know of a good way to recover from this. Often the error will be something specific, so I'll try tweaking the block configuration and see if that fixes it, but often I just get stuck on the WSOD. The options at this point feel rather punitive and extreme, when really all I want to do is remove the block I just added.

  1. Revert the revision. This doesn't seem to do much of anything from what I can tell. I'm not sure if this is more of a content based tweak than something that affects Layout Builder block changes.
  2. Delete the page and restore it from another environment via Export/Import, or rebuild it from scratch if that's not an option.
  3. Roll back the database and try again. This of course is the nuclear option, since who knows how much work you might be losing with it.

Am I missing something? As I mentioned I'm a solo Drupal dev, so don't always have support and could very well be doing something wrong unknowingly. Is there something glaring I'm missing here as to how to revert the most recent change to a Layout Builder block page? As someone who used WordPress for many years, it just seems like something that shouldn't be difficult to recover from.

5 Comments
2024/11/26
19:21 UTC

0

Drupal Installation Error

Hi everyone,
I’m trying to install Drupal but I keep running into this issue:
“Your PHP installation is too old. Drupal requires at least PHP 8.3.0. It is recommended to upgrade to PHP version 8.3.0 or higher for the best ongoing support.”

https://preview.redd.it/wqyis10jda3e1.png?width=914&format=png&auto=webp&s=77f61bc2abe29be8b9c82e92acfed52a7c6eb0a9

I tried using both both XAMPP and Laragon, and both are showing PHP 8.1.10 by default.
Also there no version of PHP greater than or equal to 8.3 available on XAMPP

Has anyone encountered this issue and found a solution? Any guidance would be greatly appreciated!
Thanks in advance!

16 Comments
2024/11/26
18:09 UTC

6

In desperate need of help in finding a managed hosting solution.

Our site is currently being hosted by our web designers from 6 years ago but they are unfortunately no longer able to host our site as of January. In addition to migrating the site and having someone fully manage the hosting, it would also be helpful if we had a drupal developer on staff in case there are any coding issues during the migration, etc. I would also like to have a company with a phone number we can call with any issues, as opposed to being forced to work through a chatbot or via email. I understand all of these requests carry additional costs, and we are not expecting to pay $50 per month, on the other hand, we can't afford to pay 10k per year as a small site. Does anyone know of any solutions?

25 Comments
2024/11/26
16:52 UTC

5

Should I use Drupal Multisite or something else for a Site Factory?

Hi everyone !

I’m working on a project to build a website with the capability to create multiple mini-sites from the backend in the future. The client’s wants :

  1. Some features shared across all sites (like news, events, forms, etc.).
  2. Independence for each site to have its own content, settings, and theme.
  3. Easy deployment of new sites using templates or pre-configured models with a minimal need of a developper.

Would Drupal Multisite be the best choice for this? Or are there better solutions that you know of or use ?

I’m looking for something scalable and easy to maintain. Has anyone done something similar? Any advice or tips would be amazing!

Thanks!

12 Comments
2024/11/26
16:52 UTC

2

Costa Rica Monthly Meetup, Nov 28 6pm -- Casa Vieja, San Pablo, Heredia

https://preview.redd.it/3aihwexxe93e1.png?width=2969&format=png&auto=webp&s=8df2f0a64573289a8b8f098ae28ef0746c997d4e

More info in the Drupal Meert up Channel

Hope to see you there!

SDC Development with the SDC Styleguide module and Drupal CMS

1 Comment
2024/11/26
14:54 UTC

3

Help with migrating blob to entity file

I am working on migrating a directory to drupal (11.0.9). I have been successful with importing the basic information like name, address, email, etc... but I am having problems with trying to import a picture that is stored on a database as a blob. Has anybody done something like this? I would really appreciate any help

2 Comments
2024/11/26
03:09 UTC

3

Anonymous users suddenly can't use custom module form

Hi,

I think we are experiencing a caching, session or possibly CSRF issue for anonymous users. Some functionality which works in production currently is not working consistently in our upcoming release branch. Very little was changed in the module itself between the two releases (just some error message text) but we did do a core version update, PHP update, plus lots of other work for the release.

We have a form on our front page where you can enter your address. This is a drupal custom module - NOT a webform - with a form inside it, exposed as a block which is placed using a content type in its spot, styled using some twig templates. We use twig_tweak to load the block, as follows: {{ drupal_entity('block', block_name, check_access=false) }}

It submits to a php function in our custom module, and then redirects user to an appropriate page.

It works reliably whether you are logged in or not in production but in our release branch it only works if you are logged in.

Another environment has a branch similar to master, and I was able to confirm this was working fine here. When I switched to this new branch it stopped working. Started working again when I switched back to its previous branch.

When not logged in, in our release branch, the user is brought back to the same message and on my local I can see an error occasionally along the lines of "The form is outdated. Please reload." I can't reproduce at this moment to get the exact wording. When this error occurs, it's interesting to note that in other environments where I've been doing some experimenting, the submit function is not even invoked - I can tell because its very first line is to log something that does not end up logged.

It works reliably on another page whether you are logged in or out - the field is a second implementation which hooks up to the same module. Of note perhaps is that this is an exposed form for a Drupal view, not a block placed using a content type.

I'm having a hard time finding a consistent way to replicate this issue and see no logging to indicate an anonymous user was denied due to X or Y. Appreciate all ideas you can come up with!

12 Comments
2024/11/25
17:38 UTC

0

A suggestion view where you choose a node from a dropdown and then it populates the view with all nodes of that content type but sorted by those that share a specific term

So i have used similar by terms to great effect on the site, but this is a drupal view block which you place on the nodes pages and it shows you similar nodes based on the category I chose.

I have 200+ food products and want to select a food product i've had before using a dropdown/link/search where you can see all the food products and then based on the single food product you select you are then shown a view table which shows only foods that share the same term i have set up, in this case would be carb/sugar type.

So instead of narrowing results based on a filter, i want to show all nodes that share a term with the food product you selected.

I know it's possible to just set up a facet or exposed filter to filter by the carb/sugar type, but i want to make it simpler so that people can choose the actual food product and then it shows suggestions based off of that so you see similar products to the one you currently use/eat/consume.

6 Comments
2024/11/25
00:11 UTC

11

What are some of the issues you face getting clients to switch to Drupal

I'm an intern working on a marketing project for a small web dev agency using Drupal. I'm trying to understand the cliental but it's really hard cause the Founder manages them. And most of the time he's really busy, so I can't any answers from him. I would really appreciate if someone can help me out.

The questions I'm looking to answer are: What are clients perceptions of open-source? What are the biggest hurdles involved in getting them to switch? Once the project is completed what do they love about Drupal? Please free to add anything else you think is relevant.

This is my first major project after uni has ended and I'm really hoping I can succeed

23 Comments
2024/11/23
11:41 UTC

3

Struggling with Large Queues in Drupal 10 That Take Days to Empty

I'm currently facing a challenge with the queue system in Drupal 10. I have a queue that's become quite large and is taking days to process completely. I'm looking for a way to optimize this by possibly executing multiple queue items simultaneously.

Here's what I'm dealing with:

- The queue often has hundreds of thousands of items, each taking a significant amount of time to process.

- Currently, the queue is processed one item at a time, which is inefficient given the volume.

I've read about potential solutions like using multi-threading or running multiple consumers in parallel, but I'm not sure how to implement these in Drupal 10. Has anyone here tackled a similar issue? Any advice or recommendations on plugins, modules, or custom implementations would be greatly appreciated!

Thanks in advance for your help!

19 Comments
2024/11/22
17:00 UTC

1

Need some directions on porting over a D7 theme to BackdropCMS

The theme in question is AdaptiveTheme. I also have a subtheme associated with it. Will I have to port AT Core or just the Subtheme or both? Is it even possible to port over AT Core? Any guides on how to get started would be appreciated.

1 Comment
2024/11/21
20:20 UTC

1

how to get filename from a webform submission

I am using Drupal 9 and webforms. I created a form using the webform UI and am customizing an email handler. If I include the following in the message body using the twig template option, I am able to generate an internal link to the uploaded file in the email.

{{ webform_token('[webform_submission:values:application]', webform_submission, [], options) }}

How can I remove the hyperlink or just get the filename? Any ideas?

0 Comments
2024/11/21
04:56 UTC

3

Docker4druple help!

Can anyone help me. I have to set up drupal 10 multi site with docker4drupal.

I have cloned my main repo(X) inside . Sites directory which hase sub repos (Y) for multisite. There can be another one in parallel to Y

Is this even right? Can anyone help how should the compose.yml volumes look like in this case?

8 Comments
2024/11/21
02:55 UTC

9

About Drupal AI module

Hi,

Drupal AI modules is so cool, that I have no words.

But its missing one big feature, it does not support any proper locally run software which could be used in production as a server.

  • Ollama = not for production. Does not even support SSL.
  • LM-Studio, similar as Ollama, not for server use even it has a "server" mode. It is not possible to properly automate it and automatically start itself and load models after server reboot. Better than Ollama.
  • All the other providers are for using some external API.

So if you have a requirement that for security and privacy reasons you cant connect to Azure, you cant connect to OpenAI etc, there is currently no provider to use with Drupal AI for locally hosted LLMs? Or am I wrong?

vLLM could be one option.

6 Comments
2024/11/20
20:00 UTC

Back To Top