All Questions

0
votes
0answers
4 views

Redis server hang up when I update drupal

I´m not sure if this is the right place to put this question. I hope it be. I have an apache server with Redis and several Drupal 7 websites that uses Redis as cache backend. It works very good and ...
0
votes
0answers
2 views

What are all the methods/verbs supported by the Views REST export?

Drupal 8 provides functionality to create REST exports of content using the "Structure->Views" in Drupal admin interface. What are all the methods supported by these REST export? When I tried a "...
0
votes
0answers
2 views

Errors when attempting to load Salesforce object from mapping admin page

We are attempting to push a content type from our Drupal site to a Salesforce object. We have successfully authorized the link between them. When we attempt to start the mapping, we get an AJAX error. ...
0
votes
1answer
8 views

Contextual filter in path for block view display, alongside pathauto aliases in Drupal 8

On our Drupal 8 site, we are using the article content type for press releases. We have the pathauto module generating automatic aliases for these nodes, so the article node entitled "Cool Things are ...
0
votes
1answer
13 views

WebForm images not displayed after node creation with submission handler

I'm at a loss. I'm using WebForm 8.x-5.2 on Drupal 8.7.3. I have a custom webform handler that takes the submission and creates an unpublished node for review. The webform includes an image field ...
0
votes
0answers
7 views

What is the Drupal 8 progress bar periodic update function return data?

In Drupal 7 from the function called with 'url/to/call/progressbar/update/function' (see below) you would return an array converted to JSON like this: drupal_json_output($message); I cannot find any ...
-1
votes
0answers
11 views

How do I get the string %*% to appear as %*% instead of %% (which it annoyingly does)

In a Drupal forum reply, the string %*% was automagically changed to %%. How do
0
votes
0answers
4 views

Setting up Drupal commerce orders being sent to company erp system

I am new to Drupal and therefore bear with me. This might be a really simple question. Instead of using any of the payment functionality in drupal Commerce 2x i want the order to be sent to my ...
0
votes
0answers
4 views

“Delete scheduled tasks” not firing

I have done the following: rule component with action send email notification. rule that schedule the component "after saving a content". When I go to schedule I can see that the rule fires the ...
0
votes
1answer
14 views

How do you use hook_form_FORM_ID_alter() to alter the USER EDIT form?

I'm trying to mark fields on the /user/_uid_/edit screen as disabled. These are custom fields I've created in /admin/config/people/accounts/fields in D8. I have this code for another node entity type....
0
votes
2answers
17 views

Why did my site crash when I moved module and theme folders?

A little background, I am quite new to Drupal and IT in general, so this may be a silly/basic question (I am going to start learning HTML, CSS, PHP, etc. for Drupal). I first set up my Drupal site by ...
-2
votes
0answers
8 views

launch cron only for one task for 300 lines

My hoster told me to send only 300 mail by hours for avoiding spam. So I decided to create cron job to send emails, and the cron will start every hours. So I need to tell to the cron : On each run ...
0
votes
0answers
5 views

Skip a form step programmatically in simple_multistep module

