All Questions

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

Salesforce Connection

I am currently getting an error when trying to connect Drupal 8 with Salesforce. This will be the first time I am hooking into Salesforce from Drupal and I am not entirely sure what I am doing wrong. ...
0
votes
0answers
11 views

Map array of node IDs to bundle types without loading all the nodes

For complicated reasons I need to map an array of node IDs to a list of node bundles. That is, for a given list of node IDs, I need to get all the different bundles (node types) of the nodes the IDs ...
0
votes
2answers
11 views

How to programmatically associate a taxonomy term to a field

I'm trying to import user profiles data from a JSON file. Several fields are entity reference to vocabularies. I'm able to create a new vocabulary using the following code: $term = Term::create([ '...
1
vote
0answers
7 views

Views relationships

I have a content type called part with a multivalue reference field to a custom entity called fitment. on the part there is a field called SKU and on the custom entity type fitment there is a field ...
0
votes
0answers
8 views

Access Denied when visiting my custom route

I have a custom module with machine name "mymodule". The mymodule.info.yml file looks like this: name: My module type: module description: 'My first drupal module' core: 8.x Then I have a ...
0
votes
0answers
9 views

Can you query webform settings?

I have the task to query data from my phpMyAdmin database and also to query the emails from each webform 'to_email' field. Is there a way to query that data using MySql? I was able to do it using php, ...
0
votes
1answer
8 views

user:role:add for email addresses in Drush 9/10?

In Drush 8, you can add a role to an email address like this: drush user-add-role "power user" --mail=penguin@example.com In Drush 9, the --mail option no longer exists for user:role:add. ...
0
votes
0answers
9 views

Drush failing to load drush.php file

I have Drupal 8 project on my local machine, which is set up with composer and I got drush included. When I'm in project root I can call drush like: vendor/bin/drush -v And that work well (...
-4
votes
0answers
13 views

Creating article by sharing external link

I want to have feature like many of social network sites - to allow users/editors to share external links in articles. So - pasting link in a text field should trigger grab/update of Title, Body and ...
0
votes
0answers
10 views

Drupal commerce - Invoice payment gateway?

My Drupal commerce site supports multiple payment gateways. One of the payment types should be paying by invoice. That means if you select invoice payment type during checkout process you don't have ...
0
votes
0answers
24 views

How to retrieve cookie

In D8 Project, Cookie save p-nid1, p-nid2, p-nid3 (1, 2, 3 is node id). Cookie save with Drupal.visitor.p-nid1, Drupal.visitor.p-nid2, Drupal.visitor.p-nid3. But when get cookie $nid = $node->id(); ...
0
votes
0answers
10 views

How do you map a Salesforce master detail field to a field?

I have successfully mapped all fields except company name which is a master-detail field in Salesforce. This field is required to make a record in Salesforce. What field should be used to map to this ...
1
vote
0answers
30 views

Is it safe to truncate the key_value_expire table?

I am seeing over 8 GB in the database for the key_value_expire table. Is it safe to manually truncate that table? This appears to be caused by a bug in the Honeypot Module, which I am unable to ...
0
votes
0answers
12 views

correct syntax for feeding lat/long to geofield_latlon in migration

I have a drupal 6 site I wish to migrate to drupal 8. My configuration includes: migrate_plus.migration.upgrade_d6_node_complete_club.yml # ... class: Drupal\node\Plugin\migrate\D6NodeTranslation ...
1
vote
1answer
47 views

What is the difference between State API vs UserData API?

In which case we will use State API ? Instead of UserData API ? Some Use cases where we will use State API ? Some use cases where we will UserData API? Is there any difference apart from the ...
0
votes
0answers
9 views

Taxonomy exposed fields options should be visible even when there is no result

have a multi exposed filters for a view. All are taxonomy reference fields. For filtering content based on some exposed filters options, for which there is no result, the exposed filters fields also ...
0
votes
1answer
27 views

why my custom jquery code stopped working on a multipage webform after upgrade to WF x6

I have a long questionnaire as multi-page webform and I do many mostly simple counting and addclass using jquery done via a custom module I made for the purpose. This was perfectly working before on ...
0
votes
0answers
27 views

Popups & colorbox issues in Chrome

Hoping for some guidance here. Sometime in the past few weeks, my inline modal popups stopped working in Chrome. I had Colorbox set up at the time, both hand coded inline links and views colorbox ...
0
votes
1answer
10 views

How do you add a input and a select field with webforms?

I would like to add a select element that has an input field attached, so the user can input a value from the list without having to scroll through hundreds of options. Is this possible to do with the ...
0
votes
1answer
13 views

Add to cart button not displaying inside custom text in drupal 8 views

I created a product display view in drupal8 to display the product. For this, I added some fields like product price, title, and " add to cart" form. When I call all the fields inside ...
0
votes
0answers
15 views

Custom Submit Handler to Integrate Payment Gateway in a Webform

I would like users filling up a webform in my site to make a payment before the form is submitted. The form should be submitted if the payment is successful else an error message should be displayed. ...
0
votes
1answer
12 views

How to make a facet search on a taxonomy term contained in a paragraph contained in a content type?

On Drupal 8, I try to make a facet on a taxonomy term contained in a paragraph entity contained in a content type. Is it possible? My stack : Druapl 8.9.0 + Search API 8.x-1.17 + Facets 8.x-1.5 In ...
-1
votes
1answer
23 views

How do I fix the error given from “drush en nodejs -y”?

When I run drush en nodejs -y, I get this error. In PmCommands.php line 247: Unable to install modules nodejs due to missing modules nodejs. How do I fix that error? I am using Drush 10.2.2 and ...
0
votes
0answers
10 views

The admin/content page only shows the Delete button for nodes; missing edit and view

I have created a role in D8 with permissions to add/edit/delete any content type, even if its not their own. They also have the blanket "Administer Content" permission. When they view a node,...
0
votes
0answers
31 views

Why can't I install even if I have the required PHP version?

I want to install Drupal 9.0.2 on a server with Apache2 and PHP 7.3.2. I am getting this error. Your PHP installation is too old. Drupal requires at least PHP 7.3.0. See the system requirements page ...
0
votes
0answers
17 views

What can cause the following error? [closed]

I am getting the following error. Notice: Undefined offset: 1 in drupal_settings_initialize() (line 802 of /var/www/html/portalgc/includes/bootstrap.inc). What can it be?
0
votes
0answers
16 views

PHP Segfault error when running a migration

I ran drush migrate-upgrade on a Drupal 8 fresh installed site, and it generated the migrations (from Drupal 7 to Drupal 8). After that, I tried to run drush mim upgrade_d7_user (after roles and ...
0
votes
0answers
12 views

Show a field on a taxonomy term in views

I have a view that's showing a custom entity type. Each of these entities is categorized with taxonomy term. Terms in this vocabulary have a field on them that I need to pull in to my view. Currently, ...
0
votes
0answers
14 views

Authenticated user cannot view custom content type pages

I have a new Drupal 8 website which only two of us have login access to. I'm the administrator and the other person is an authenticated user. I've set the permissions so that authenticated users can ...
0
votes
1answer
16 views

Accessing Webforms Parameters in hook_form_alter

I got a webform which is embedded in a paragraph template. I do this via renderArray which works pretty well - the form is embedded. However I need to grab parameters - the only example I could find ...
-1
votes
0answers
19 views

$form_state->getValue() returns NULL [closed]

I altered a form block. It works fine with the administrative theme, but with the public theme, the layout builder $form_state->getValue($form_field) returns NULL. Do you have any idea on why it ...
0
votes
1answer
18 views

Get the user ID for a newly created user account

I'm trying to import user data from a JSON file. So far I've managed to import user entities with some fields. The next step would be to retrieve the user ID. The code I wrote is the following one. $...
-2
votes
0answers
24 views

New users can't register

I created a new website with Drupal 8. Visitors can not register. I checked the settings and everything is fine. Why cannot users register?
0
votes
0answers
13 views

How to update value of single field of same node using node_save?

The problem statement: I have one content type called 'Employee' which has 10 nodes. I have to perform the voting for each node. I am saving the vote count in the field called 'vote count'. But when ...
0
votes
0answers
12 views

Views: Treat my custom timestamp field as a date the same way as core timestamp fields like Node: Created

When using Views, if you add a Node: Created filter to the Filter Criteria, you get two options for Value type: A date in any machine readable format. CCYY-MM-DD HH:MM:SS is preferred. An offset from ...
0
votes
0answers
22 views

Invalid node context using ContextAwarePluginInterface

I am trying to create a block in Drupal 8 that would help me to show an image using a link given in a certain content type link. I tought it would be useful to use the ContextAwarePluginInterface. I ...
0
votes
0answers
8 views

drupal webform composite element with entity autocomplete and its field value token

I have created a composite field . field - "Items" is a entity reference . this entity has also a field "price" filed - "MRP" is a computed token field aiming to grab ...
-1
votes
0answers
9 views

how to update salesforce id in drupal 7 on user save

I am sending a user creation request to drupal 7, upon successful creation of the user, salesforce is automatically pushing the corresponding salesforce id to drupal 7. I don't want this automatically ...
0
votes
1answer
10 views

In Views, when using a filter on a datetime field, what is the time zone of the offset?

When I use an offset like "-4 hours" in a Views filter on a datetime field, which timezone is used? More details In Views, when I add a filter for a datetime field, I get the following ...
-1
votes
0answers
30 views

Cookies Save Not Work [closed]

In D8 Project I need to save cookies on every page, function mytheme_preprocess(&$variables) { $node = \Drupal::routeMatch()->getParameter('node'); $val = $node->id(); ...
0
votes
0answers
18 views

Create URL encoded taxonomy term name in views field

I have a view of taxonomy terms where I need to overwrite the output of a couple fields to be Solr search URLs, and part of the URL is the url encoded term name. So, for instance, if my term name is ...
0
votes
0answers
23 views

Access denied when trying to import single configuration item in Drupal 8

I am using Drupal 8.9.2 and trying to import a view using the Configuration Management UI in the admin. I did this with no issue importing the view from my local dev environment to our dev server, but ...
0
votes
0answers
12 views

Theme custom page template file shows `page not found` but still displays correct content

I have a page--home.html.twig file in my Barrio Subtheme, and when I navigate to mysite.com/home the content is shown but the title shows page not found and in the recent logs I have an error: page ...
2
votes
1answer
22 views

How can I suppress the “connection to @remote closed” message?

I'm running Drush 10 and have set up site aliases for my local and the remote Drupal site. When I run the following command for my local alias: drush @local dd This returns: var/www/html/abc But ...
-1
votes
0answers
21 views

Updating existing website or build a new one from scratch [closed]

I'm currently in charge of updating a companies existing website. However, I am experiencing a few challenges when attempting to update the website. These challenges are: The website is extremely ...
0
votes
0answers
6 views

Best way to keep customized ckeditor library up to date

Background A D7 site I am working on uses wysiwyg module with ckeditor library. (I know there is a dedicated ckeditor module, but we want to stick with what we have on this existing website. The ...
0
votes
0answers
26 views

Front Page displays on user/login

I recently created a new front page template page--front.html.twig in my theme, and then changed my front page to mysite.com. When I did this, it removed my login page, now /user/login only shows my ...
0
votes
1answer
63 views

Failed updating from 8.8.8 to 8.9.2

I want to update my Drupal website from 8.8.8 to 8.9.2. I have separately tried each of the below: Run composer update Removing both Vendor directory and composer.lock file then run composer install ...
0
votes
0answers
20 views

Comparing expired date with current date

I am trying to compare the current datetime with my duedate to check if the duedate has expired, and run some code if that is the case. $d = date(strtotime($deadline->get('field_date')->...
0
votes
0answers
23 views

I need to convert a field in a view to uppercase in Drupal 7. The view is in a module with templates

This is a text field that needs to be converted to uppercase. Where do I put strtoupper to covert the field? Module file or in the template file for that view?

15 30 50 per page
1
2 3 4 5
1662