All Questions

0
votes
0answers
2 views

Not able to access uploaded images in drupal 7

When we upload an image using the URL 'https://website.com/file/add' , the image is getting uploaded. While uploading, we have chosen the destination as ' Public local files served by the webserver' ...
4
votes
3answers
761 views

End date shown on calendar

I'm using the Calendar, and Date modules to create an agenda on a website. However, when I create an event with a start and end date, it also shows the event on the next day. While this is useful for ...
-1
votes
1answer
35 views

Password reset link gives access denied

Password reset link is not working in drupal 8.6. The email with the one-time login link is sent just fine, but when the user clicks on the Login button, they get "You are not authorized to access ...
21
votes
7answers
54k views

How do I clear cache using an SQL query?

After a module update, my site has become unusable, and only shows a php error message. I tried circumventing the problem with drush cc, but that didn't help. Also tried with a custom php script but ...
-2
votes
0answers
9 views

Sell a unique product with drupal 8

I would like to sell a single product (a CD) on a Drupal 8 site and I'm looking for a simple way to pay. I guess in this case, it's not worth using the Commerce or Ubercart module. In fact, I intend ...
1
vote
2answers
43 views

Site seems to miss the “private” wrapper, how can I fix it?

I can not enable the private folder getting the warning as below: Warning: file_exists(): Unable to find the wrapper "private" - did you forget to enable it when you configured PHP? in ...
4
votes
1answer
1k views

EntityQuery with a condition on an array

I try to list all fields where a paragraph type is referenced (to find all contents which have paragraphs of a specific type). My problem: I do a EntityQuery on field_config entity type to find the ...
0
votes
1answer
931 views

How do I periodically import from a source?

In the basic settings of a feeds importer there is a select list: Periodic import Every 30 min Choose how often a source should be imported periodically. Requires cron to be configured. ...
3
votes
1answer
850 views

Taxomony menu - show all, vocabulary link are disabled

I have a custom vocabulary which looks something like this: Shops (vocabulary name) Sporting Goods Auto Parts Computers Etc. (15 items in total, 1 level) My goal is to create a menu link to Shops ...
2
votes
1answer
33 views

I broke a view and i'm not sure how to fix it

I broke a view by adding the "flagged" relationship to the view, then filtering by the flag_id, then deciding against it and removing the relationship. The filter for flag_id was not removed when the ...
-1
votes
0answers
56 views

Grouping field and display the result in chart

I am trying to display the data submitted through a webform in graphical manner using charts. I want to group the data by field. For example , if there are n customers and they submit the order to ...
0
votes
4answers
4k views

manipulate form variables before render()

I have the following line of code in a user-profile-form.tpl.php which Drupal uses to render an input field in the user's edit profile page. print render($form['field_machine_name']); // this field ...
-2
votes
1answer
27 views

How to get netflix like login functionality restrict user login based on session?

Allow administrators to limit the number of simultaneous sessions per user role. Assuming the session limit is 1, if a user is logged in to a Drupal site from their work computer and they log in from ...
1
vote
2answers
1k views

How do I add local tasks menu to a views page display

I have created a views page display that has the path /node/%node/sessions, contextually filtering by content ID. It also creates a "menu tab" called "Sessions". Therefore when I got to node/12 I ...
-1
votes
0answers
10 views

View order error drupal 8 [on hold]

In admin, While I click on particular order to VIEW order detail it gives me an error of Error: Call to a member function label() on null in commerce_payment_preprocess_commerce_order() (line 127 of /...
5
votes
1answer
768 views

How to add multiple products to cart at the same time with attributes

I have different view blocks that display multiple products on the same page, each product has their own attributes such as product bundle and custom line item, these serves as an option set / ...
1
vote
1answer
29 views

Using parameters in routes

I am using the pathauto module to create url aliases for all user account url, so: /user/[uid] will become /u/[user:account-name]-[user:uid] which means: /user/36 will become /u/john-smith-36 In ...
3
votes
1answer
1k views

“Uncaught TypeError: Cannot call method 'call' of undefined at 507 jquery.validate.js”

I am trying to implement clientside validation using the clientside validation model. I have been following the documentation located here. Specifically the Form API Section for Drupal 7. I believe I ...
0
votes
2answers
373 views

How do I minify inline CSS using Twig?

Inside my html.html.twig template I've added a stylesheet inside the style elements using this. {% include directory ~ '/css/base/style.css' %} Is there a way that I can strip it for all whitespaces?...
1
vote
1answer
873 views

How do I get comments to be indexed?

I'm not sure if it's actually doing this; I can't see any options for comment fields in the configuration. How can I check? Does it say explicitly somewhere?
2
votes
2answers
1k views

Image preview thumbnail does not display

Drupal 7. When adding a core image field to a content type to display an image, the preview thumbnail does not display on the edit page when uploading an image. What appears after clicking on the "...
4
votes
4answers
5k views

How to remove paragraph tag from ckeditor?

When we insert content into ckeditor field,suppose we write single line of text into ckeditor without any html tag, why its wrapping paragraph tag automatically around the text . I need to remove ...
0
votes
1answer
762 views

How can I check the value of an aggregated field without direct access to Solr?

I'm using Search API Solr on Pantheon (which means I don't have direct access to the Solr backend), and I've set up an aggregated field in the UI. This aggregated field is a Fulltext aggregation of a ...
0
votes
1answer
10 views

entity_hierarchy.nested set storage factory has non existent service

I am trying to start a previously migrated site and I get this error. Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: The service "entity_hierarchy....
0
votes
0answers
23 views

How to create a copy of ResultRow without reference?

I need to have different values in each row based on the same row, so I create $this_row from $row. But field_x contains the same value in rendered view. I guess the $row reference is the same and I ...
0
votes
1answer
843 views

