Drupal - Open Source Content Platform

Subscribe to Drupal - Open Source Content Platform feed
The place for news, articles and discussion regarding Drupal, one of the top open source (GPL) CMS platforms powering millions of websites and applications, built, used, and supported by a diverse community of people worldwide. More Info: [Drupal.org](http://drupal.org)Drupal - Open Source Content Platform | #Celebr8D8
Updated: 27 min 17 sec ago

Since there is less documentation for Drupal8 I am writing blogs. I need some feedback.

1 hour 13 min ago

Hey guys, I think there is always less to know proper documentation in Drupal so I've decided to write blogs on it by associating with a company that uses Drupal extensively I did two blogs already, I need some feedback from you guys, please let me know your thoughts thanks :) Here are the blogs:

  1. Implementing Open Graph Features Using Meta tag Open Graph Module

  2. Protecting Web Forms From Bots Using Captcha and Honeypot

submitted by /u/Syntax_3rror
[link] [comments]

Do I need to configure trusted_host_patterns if Drupal is behind a reverse proxy?

Fri, 03/16/2018 - 19:16

Drupal 8 complains if you haven't configured the trusted_host_patterns in settings.php, as failing to do so can open the site up to HTTP Host header attacks. However, I cannot for the life of me figure out a way to set the trusted hosts so that I can actually use the site. I get this error:

The website encountered an unexpected error. Please try again later.

This is about all I've been able to find on Google searches related to the issue.

While the OP doesn't mention reverse proxies, one of the commenters is calling the warning Drupal displays for the trusted host configs "just a nuisance" for any installations behind a reverse proxy, and suggesting that we should be able to opt-out.

Is it safe to leave trusted host patterns disabled while behind a reverse proxy? Or is there some config step I'm just missing that will make them work?

submitted by /u/River_Tahm
[link] [comments]

Anyone else having problems with pager of module pages in drupal 7?

Fri, 03/16/2018 - 15:28

For a reason I do not understand my pager has stopped working. Any ideas why this might occure? I once enabled cache for views and pages but i changed it back and cleared all cache and still the pager does not work.

submitted by /u/Joetunn
[link] [comments]

Weekly useful Drupal things to know thread

Fri, 03/16/2018 - 10:08

What's a useful tip or technique or tool (or anything) that you picked up and think others should know about?

(Check out the weekly post schedule in the sidebar)

submitted by /u/AutoModerator
[link] [comments]

Are there any large-ish ecommerce operations running on Drupal 8 + Commerce?

Fri, 03/16/2018 - 00:09

Good examples seem few and far between.

I'm a Magento guy originally - which whilst it's awesome for transactional, is pretty poor for content. I can only see content being more deeply embedded in the customer journey going forward, which Drupal 8 is awesome at managing.

So are there any good examples of some medium - high profile sites running on D8 + Commerce?

I recall Lush Cosmetics being on D7 + Commerce, but any D8 ones out there?

submitted by /u/mr_acronym
[link] [comments]

Drupal 7 or Drupal 8

Thu, 03/15/2018 - 15:42

Looking at redoing a website and curious about the pros and cons of Drupal 7 versus 8. I know drupal 7 has been around longer and has more modules, but with Drupal 8 around I am concerned about support for bugs and security patches.

Not real familiar with either, so any help will be useful.

submitted by /u/dheckler_95678
[link] [comments]

phpunit with code coverage and Drupal functional tests

Thu, 03/15/2018 - 11:36

I'm trying to get code coverage to work on my functional tests. The problem is when I try to bootstrap drupal for testing with code coverage turned on, it goes so slow the tests time out. Without code coverage turned on they run fine. I did some logging and saw that it was indeed loading, just really really slow.

I'm guessing code coverage is trying to analyze drupal core, but I can't seem to figure out how to tell it not to consider these files for coverage. I tried using a <whitelist><exclude> in my phpunit.xml. Any ideas?

submitted by /u/ThomasTheFourth
[link] [comments]

Drupal Dev Thursdays: Post here with development questions or discussion

Thu, 03/15/2018 - 10:08

This is the weekly thread for development questions or chit-chat that doesn't belong in the Monday Beginner Questions thread. All questions/comments/ranting about Drupal dev is fair game.

(Check out the weekly post schedule in the sidebar)

submitted by /u/AutoModerator
[link] [comments]

Difference between content type and content entity?

Wed, 03/14/2018 - 14:27

I am trying to understand the main difference between content type and content entity. Can someone help me out

submitted by /u/mwangigituko
[link] [comments]

What is a widget in Drupal?

Wed, 03/14/2018 - 11:52

What's a widget in Drupal and what are some of their uses?

submitted by /u/mwangigituko
[link] [comments]

It's Drupal Contrib Wednesday! Post recent contrib module likes/dislikes

Wed, 03/14/2018 - 10:08

Have you tried a new module or theme recently, or do you have a favorite that nobody seems to know about? Tell us what you like or dislike.

(Check out the weekly post schedule in the sidebar)

submitted by /u/AutoModerator
[link] [comments]

Upgrading to Drupal 8.5 broke Functional tests when running Docker

Wed, 03/14/2018 - 08:16

Have anyone run in to a similar problem? The reason the tests fails is:

Drupal\Tests\published_at\Functional\PublishedAtNodeFormTest::testNodeForm User <em class=“placeholder”>jjRYi7FY</em> successfully logged in. Failed asserting that false is true.

Failed asserting that false is true, is it trying to grab the session from the session handler.

The test simply contains a $this->drupalLogin() and works fine outside using Docker. The test also runs fine when using Drupal 8.4. The test also runs fine when using Drupal 8.5 without Docker.

Any ideas?

submitted by /u/johndever
[link] [comments]

hook_form_alter not working

Wed, 03/14/2018 - 04:45


I'm trying to create a module who use the hook_form_alter hook. My Module is named utf_main so in my utf_main.module I have this :

function utf_main_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) { var_dump('aa'); }

I'm using the 8.4.x documentation. However I can't get my 'aa' printed on my screen. What am I doing wrong ?


submitted by /u/hellotoyou31
[link] [comments]