All Questions
87,467
questions
0
votes
0
answers
10
views
Fields not required for certain roles when click on ajax
I want to not required fields when i click on the certain roles
When click on the roles it checks if those roles are those that i want the fields not to be required.
It is working fine but there is ...
0
votes
1
answer
18
views
Allow certain user role to add tags
I have added a taxonomy entity reference on a node. I want users of certain roles to only select from the list and not allow them to create a new one.
A user role A to select from the list or add a ...
0
votes
0
answers
25
views
no toolbar and layout errors (Windows, Drupal 10)
Hi, I downloaded my first Drupal website using xampp following YouTube videos. I am a complete beginner, with zero coding experience. All my links do not work excluding the "get started" and ...
0
votes
0
answers
27
views
Why is my custom block name not being generated?
I created a custom block called "Heading, Body, and Link" and the name being suggested for the Twig template in the source code is block--block-content--72dacf39-0242-4eaa-9226-171add6f87d2....
0
votes
0
answers
21
views
How can I allow anonymous users to see a webform, but not submit it?
My question title sort of summarizes the issue, I'd like anonymous users to be able to see a webform on a node, but not have access to submit it without logging in. I can't find a straightforward ...
-2
votes
1
answer
27
views
Is there a module/way to send an email quarterly to a list of people about all the new content that has been published since the last email?
I need to be able to take all the users who sign up for updates on a webform and on an editable frequency email them the new content (that I choose to send them) that has been published since the last ...
0
votes
0
answers
46
views
Drupal 10 - Get the value of a custom user field
i spent my day on that... how to, in Drupal 10, get the value of a custom field added in the user profile.
i read and test everything found on google, just like that (from different thread/forum):
$...
0
votes
0
answers
39
views
How to avoid character encoding exceptions that occur when importing CSV data in to MS SQL server?
When I try to import CSV data into my feed, I get errors like this:
Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[IMSSP]: An
error occurred translating string for input param 3 to UCS-2: No
...
0
votes
2
answers
49
views
Adding a default text [closed]
Option 1: Is there any way to write a conditional in Twig that if field1 in Drupal is empty, I can set a default text to say "Bye"
Option 2: I was also trying to use the conditional fields ...
0
votes
0
answers
67
views
How can I turn off cache on the user registration form? [closed]
In Drupal 10, the user registration form is being cached. In an incognito window, the form shows the username and password.
This is happening on an incognito page in Chrome.
This is happening using ...
0
votes
1
answer
57
views
How to add a reset button to forms?
How do I add a reset button to a form?
I have a form with a CKEditor and other fields, plus hidden fields.
How do I reset the form so all fields are empty?
0
votes
0
answers
10
views
Module search - Reminder mail from Date field in a content-type and a paragraph [closed]
I have a date field in a content type and in a paragraph. So a normal date in the future, at this time a document must be submitted.
Now I would like to provide this date with a reminder mail, for ...
-4
votes
0
answers
27
views
Drush says php modes configuration is incompatible with drush
I am trying upgrade a series of old drupal 7 sites but Drush Version : 8.3.2 installed on my shared hosting account says it has trouble with PHP modes. I've reverted the php running all the way ...
0
votes
1
answer
31
views
I can't upload images
I can't upload images with CkEditor 5 in my Drupal 10.1.6 website (which runs on PHP 8.2); all the other features work fine.
In my recent upgrade of Drupal, I switched directly from Drupal 9.4 to ...
0
votes
0
answers
15
views
Optional parameter $path declared before required parameter $langcode is implicitly treated as a required parameter in include_once()
I've just updated from PHP 7.4 to 8.1 and on the whole everything appears to be working. However I'm seeing the following over and over in our logs, to the point that it's drowning out everything else....
-2
votes
0
answers
58
views
The site does not display styles [closed]
The site does not display styles, shows only text, but mostly works.
It complains that the files do not exist.
But I checked, the files exist and there is read permission. What could be the reason
-3
votes
0
answers
21
views
Is there's a way to redirect the user to the external link to complete the 3DS
we are doing an on-site payment gateway integration. And we want to authorize the payment with 3DS authentication. So is there's any way to redirect to external link (for 3DS authentication) from ...
0
votes
0
answers
47
views
Why would Manage Display break when the content type machine name is a number?
Drupal 10.1.6
PHP 8.2.5
I am not sure how long ago it started, I just noticed it about a week ago. It only happens when the machine_name of the content type is numeric.
When I go to /admin/structure/...
-1
votes
1
answer
25
views
Migrating 2 fields into a link field
I'm looking to migrate two fields on D7 (one a link field, the other a text field) into a single link field on D10.
The meat of the migration is here:
source:
plugin: d7_paragraphs_item
bundle: ...
-3
votes
1
answer
56
views
How to unlink the site name?
Core with Olivero theme.
The site name is a link and I want to unlink it.
I want to do it because I already link to the homepage from the main menu and don't want two links to the homepage from the ...
-2
votes
0
answers
22
views
How to fix "missing schema" errors, which are reported by "Configuration inspector" module?
I have just installed the module "Configuration inspector". When I call "/admin/reports/config-inspector" I see many errors, mostly "missing schema". How can I safely fix ...
-3
votes
0
answers
31
views
How to make Drupal 9/10 friends with Sendpulse and other mailing services? [closed]
There was a task to send data from the site to the address book of the Sendpulse mailing service.
I have a type of material where there is a name and email field. It is necessary that when creating a ...
-2
votes
1
answer
27
views
Is it possible to make a theme hook suggestion for blocks according to content type?
I was hoping it was possible to do something similar to this for menus:
* Implementation of hook_theme_suggestions_HOOK_alter() for menus.
* * Make menus themeable:
* e.g. => menu--main--node-...
0
votes
0
answers
29
views
How to disable metatags for custom entity types?
I created a custom entity type, Fruits. I have the Metatag module enabled.
I did not configure any settings to put metatags on the Fruits entity type, and it does not have a Metatag field. However, ...
0
votes
0
answers
21
views
Random order IDs
Is it possible in Drupal Commerce to give random order IDs to orders?
Similar to the "Advanced Ordernumbers for VirtueMart" plugin (https://open-tools.net/documentation/ordernumber-plugin-...
-2
votes
0
answers
28
views
Auto post new node on LinkedIn company page : how? [closed]
I try to find a way to make automatic posts of my nodes to my (brand new) LinkedIn company page.
I'm using Drupal 10, and there are no supported modules to make this.
https://www.drupal.org/project/...
0
votes
0
answers
40
views
What's the standard way of passing a return URL to a form?
The scenario is simple. I've constructed a Link object whose URL points to a form. I need a way to pass a URL to that form so that proper redirection can happen after the form is submitted.
Passing a ...
0
votes
1
answer
26
views
I cannot install Geocoder
I have tried to install Geocoder v4.11 with composer require 'drupal/geocoder:^4.11' --with-all-dependencies, but instead I get incompatibility issues with Guzzle.
Problem 1
- php-http/guzzle7-...
-1
votes
1
answer
57
views
After installation, pages do not use any CSS style
I installed Drupal on Ubuntu 22.24. I'm able to get everything done, but after the installation, the next page is all messed up and I have no other permission besides looking at this page.
How can I ...
0
votes
0
answers
27
views
Drupal 10 + Apache2 behind nginx reverse proxy setup with subdirectory
I am trying to access my drupal 10 + apache2 installation through a subdirectory.
Currently I use nginx as a reverse proxy to access all my services (nextcloud, joplin, grafana) on my server. ...
-3
votes
1
answer
60
views
Is it possible to create an ecommerce website using the core alone? [closed]
I consider to create an ecommerce website using the core alone.
Products will be categorized firstly by content types and any such content type could include fields such as:
Price
Material
...
0
votes
0
answers
24
views
Custom CSS/JS combined to webform custom component gives type MIME error
I've made a custom Webform component, working well so far. A javascript library is attached to this component.
$elements['#attached']['library'][] = 'my_module/my_lib';
My client tried to add custom ...
-1
votes
1
answer
69
views
How can I compare date time values in a content form?
I want to use getString method instead of [0]['value'] how do i do that if possible and is there any other way?
-This is the array i am getting when dump their values
dump($form_state->getValue(...
0
votes
1
answer
25
views
For ECA, how can I create a flag that unpublishes a comment, using 'classic modeller'?
Rules and Rules_flag is not working well in Drupal 10.1, though I had a solution working in Drupal 9.5.
The goal: a flag on each comment that unpublishes the comment, when a user clicks the flag.
...
1
vote
0
answers
45
views
Minimum order amount
How to limit the possibility of completing an order less or more than the specified amount in Commerce 2?
For 7 there was a module: https://www.drupal.org/project/commerce_moa but not for 8+...
-2
votes
0
answers
47
views
PHP Fatal error with Logger when using drush [closed]
I am using Drush Commandline Tool 12.4.3.0 and Drupal 10.1.5 and when running drush uli I get the following error.
$ vendor/bin/drush uli
PHP Fatal error: Type of Drupal\elink_update\Commands\...
3
votes
1
answer
168
views
Is possible to have OR logic on block visibility?
I am on D10.
I need to place several blocks on Block Layout having different visibility conditions: for example one of them should visible BOTH in the home page and in every article of the site.
I'd ...
1
vote
1
answer
30
views
PDOStatement::execute(): SSL: Broken pipe
I have a Drupal 9.5.11 site running well on a single EC2 instance and a remote MySQL server (RDS). I am trying to replicate a very similar scenario with a single EC2 instance but I am using AWS ...
0
votes
0
answers
11
views
Display predefined set of qestions in webform
I have requirement where customer wants to create a pool of questions/elements in webform and then create few sets of questions. Then randomly select one set of questions and display to user. I couldn'...
1
vote
0
answers
24
views
Widget Field Changed VIA Javascript is empty in AJAX callback
So I am using the Geolocation module, specifically with the google maps API. I have a geolocation field. This field is unlimited to allow for adding multiple points to a map. This all works fine.
I ...
1
vote
0
answers
22
views
How does the RDF module impact user mapping when using the Acquia Migrate Accelerate (AMA) tool?
Before Acquia's AMA tool was open source, I used it on their platform to upgrade from Drupal 7 to Drupal 9. I am in the process of upgrading to Drupal 10 and want to uninstall the RDF module (don't ...
-2
votes
0
answers
32
views
How do I upgrade webform forms? [closed]
Is there any approach to upgrade a Drupal 7 site dedicated to forms?
0
votes
1
answer
15
views
How can I export all webform structures?
How can I export forms generated from a Drupal 7 site using webform?
The data is meant to be used to recreate a form generator tool by another team (who is not necessarily using Drupal).
1
vote
1
answer
38
views
How do I override settings.php for Symfony Mailer to use Mailhog for local development?
Now that I am supporting Drupal 10, I needed to set up Mailhog to allow local capturing of emails when I'm testing in my local Docker environment.
I used to use the SMTP and Mail System modules and ...
-3
votes
1
answer
93
views
I am trying to install Drupal Commerce, I get error that prevents installation, I don't get what it says about ../private folder [closed]
Can somebody specify where this folder should exist?
I created it in the directory containing the vendor directory, in the files directory, outside of the files and in the site root directory, but I ...
0
votes
1
answer
37
views
How do I take the value of a variable from the node template and insert it into the field value?
In the template of the material type node there is a variable that adds and multiplies integers according to the formula, which I take from the filled fields of the node. Everything is working ...
-1
votes
0
answers
23
views
Can't send email out through #rules by using token [node:author:mail]
can't send email out through #rules in Drupal10, I am using the token [node:author:mail] for the send to email action when user's node published, the system give me "Error message Unable to send ...
0
votes
1
answer
45
views
How to delete the existing alias in drupal 9 / 10
In Drupal 7 we can delete path alias like this
$drupal_path = 'problem/' . $problem->nid . '/' . $problem_src->nid
path_delete(array('source' => $drupal_path));
How to delete path alias in ...
-1
votes
0
answers
31
views
How to use the Tableselect element for an order-able list of items?
It's been a minute since I have used tableselect. I want to present a user with a list of sortable options that have checkboxes to indicate they are on or off. See this screenshot:
While the table ...
-1
votes
0
answers
23
views
Email no longer received as HTML after switching to PHP 8.1
I am using Drupal 9 and SMTP module to send email. When my Linux server was on php 7.4 this worked fine. After switching the server to php 8.1 the email no longer sends as HTML and the From mail ...