View in views header still displaying when no result

I tried this question: Empty view is rendered even though there is no result And it didn't work I have a view of Judge nodes that displays using a contextual filter. Inside that view I have embedded ...
0
votes
0answers
13 views

How can I get field definition values in a hook_views_query_alter?

This is a little related to my earlier question, I'm using a hook_views_query_alter to only show results for the latest (last) value in a list field, and then also in that set only show the results ...
0
votes
2answers
26 views

Display related media entities

We are using the Basic Page content type and it has an Entity Reference field (field_document) that points to the Document (Media bundle), which has a field_document_tag (taxonomy term field). The ...
0
votes
0answers
11 views

Migrate into Multi-value Checkbox from CSV

I'm running into a bit of an issue using Migrate API. I thought I had a fairly simple use-case, but am unable to actually find an example for this particular instance. I have a CSV I'm importing, ...
3
votes
1answer
1k views

Programmatically get exposed filters from view

A little bit of context: I am running a headless Drupal 8 with React in the front-end. All the data gets exposed through various endpoints. Now i am trying to render a view in react, there was no ...
0
votes
0answers
9 views

Composer.json deletes dir even with preserve path

I am running composer on Drupal 7 and I am just trying to update my site; however when I run composer update, the composer deletes all the preserve paths I had specified. My structure is as follows: ...
-2
votes
0answers
10 views

Content is displaying below the script

In my content, first I'm adding some text, then I'm adding an external JavaScript tag. Example text (in full HTML): I'm working in Drupal7. and then the script tag: <script src="https://XXX" ...
0
votes
1answer
37 views

Wrong status after updating from 7.64 to 7.66

I recently manually updated my localhost drupal site from 7.64 to 7.66. I ran update.php without errors. When the process finished, I cleared all cache and checked the status. It still reported 7....
1
vote
1answer
711 views

How to redefine / override the default breakpoints in a Bootstrap sub-theme

I have a Drupal 7 subtheme based on the Drupal Bootstrap theme CDN starterkit. I'm trying to change the default breakpoints, which I thought would be a simple, routine task, but I can't find anything ...
-2
votes
0answers
13 views

Cybersouce Secure Acceptance Web/Mobile module [on hold]

Is a Drupal 8 version of the Commerce module "Cybersouce Secure Acceptance Web/Mobile," or an equivalent replacement, available or in development?
1
vote
3answers
2k views

How to display an image in a Views RSS feed

I am trying to display an image in a Views RSS feed. I have added the following fields to my View: field_image, field_title, field_twitter (These fields come from my node). I then set all fields to "...
0
votes
0answers
13 views

Submenu tree problem

I have a website build with Drupal 7 CMS and I am using the Submenu tree module. Everything was working fine for months, but few weeks ago I have received a feedback from the client that all the links ...
-2
votes
3answers
247 views

How to display a token in plain text (without link)?

I created a form with the module "Webform" on "Drupal 8". In the form submission email, there is a token: [webform_submission:values:profil:entity:field_personnel_sexe] In the inbox, the term ...
2
votes
1answer
348 views

Why are my webform conditionals not always working?

We have 2 partially same webforms with conditional fields, opening a number of components depending on the selection with radio buttons. When logged on as administrator, both forms work fine. when ...
1
vote
1answer
13 views

How to display articles based on group combinations of various group types?

I looked at the group module. Defining permissions based on user and entity memberships would suit my needs very well, but sometimes I would need a combination of various group memberships to define ...
2
votes
1answer
18 views

How to replace drush_download_file in Drush 9

drush_download_file() existed in includes/drush.inc for Drush 8 and below, but this has been removed in Drush 9 as far as I can tell. Is there a standard way that file downloads should be executed in ...
0
votes
0answers
19 views

How can I limit views results based on the value of two fields?

I may have to do this programmatically, but I was wondering if there's another way in the UI. Basically, I have a list of articles with Volume and Issue fields. I want the view to only show articles ...
1
vote
1answer
810 views

how to get the submitted value of tableselect

function test($form, &$form_state){ $form = array(); $header = array(.............); $values = array(.............); $form['table'] = array( '#type' => 'tableselect', ...
0
votes
1answer
20 views

How do I get the weight of a multiple value field collection in a computed field?

I have the following structure in a content type: . field_collection_parent (multiple value = 7) .. computed field (single value) .. field_collection_child (unlimited multiple value) ...
0
votes
1answer
20 views

Print image URL with image style

I would like to print an image URL with an image-style. This doesn't work, since I don't have a ".value"-value for the image: How to find image style URL from within twig template? Is there anything ...
0
votes
1answer
23 views

How do you populate existing entities with the default value for a newly added field?

Let's say I have a content type, Article, with several fields. I already have hundreds of Article nodes created, but now I want to add a new field. After I set a default value for this field, how can ...
0
votes
1answer
955 views

Storing and retrieving custom field value of a webform in/from database?

I have altered a webform by adding a date field in different language like chinese in Drupal 7. But what steps are required to store custom field value in database and retrieving value when webform ...
-1
votes
0answers
16 views

How can I configure a webform in a modal to be responsive?

I am using the bootstrap theme on my project, and I create a webform module, and I am displaying it using the Drupal Modal option enabling the Link to form feature on a content type. The problem is ...
0
votes
2answers
694 views

date field missing when use date popup with date & time

in my custom module, I have used the following code: $form['event_date'] = array( '#type' => 'date_popup', '#title' => 'Set Date & Time :', '#date_format' => 'd-m-y H:i', ...
-3
votes
1answer
29 views

How do I export content types, fields, and views associated with the content types? [on hold]

How do I export content types, fields, and views associated with the content types in Drupal 8? I also need to put all the configurations as a custom module.

15 30 50 per page