65 questions
0
votes
0
answers
16
views
CKEditorError: plugincollection-plugin-not-found {"plugin": null} when integrating custom CKEditor5 plugin with Drupal 10
I am trying to integrate a custom CKEditor 5 plugin (LanguageTool) into Drupal 10 using a custom module. The plugin builds successfully, but when Drupal loads the editor, the browser console shows:
...
0
votes
0
answers
46
views
Drupal Views: How to add fields programmatically to a custom view in Drupal
I want to create a view in Drupal 11, but I want to add the values for that view through code. How could this be done? I’ve tried it, but the view appears empty and I can’t see the values. Here’s a ...
0
votes
0
answers
65
views
Issue with Taxonomy Term ID and Views in Drupal 10
I'm using Drupal 10 with the Bootstrap 5 theme. I created a pattern with Pathauto: product/tag/[term:name] and set up a few brands in the taxonomy. The links became:
mysite.com/product/tag/brandone
...
0
votes
1
answer
37
views
Drupal Open Social 13.0.0-alpha23 cannot be installed as recommended by vendor
Drupal distribution built on "super theme" Open Social 13.0.0-alpha23 cannot be installed.
This fails
stan@pc:/var/www/html/soc13$ composer create-project goalgorilla/social_template:13.0.0-...
0
votes
0
answers
47
views
Drupal checkbox and form field rendering nested labels
In my drupal project I have a form field:
$form['field_consent_abcd']['widget']['value']['#title'] = t('Test text <a href="@url" target="_blank">target url text</a>.', [...
0
votes
0
answers
31
views
How to prevent Drupal from making view feed links all relative
I have a Drupal 10 site where I created a view with an RSS feed. The links for the items are to various outside websites - for example https://www.yahoo.com/news_article.
The problem is that my site ...
0
votes
0
answers
31
views
Facing the error in console in my drupal website - Uncaught TypeError: can't access property "Contents", Drupal.Charts is undefined
Facing the error in console how to solve this
(function ($, Drupal) {
Drupal.behaviors.chartClickBehavior = {
attach: function (context, settings) {
if (typeof Highcharts !== '...
0
votes
0
answers
73
views
Drupal 10 - How to display a list of nodes associated with a selected location on a map, both in a side panel and a map popup
I have a feature in this Drupal system I'm working on which has a map view (using Leaflet) that shows all terms under "Location" with the polygon as the highlighted area of the location. It ...
0
votes
1
answer
142
views
Drupal 10 CKEditor 5 Custom Plugin: "plugins.map is not a function" Error
I'm developing a custom CKEditor 5 plugin for Drupal 10.4.5. The JavaScript for the plugin seems to be loading correctly, and I've defined it in my module's .ckeditor5.yml file. The plugin aims to add ...
0
votes
0
answers
61
views
Console error: toolbarview-item-unavailable, Drupal 10, CKeditor 5 custom plugin (button to add tag small)
I'm trying to add a custom plugin that add HTML tag "small" via button in CKEditor 5.
I'm using this guide: https://lembergsolutions.com/blog/how-integrate-ckeditor5-plugin-drupal-9-10-...
0
votes
0
answers
62
views
Redirect works when I put a slash at the end of the URL in Drupal
I am trying to redirect a URL using the Drupal redirect module, but it doesn't work. It works when I try to use a slash at the end of the URL. The content type is page.
For example -
Redirecting ...
0
votes
0
answers
34
views
Views query to a non-related field
I have a unique ID for an entity (in this case a person). Due to the way the data was originally built and created, there may be up to 4 or 5 duplicate entries, but referencing different time periods. ...
2
votes
1
answer
63
views
I don't know how to change from at() to once() in phpunit 10 and above
The method function at() has been removed from phpunit 10 later.
I changed from at() to once() but my tests still don't pass
The test fails because you cannot order the condition() calls.
php code:
......
-1
votes
1
answer
90
views
Check for Content Type in paragraph.html template
I have 2 content types created in Drupal 10 using Structure > Content Types > Add Content Type:
Universal Page => universal_page
Home Page => home_page
How do I check for content type ...
0
votes
0
answers
30
views
Drupal 10 will not write to styles folder
This is Drupal version 10.4.3
I recently moved a website to a new server. On this new server there is an issue with Drupal writing
When I upload a file, it uploads correctly to /sites/default/files/, ...
0
votes
1
answer
88
views
Drupal Search_api index with OpenEuropa backend leads to no results in Search view
all the above passages were done as admin.
I have a website using Drupal 10.3.10, and PHP 8.2.23.
I installed the Drupal module search_api, to be used with OpenEuropa search component (https://github....
0
votes
1
answer
106
views
'%'.....'%' LIKE mysql query in drupal 10 use escapeLike
I want to use LIKE in query Drupal 10, use this
$result = $connection->query("SELECT node_field_data.nid , node_field_data.title
FROM `node_field_data`
WHERE node_field_data....
0
votes
0
answers
158
views
Controller and Routing Issues in a custom module in Drupal 10
I am getting a page not found error message when trying to create a Controller and Route in Drupal 10. I am working with the Acquia Drupal Module Development course. I have created the module and ...
0
votes
0
answers
30
views
How to create a Drupal View that shows all articles nodes AND ONLY the most recent comment, if any comments are associated with that node?
I have what seems like a simple request (to me, anyway) but have not found a solution or discussion for this exact problem.
I have a View creating a table of all my article nodes. Each row is a node, ...
0
votes
0
answers
79
views
Drush 13.3.3.0 does not show admin commands although database connections seems to be working
Simple admin commands like "drush en" and "drush cc" result in
"command pm (or cc) was not found. Drush was unable to query your database. As a result, many commands are ...
0
votes
1
answer
406
views
Drupal 10: hook_entity_insert and hook_entity_update Not Working for Paragraph Tagging
I am working on a Drupal 10 module that implements hook_entity_insert and hook_entity_update to auto-tag event-type paragraphs in a node when it’s created or updated. The hooks trigger logic that ...
-1
votes
1
answer
534
views
"0" is an invalid render array key. Value should be an array but got a string. in Drupal\Core\Render\Element::children()
When upgrading from 9.5 to 10.3, rendering the home page returns the error below.
I've tried searching for the cause, but can't find it. The stacktrace mentions the theme, both the theme and ...
0
votes
1
answer
238
views
Drupal 10 - How to Pass Arguments to Page
In Drupal 7 I used panels and page manager to create a URL and pass arguments to custom pages. A route might look something like /custom_section/!1/!2.
I need to do something similar in Drupal 10. I ...
1
vote
2
answers
497
views
How to get Media image url link rendered in JSON:API response
I am trying to get the URL of the media image served via JSON to the frontend, but I'm unable to do so. My expected output is the following.
{
"data": {
"type": "...
0
votes
1
answer
46
views
Empty records in Drupal CMS after bulk insert
I recently migrated data from development project into staging server and I resolved the conflicts and the data is present in DB but in CMS it is showing empty records. (check pic)
I cleared the ...
0
votes
1
answer
43
views
Use another data as field in group-relationship
I ask myself on how to do the following thing :
Each user in the system has an avatar (media field in user account).
I use the group module to build "organizations". Each organization has ...
-1
votes
2
answers
47
views
Weight Vocabulary - sort vocabulary - (not terms)
I need to sort the vocabularies in a page based on admin choice. To be clear, I am not talking about terms, I am talking about the vocabulary, the parent holding the terms.
As per what I read, ...
1
vote
1
answer
175
views
Lando recipes are not available in Windows 11
I am using a Windows 11 machine with docker desktop and WSL.
I am trying to setup a new Drupal project (existing cloned one or recommended project clone using composer).
But whenever I am trying to ...
0
votes
1
answer
46
views
Preview content by content type
Is it possible to Preview Drupal content by content type? Currently the preview template options are
page--node--preview--f7fd5df8-d58d-42f8-b274-8d224eddbb5a--full.html.twig
▪️ page--node--preview-...
0
votes
2
answers
84
views
How can I add a simple web component?
is there a simple way of adding a web component into drupal ? I have tried it but my component doesnt show, it removes the non-html component tag entirely, it loads the js file properly and when i ...
0
votes
0
answers
32
views
Alternative Title not showing in Module Drupal 10
<?php
use Drupal\node\Entity\Node;
/**
* Implements hook_preprocess_page().
*/
function alternative_title_preprocess_page(&$variables) {
// Check if the current route contains a node.
...
1
vote
1
answer
365
views
How to Remove BLT Dependency from a Drupal Site on Acquia Cloud Before Support Ends?
Our Drupal website has been hosted on Acquia Cloud for a while, but with BLT support ending by the end of 2024, we need to eliminate our reliance on BLT.
How can we achieve this transition?
Use Cases: ...
-1
votes
1
answer
109
views
Drupal 10 on specific path of domain only
I have a Drupal 10 website that is currently hosted on a sub domain (events.mydomain.com) and I need to move it to a path of the main domain (mydomain.com/events).
I would need to move the whole site ...
0
votes
1
answer
139
views
Drupal Image field missing in Block types > Edit block > Manage fields
I am new to Drupal and am creating a custom theme, but for some reason, the Image Field option is missing when I try to add a new field in the 'Manage Fields' section under Block types. This is a ...
0
votes
1
answer
408
views
Drupal 10 on Ubuntu 18.04 DDEV memory size exhausted
Suddenly received error message on drupal 10 url generated by ddev -
Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/vendor/twig/twig/...
1
vote
0
answers
166
views
Drupal updating to 10.2.6 fails "autoconfigure" on core
I came here because after a day of searching I didn't resolve my issue.
I tried to update a drupal system to 10.2.6 from 10.1.8 (since its not maintained on security release now).
Luckily I remembered ...
1
vote
2
answers
755
views
File upload element is not listing in Drupal 10 Webform
i am creating a form in Drupal 10 using Webform. i am able add elements like "Textfield", "TextArea" etc. When i try to add "File upload", nothing is listing. Please find ...
0
votes
1
answer
463
views
Drupal 10 overriding Twig Template
I am developing a drupal 10 site with ddev in my ubuntu machine on process for overriding html.twig template in my bootstrap sub theme during debugging FILE NAME SUGGESTIONS shows name links--...
-1
votes
1
answer
204
views
How can I protect my Drupal Webform website from spam?
I'm using the Captcha module in the forms, but the client informed me that I'm receiving a lot of spam in the contact form submissions. How can I reduce this? And how can I test this locally before ...
0
votes
1
answer
168
views
Drupal 10 block visibility only if content has a specific term
It's been 7 years that I don't use Drupal
I want the visibility of a block only if there is a specific term in a specific taxonomy (vocabulary)
So I go in and I can only choose the whole vocabulary
...
0
votes
0
answers
441
views
Drupal 10, images upload to public folder but render from different folder giving error
I have a fresh Drupal 10.2 installed on my server. I created a content type with 2 media fields. originally, when uploading using media module, I can see the image in my content creation page. However ...
0
votes
2
answers
60
views
How do I fix this VersionParser error when migrating a Drupal 10 site to Pantheon?
I'm trying to follow the instructions from https://docs.pantheon.io/guides/drush/drush-import to import a Drupal 10 site to Pantheon. After running the terminus command, I'm getting this error:
[...
1
vote
2
answers
308
views
How to Clear "Private files "Not fully protected" error in status report
I am trying to get rid of the Private files "Not fully protected" error in the Drupal 10 status report.
Added $settings['file_private_path'] = $app_root . '/../private'; to settings.php.
...
0
votes
1
answer
944
views
No route found for "GET http://localhost/drupals_new_test/web/"
Once I create a new database, and import all data from the old one, update my settings and restore the folders and files, I get this error:
No route found for "GET http://localhost/...
0
votes
0
answers
72
views
TWIG showing error upgrading Drupal 10 upgrade
TWIG code
{% if 'export' in url %}
<a href="{{ url }}"{{ attributes.addClass('btn btn-success') }}>
{{ '@format export'|t({'@format': 'Export files'},{'context':
'kjus'}) }}
</a&...
0
votes
1
answer
215
views
How to Create a Database Table When Installing a Custom Drupal Module?
I've included a mfa.install file along with my module (mfa). After a few iterations my module now installs without errors but my two new tables are not added to the Drupal schema. Why? I uninstalled ...
0
votes
1
answer
399
views
Drupal 10 image upload AJAX error with status code 200
Weirdly, I'm getting an AJAX HTTP Error with Drupal 10 when trying to upload an image into a custom node type via Edit functionality.
Here's the error:
[
{
"command": "...
1
vote
2
answers
585
views
Drupal upgrade from 9.5 to 10
I am trying to upgrade drupal 9.5 to 10 but i am a little bit confused so i wanted some suggestion from here.
currently drupal 9.5 is using php version 7.4 so do i need to upgrade php version and ...
0
votes
1
answer
70
views
How to install and and enable the same Drupal module for all Drupal multi-sites
I'm using composer require to install a module and ddev drush en module_name -y to enable it.
I have over 10+ multisites. Is there any way to run the command only once so I don't need to do it ...
0
votes
1
answer
433
views
Unable to Upgrade Drupal Core to 10.2.4 (Security Update)
I'm encountering an issue while attempting to upgrade my Drupal core installation to version 10.2.4, which includes important security updates. Despite following the usual update procedures, I'm ...