All Questions

Filter by
Sorted by
Tagged with
1
vote
2answers
2k views

NotFoundHttpException after changing webiste hosting, sub-domain

After changing webiste hosting (Drupal 8) I got this very un-intuitive error message: The website encountered an unexpected error. Please try again later. Symfony\Component\HttpKernel\Exception\...
-3
votes
0answers
27 views

ERPAL Stripe payments not showing up

I've been given a Drupal 7.x ERPAL (https://www.drupal.org/project/erpal_platform) project to maintain and I'm attempting to add online Stripe payments using Commerce Stripe (); it may also be worth ...
0
votes
1answer
48 views

Translate path controller

I have the following path defined in my routing.yml: path: '/department/{department_node}/qualifications/{qualification_id}' I need to translate that route into other languages, for example into ...
0
votes
1answer
488 views

Image style is not rendering

My field_image is not rendering on user-profile.tpl. I have the following code (two different ways to render for testing): $image = field_get_items('user', $user, 'field_image'); $output = ...
12
votes
1answer
16k views

Set the template for the frontpage

How do I change the Drupal 8 frontpage template, so it doesn't use the regular page.html.twig template?
0
votes
1answer
431 views

selecting hierarchical select values during migration

I want to select the values of a taxonomy which is being shown by heirachical select. These values are to be selected while importing the data through csv by using migration module. right now i am ...
0
votes
1answer
15 views

How to add a translation to an existing node/entity using REST?

I have a headless Drupal 8 and want to create a translation for an existing NODE using a POST request but cannot figure how to. I know how to create, edit and delete a node but am unsure on how to add ...
0
votes
0answers
19 views

EntityQuery get contents which were not modified [duplicate]

I'm writing a very basic query to get the count of contents which were not modified. The logic I'm applying here is simple too, just check if created = changed The SQL query is pretty straightforward ...
0
votes
1answer
53 views

how to configure drupal settings to be available to visualize the available variables?

how must drupal local settings be configured to display available variables using IDEs or other tools ? I guess this is xdebug and phpstorm but i don't know how to configure it if i don't have full ...
0
votes
2answers
566 views

Drupal database not found after running update.php

after installing a module I run update.php and then click take me to front page or take me to admin pages the page takes a while to load and eventually gives me the following error: PDOException: ...
3
votes
2answers
71 views

How to get total number of rows on a block of a view

On hook_block_view_alter() I need to get a total number of rows that this block displays. For example, I have a view with the following block: On hook_block_view_alter() I do the appropriate checks ...
1
vote
1answer
239 views

How to create options in installation profile/ distribution to enable custom content types?

I have created a custom installation profile/ distribution with exported config files of a site. I have 4 content types in this site from which two will be installed by default but for other two are ...
0
votes
0answers
57 views

How do I distribute/share a project/product?

I have a site that I've built with Drupal 8, using composer and git to manage the code base. It's a fairly simple site that includes a handful of third-party modules, a few custom views, and a custom ...
0
votes
0answers
68 views

What is the correct way to 'fix' a site originally installed an developed using Composer, but deployed using FTP?

I have put together a site using the Drupal Varbase distribution. To do this I installed using composer, this is my first project using Composer. Now that I'm done in development I'm working on ...
0
votes
0answers
77 views

Configuration Inspector error…The site's configuration does not match the associated schema

I have recently started using Drupal 8 and I decided to go with the Varbase distribution. I installed it once and it came up with errors. I figured things were timing out so I increased the execution ...
3
votes
1answer
444 views

Adding translation files to install profile?

I am building a Drupal installation profile to make deployment of my site easier, ideally I would like to include the translation files to the install profile as well. But apart from adding the core ...
1
vote
1answer
465 views

Zend Optimizer+ error