I am trying to skip a step in multistep node form using Simple Multistep module. I have tried following snippet that works pretty good to skip one step. $skipStep = $form_state->get('...
0
votes
0answers
7 views

Redirect domain to www, but on subdomain do not use www

I have a multilanguage website. The main language is English and the second language is Spanish. I need to have all the traffic using this domains: English domain: www.example.com Spanish domain: es....
0
votes
0answers
11 views

What is the data key for a cell in a custom composite?

I am trying to figure out what the data key is in a custom composite table for specific cells. If I look at the YAML for a submission I see the following: data: dimensions: - length: '1' ...
0
votes
0answers
12 views

How to reference current user when creating taxonomy term

Using drupal 8.7.x I'm trying to create a vocabulary that references the user that creates the term The settings of the user reference field are the following. The taxonomy term is created using a ...
0
votes
0answers
7 views

Custom offsite payment module (redirection)

I've created a small module to add a custom payment method to my drupal commerce website, but I have a problem with the redirection to the offsite platform. Here is my payment method infos : ...
0
votes
0answers
17 views

settings.php.lock error

I've been working on a Drupal 8 site for a month or so now and development has been progressing nicely until a week ago. It looks like the issues started at just about the same time that the website ...
0
votes
0answers
10 views

Invert facet setting for single option on search

What would be a good approach to invert a single facet option? Is this even possible by the system? This is what I have in mind: Let's say we have got a bunch of facet elements to select from on a ...
0
votes
0answers
12 views

How can i add text custom field on product detail page?

I want to add custom text field on product details page Where user enter some text . Which text will be shown on cart and checkout page. I have added the text field on product but it is not saving ....
0
votes
0answers
14 views

How to load json File array and store in a field in drupal8?

I'm receiving my JSON data as: $someJSON = '[{"PhotoFid":"PhotoFid" : ["8444","8445"]}]'; How to pass this file ID into my node field? $node->set('field_photofid', $someJSON); -- ...
0
votes
1answer
36 views

Remove the cache for a particular Twig file

I'm showing currently logged in username in header. But it's showing already cached page. I know, I can disable cache for particular page in module using \Drupal::service('page_cache_kill_switch')-&...
0
votes
0answers
6 views

How do I email the file?

I am trying to send files 'purchased' with commerce file as HTML mail. I've created a rule that loops over the line items (commerce-order:commerce-line-items). I would like to get access to the ...
0
votes
1answer
20 views

Which files do I need to edit to alter webform #states with hook_form_alter?

I need to create #states conditions between either the fields in any one element in a webform or across other elements in the same form. I'd hoped I could do it via the WF yaml editor but it seems I ...
0
votes
2answers
18 views

Customize the title field

I want to display updated content's field with views block on the front page. 2019/06/20 newly posted content1-title 2019/06/19 updated content2-title The words updated and newly posted before the ...
0
votes
0answers
8 views

Cannot get form values set in a ajax callback

In the hook_form_alter, I add 3 textfield form elements and 1 button with ajax callback: function zwznertags_form_alter(&$form, &$form_state, $form_id) { if($form_id == 'book_node_form') { ...
0
votes
2answers
15 views

Using pathauto for taxonomy pages

I'm using pathauto on a D8 site successfully for pattern type Content using a pattern like this: [node:content-type]/[node:title] But I'm not having any luck at all when trying to use it for pattern ...
0
votes
0answers
6 views

How do I programmatically sort table fields using hook_views_default_views()?

I have created all of the view configurations and exported the views_default.inc. After I re-imported my custom module the sorting table fields isn't working and needed to be configured manually again....
0
votes
0answers
10 views

Rules Once per day - Can't figure out the Component Selector in a very simple rule!

I have created a component with action set and test it with execution and it works fine. Then i created a very simple rule: 1- event: one per day 2- no conditions 3- trying to fire the component , but ...
0
votes
0answers
9 views

Calculate values in or from custom composite field

Is it possible to use computed token or twig to calculate custom composite fields? I have a custom composite field that asks for length, width and height. I would like to be able to add a 4th field ...
0
votes
0answers
7 views

How to override confirmation messages when saving or updating/deleting content in Drupal 8?

I wanted to override status message after taxonomy term updated/deleted. I m trying to do with hook form alter as function atlas_common_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $...
-3
votes
1answer
20 views

Getting PHP extension “gd” and Database support disabled error

I am trying to install Drupal 8.7.3 on my windows machine through the Xampp (PHP 7.3.6). But I am getting following errors: Errors: Please see the screenshot: https://snag.gy/06sMEa.jpg Tried to ...
0
votes
1answer
7 views

Display Suite Token Fields in Custom Block Types

I want to add a Display Suite token field to my Custom Block Type. I have a custom block type. I created a token field with Display Suite Entities: Block Content Limit field *|* or link_card|* where ...
0
votes
1answer
11 views

how to remove duplicate in view search API?

I get some duplicate article for the site. How can i remove the duplicate? There is no distinct setting. Here is the setting of view
0
votes
2answers
18 views

How can I programmatically add webform elements to an existing webform?

I have a webform that is very simple, it's a questionnaire. It is attached to a content type called "event". e.g. discussion_1: '#type': likert '#title': 'Discussion 1' '#questions': '...
0
votes
0answers
9 views

Failing functional tests on drupalLogin()

I'm getting failures on any functional tests in Drupal 8 using the drupalLogin() function. The error message I get is the following. User tBQjiDPm successfully logged in. Failed asserting that ...
0
votes
0answers
22 views

Format Json Responses as Camel Case

Currently our json responses are not formatted at all, we are using the JsonResponse class to return a status code with content: public function getMarkets() { $response = $this->...
0
votes
0answers
11 views

Migrate date field from csv to Drupal 8 using format_date

have been trying to import the date fields from a CSV file to Drupal 8 using format_date function. followed these two answers Import a date from CSV to Date field How to convert year to date with ...
1
vote
1answer
8 views

Handling anonymous orders in custom commerce module

Drupal: 8.7.2 Commerce: 2.13 I have a custom module set up that adds the following functionality to Commerce: It prevents the user from adding more than one item to their cart. If they try to add a ...
-2
votes
0answers
18 views

How to add an editor to a block?

I need to basically allow front end clients to edit the information of a block. I want to do this by adding a texteditor(CKEditor) into the options when someone is on the configure block page.
0
votes
1answer
30 views

Performance for file serving and storage [on hold]

I intend to allow users to upload images to my website, but I'm concerned that Drupal's default handling of files might not be cut out for storing and serving potentially thousands of files without ...
0
votes
0answers
33 views

Is it possible to make a site aware of entity schema changes that are managed externally using SQL-based storage?

Consider the following situation: A Drupal 8 site using native SQL-storage (MySQL) custom_table is added to the same MySQL host as Drupal, either as a table in the Drupal system DB or as a table in a ...
0
votes
0answers
15 views

In Webform 8 - can you omit the fieldset label in a confirmation email?

In Webform 8x I would like the email sent with the webform_submission_values to not include the fieldset labels. What would be the way to achieve this? Alternatively, is there a way to not send the ...
0
votes
0answers
7 views

How can I make volume (tier) discount across multiple products variants

I'm looking for a solution to make it possible to give the customer a volume discount if he buys product A or product B. I tried with the module "Commerce pricelist" https://www.drupal.org/project/...
0
votes
0answers
18 views

Receipt Email only shows Billing and Shipping data when an order is placed as an admin user [on hold]

I have triple checked all the User Permissions on admin/people/permissions. All checked permissions for under Commerce are checked with the exception of those that have the "Warning: Give to trusted ...
0
votes
0answers
28 views

Delete records from database pressing a button in twig

Drupal version: 8.7.x I created a module that retrieves meals based on the given ingredients. I display the ingredients with a delete button and the meals underneath them. However I don't know where ...
-2
votes
0answers
15 views

I am not able to edit a panel [on hold]

I have a Drupal 7 panel node. I have few regions in the panel content, but I am not able to edit any of those regions. In Chrome console, I see the following errors. Refused to apply style from '...
0
votes
0answers
30 views

Node form that defines fields based on another node

I have two content types (Unit and Scheme of Works). In Unit, I have a field (field_lo) that allows the user to create an unlimited number of entries. In Scheme of Works, I need to associate other ...
0
votes
0answers
7 views

How to mix preset amounts and a user entered amount in commerce

I am implementing donations functionality with Drupal commerce 2.x I have found a patch that allows for a direct checkout form (kind of "buy now" button) https://www.drupal.org/project/commerce/...
0
votes
0answers
15 views

Connection timed out issue at server , but code working fine at localhost [on hold]

I call some api using drupal_http_request(). At localhost it is working fine. but at server I got Connection timed out error where error code -110. I set ini_set('default_socket_timeout', 120); $...

15 30 50 per page