Can an anyone help me.I am getting the following error while running my drupal 7 application Fatal error: Cannot redeclare function views_views_plugins() (previously declared in /var/www/vhosts/cibi....
-2
votes
0answers
18 views

Clear cache message appears at different location

I have Drupal 7 site. When anyone clear cache using "Flush All Caches" system displays message "Every cache cleared." at top of page. But sometimes message get displayed bottom of ...
0
votes
2answers
28 views

How do I fix these requirement conflicts?

While updating through composer, I am getting an error from the Webform module. Drupal version 8.9.1 updated. How do I resolve this error? Problem 1 - drupal/webform_node 5.15.0 requires drupal/...
0
votes
2answers
766 views

How can I enable HTML output for checkbox options?

I am adding theme styling settings and I would like to have associated color to the checkbox in themes setting form. So far, i haven't been able to do so, because the output strips inline styling and ...
2
votes
2answers
2k views

Translate view header

I add a simple text as view header but it is not exists in translatable text in admin/config/regional/translate. In Drupal 7 we could even translate unformulated views header and footer with the ...
3
votes
2answers
2k views

Storing images as nodes

I am building a Drupal 7 platform where users can share images. In a nutshell, people should be able to comment on images and like them. The way I realized this is by creating a custom content type ...
0
votes
1answer
37 views

How can I render more than one field value in the controller?

in my case i have a controller that it send for me the title , to the view , but i want to send the tittle and the body of the article both , i have tried to send them from the controller but it doesn'...
1
vote
1answer
458 views

Form submit POST renders page before submit handler is called

I have a search form in the header that is simply adding a search term to the current URL. If you are on example.com/list-page and submit a search, it just sends you to example.com/list-page?search=my-...
0
votes
1answer
977 views

how to pass loop.index from view to node

In a views template (views-view-unformatted.twig.html), I have {% for row in rows %} {% set row_index = loop.index0 %} {{ row.content }} {% endfor %} where each row is processed in ...
2
votes
1answer
33 views

How to ensure successful update after system failure during updb causing the site to remain in maintenance mode?

Running drush updb to upgrade drupal core or other modules, puts the site in maintenance mode. I recently faced an issue (probably an edge case) where the site was stuck in maintenance mode after ...
-3
votes
0answers
37 views

content access permissions issue [closed]

I'm getting this below ajax error while changes the access control for an content type, the occurs after Clicking the Rebuild permission option. An AJAX HTTP request terminated abnormally. Debugging ...
1
vote
1answer
464 views

Fatal error “Cannot redeclare template_preprocess_select()” on every attempt to install modules or themes

Fatal error: Cannot redeclare template_preprocess_select() (previously declared in /Users/ron/Sites/provgmc.dev/core/includes/form.inc:30) in /Users/ron/sites/provgmc.dev/core/includes/form.inc on ...
-4
votes
0answers
17 views

Problem Add to Form Lost [closed]

Hello I have a problem the button add to the cart not found, do not show.
2
votes
1answer
515 views

Submitting a form causes 'secure connection failed' error that persists

I've got a SSL certified server running drupal 7.37. Everything was working fine until I started adding form submission to a module I'm working on. As soon as I submit the form, I get 'Secure ...
0
votes
1answer
495 views

Suddenly unable to add a field to a new content type

When editing a content type I was going to add a simple boolean field to an existing content type. When attempting to add the new field Drupal threw an error. After a few more attempts to add a field ...
1
vote
1answer
384 views

Full phrase search

Now I'm using "Search_api" module and when I input, for example, "test case" - it's output all articles which consists both of this words separately. But I want to make search with exact phrase "test ...
3
votes
2answers
453 views

Field in Custom Content Type Stripping out <img> tags

Drupal6: I have a custom content type, with a custom field, set to textarea. The content type's instance filter is set to Full HTML. When I add an image tag to the custom field, the image renders in ...
1
vote
0answers
620 views

Making contextual filter conditions “OR” vs. “AND” in Drupal7 [duplicate]

I have a view that needs to allow for the "OR" of a set of contextual filters (filtering on node references) rather than what appears to be the default of "AND". In the answer to a ...
0
votes
2answers
474 views

Problem installing Devel module onto site

I went to drupal.org, copied the link for the Devel module, went to my site, New Module (under extensions) paste the link into the "Install from a URL" and when I hit Install it gives me the following ...
1
vote
1answer
566 views

Drupal Bootstrap THEME_menu_tree on new menu

I'm using Drupal 7 and the Bootstrap theme, in template.php I am successfully theming the primary menu (main menu) to enable extra list styles with function MYTHEME_menu_tree__primary($variables) { ...
-1
votes
1answer
34 views

Is there a way to create a list of Vocabulary (Replicate this page: /admin/structure/taxonomy)

I have created a custom layout and in that i want to show the content of this page -> /admin/structure/taxonomy. Please suggest if there is any way out. Thanks
3
votes
1answer
874 views

Update a field without changing the node

I need to change a field in a node without altering the 'changed' timestamp. I know this was possible in Drupal 7 using field_attach_update(), but that has been removed since then. I could use an ...
1
vote
0answers
35 views

How to validate a modal form?

I have a custom module which adds a button to a node form. The button opens another node form in a modal and when submitted, it takes the entity created in the modal and fills in an entity ref field ...
1
vote
1answer
524 views

hook_editor_js_settings_alter()

I am using hook_editor_js_settings_alter() to disallow HTML tags in Ckeditor. It is only working in node edit form, and Ckeditor is in edit mode. Wen I preview the published page it allows the tags in ...
1
vote
1answer
33 views

Custom POST request [duplicate]

I am very new to Drupal. My project requires me to create a custom module. I am working with Headless Drupal and I want to make a POST request. I cannot pass the POSTMAN Body to my Request argument in ...
0
votes
1answer
552 views

Multiple independent Views attachment pagers (load more)

I have a view with two attachments. I want to have a load more button to load items for each attachment and the main view separately, I have the load more module, but it loads more items for all the ...
1
vote
1answer
519 views

Display message instead of redirecting to Access Denied page

I'm using Commerce Auction module for an auction site. I want to display a message when the auction time out occurs for a certain product and at the same moment the user clicks on place bid tab. ...
0
votes
1answer
469 views

Views : Output the field as link - not showing the field properties properly

I want to output an image field as a link in views. I've seen many tutorials but get stuck at one point. I already added the link on top of the image field. By clicking on the image at rewrite ...
0
votes
2answers
516 views

How to stop redirecting to newest URL after updating a node

I have setup 2 aliases for each node of a content type called "property". The first alias is like example.com/texas/village-apartments and the second is example.com/texas/corp/village-apartments. ...
1
vote
1answer
555 views

How to make blob file downloadable?

I have created a Module to make blob file available for Download in Drupal 7 . Below my code for .module file <?php function blobfile_block_info() { $blocks = array(); $blocks['...
2
votes
1answer
635 views

'Views Field' issue in NO RESULTS BEHAVIOR - Hide if empty not working

'Hide if empty' configuration of views is not working properly as a result all the empty fields are showing. Is there any work around to force fully hide empty fields in the views result (Page/block) ...
0
votes
1answer
715 views

How to fix “This display does not have a source for contextual filters”

I've set up a view to produce a block of content nodes based on taxonomy. I have the filter criteria to include Has Taxonomy term (not empty). Then under advanced I added a contextual filter 'Has ...
0
votes
2answers
740 views

Print image with alt text

In the node template, I print an image gallery. I need to add the alt text. <div class="field--name-field_gallery"> {{ content.field_gallery }} {{ content.field_gallery.alt_field }} </...
0
votes
1answer
439 views

Fielded Relation's Field not showing in Views

I'm trying to implement a "rating" system with Relation module. I have a Relation Type defined from a user --> node. The Relation Type has an Integer field to hold the rating. I want to produce a ...

15 30 50 per page
1
3 4
5
6 7
1657