How to setup proper 404 page not found page in Drupal?

Drupal - Open Source Content Platform - Fri, 10/12/2018 - 10:24

Hi so at present my Drupal 7 page not found is 301 redirected to a custom 404 page.

However I just checked the http response code for a random url and I noticed it 301 redirects to a custom page not found page but that page returns a 200 http response code.

Shouldn’t the page response header be 404?

If that’s the case how do I fix the response code to 404 ? This is Drupal 7 site thanks!

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

Weekly useful Drupal things to know thread

Drupal - Open Source Content Platform - Fri, 10/12/2018 - 10:06

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]

Chromatic: The Cost of Custom

drupal.org aggregator - Fri, 10/12/2018 - 09:00

Custom code gives you exactly what you need, but it comes with a cost.

Categories: Drupal

Agiledrop.com Blog: Top Drupal blog posts from September 2018

drupal.org aggregator - Fri, 10/12/2018 - 08:10

Each month, we revisit out top Drupal blog posts of the month, giving you the chance to check out some of our favourites. Let’s look at the top blog posts from September 2018.

Categories: Drupal

Matt Glaman: Running Drupal's PHPUnit test suites on DDEV

drupal.org aggregator - Fri, 10/12/2018 - 04:00
Running Drupal's PHPUnit test suites on DDEV Friday 12, October 2018 mglaman

DDEV is a local development stack built on top of Docker. It gives you all of your environment needs without messy configured on your host machine, without needing to know Docker or configure your own containers. Which is great, and makes life easier. Instead of just using DDEV to develop your site or application locally, why not also run your tests within it?

Categories: Drupal

Bay Area Drupal Camp: 10 Things to Make Your BADCamp ROCK!

drupal.org aggregator - Fri, 10/12/2018 - 00:27
10 Things to Make Your BADCamp ROCK! Drupal Planet rob.thorne Fri, 10/12/2018 - 04:27

Here’s a list of the 10 important tips and tricks to help make your sure you have a magical BADCamp experience.

BADCamp is sure to be a great event. Tickets are FREE.

Register today!

1. Wear Good, Comfortable Shoes

If you want to have a great time the whole time you’re at BADCamp, we STRONGLY recommend wearing shoes that are comfortable, but give you lots of support. You don’t want to miss out on all the fun stuff we have planned because you have to take a break to rest your poor tootsies. Don’t wear brand new shoes either and you might want to also get insoles.

2. Dress in Layers

October in Berkeley is beautiful, but let’s face it, room temperatures are unpredictable. For this reason, bring a hoodie (or donate to get a special edition 2018 BADCamp hoodie) that you can throw on and/or take off as the climate requires.

3. Plan Your Schedule

Are you coming to learn specific skills? Check out the training classes, summits and sessions available and create your own schedule.

Do you want to find a new employer? Check out the job board and sponsors expo to meet awesome Drupal shops

Who do you want to meet with while you are at BADCamp? A famous podcaster or module maintainer? Find out who is coming on the attendee list and reach out to connect. Magical moments are frequent at BADCamp!

4. Bring a Laptop

If you want to get the most out of your BADCamp experience, be sure to bring a laptop. You will want to follow along and try some of the cool things the presenters show you. Bring a notepad too. Sometimes getting to an outlet to charge your laptop can be tricky. So that you don’t forget something important while your laptop charges, bring a notebook or notepad and a pen and take some notes.

5. Bring a Water Bottle/Travel Mug

There will be water fountains and FREE coffee/tea. Bringing a refillable water bottle means that you can stay focused on what you’re doing longer and get the most out of the sessions you're attending. Not to mention, using a water bottle instead of buying bottles of water is far better for the environment.

6. Bring Chargers for ALL your Devices and a Mobile Charger

There’s nothing worse than being out and about with a dead phone/tablet/laptop. Bring chargers for all of the devices you intend to use at BADCamp. If you use a battery-operated mouse (or wireless remote for presenting), bringing an extra set of batteries couldn’t hurt either. Even if you don’t end up needing them, you could find yourself with a new friend when you share those extra batteries with someone in need.

7. Bring Business Cards

Make it easy to connect! You will meet lots of great people and some of them you will want to keep in touch with. Get in the habit of giving out a card when you meet someone.

8. Condense your Stuff

You will walk around campus, so a lighter load is ideal. Plus you will want room for SWAG!  Condense your backpack down. Pro Tip: Get a small tote or even a Ziploc bag to stick all of your conference swag in. That way all of the stickers and little bits and pieces are in one bag that you can stick in your luggage at the end of the conference.

9. Bring a Pair of Headphones

As much as we all want to be able to unplug from our jobs and just focus on the sessions, it’s not always possible. Sometimes you have to put your nose to the grindstone and get some work done. If you’re the type that needs to listen to some music while you work, bring along a pair of earbuds so that you can focus and not disturb others around you.

10. Bring a Friend

While not required, having a friend tag along with you can make for a memorable BADCamp experience. If you’re like me and you’re road tripping to BADCamp, think of all of the awesome photos, sing-a-longs, and weird roadside attractions that you’ll see and get to enjoy together. If you’re flying, it’s always nice to have a travel buddy to keep you company while you’re waiting at the airport during the inevitable layover.

Pro Tip: Don’t use your buddy as a reason to shut out others. Go in with an open mind and you’re sure to find another new friend (or friends!) to share the experience with.

🎠 🎠 🎠 🎠 🎠 🎠 We need your help!

BADCamp is 100% volunteer driven and we need your hands! We need stout hearts to volunteer and help set up, tear down, give directions and so much more!  If you are local and can help us, please sign up on our Volunteer Form.

Looking for Work?

BADCamp is a great opportunity to network, learn what technologies are in demand,
and what companies are doing great stuff in Drupal Space.

If you’re looking for work, you can also make sure you’ve checked the “I am interested in Drupal Jobs” box either when you registered, or by going to your user account and clicking on the “Edit” link (the box is a towards the bottom of the form, so keep scrolling). If you do this, our sponsors will know you’re interested in looking for a job, and you will get a digest of jobs post BADCamp.

Be sure to check out the Job Board to see if there are jobs you’d be interested in applying for amd stop by the sponsor expo to meet your future team!

Looking for People?

Looking to hire Drupal talent?  A lot of Drupal talent will be at BADCamp.  If you’re sponsoring BADCamp, you have a head start here.  Sponsors at the Supporting Level  (the $350 level) get to post one job and get all the goodness of being promoted as part of the sponsorship. Just go to the Job Board page and click on “CREATE A JOB POSTING”.  Tell potential hires about the opportunities you have available, and what it's like to work with Drupal.



A BIG thanks Platform.sh, Pantheon & DDEV and all our sponsors who have committed early. Without them this magical event wouldn’t be possible. We are also looking for MORE sponsors to help keep BADCamp free and awesome. Interested in sponsoring BADCamp? Contact matt@badcamp.net or anne@badcamp.net.

Would you have been willing to pay for your ticket?  If so, then you can give back to the camp by purchasing an individual sponsorship at the level most comfortable for you. As our thanks, we will be handing out some awesome BADCamp swag as our thanks.


    See You At BADCamp!!
Categories: Drupal

Prometheus Exporter

drupal.org - Modules - Thu, 10/11/2018 - 23:34

This module exports Drupal metrics to be consumed by Prometheus scrapers.

WARNING: this module can expose sensitive information such as module versions which could be used to identify vulnerabilities. You should ensure access is only granted to trusted users via Basic Authentication or OAuth2, or protect with a web application firewall, or apache htaccess rules.

Categories: Drupal

D8 module to see perms per role?

Drupal - Open Source Content Platform - Thu, 10/11/2018 - 15:36

I'm working on a Drupal 8 site, and I'm trying to figure out a situation with permissions.

When I navigate to People > Roles > {Role Name} > Edit, I don't see the list of permissions for that role only.

I worked on a D7 site at a previous job, and I seem to recall being able to look at the permissions of a single role. I don't know if that was out-of-the-box functionality, or a D7 module that we were using. I haven't been able to find a module that purports to show me the permissions per role.

Is there such a module for D8?

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

Flocon de toile | Freelance Drupal: Dynamically override a configuration with Drupal 8

drupal.org aggregator - Thu, 10/11/2018 - 15:24

In some cases, it can be extremely interesting to be able to override a configuration dynamically. One of the first use cases immediately noticeable is in the case of a site factory with a set of shared and deployed features, and therefore identical configurations shared.

Categories: Drupal

Lullabot: Update on the JavaScript Modernization Initiative

drupal.org aggregator - Thu, 10/11/2018 - 14:46
Mike and Matt interview members of the Drupal 8 JavaScript modernization initiative to find out what's going on, and the current status.
Categories: Drupal

Firebase Notification

drupal.org - Modules - Thu, 10/11/2018 - 14:38

This module integrates with Google's Firebase Cloud Messaging to send notifications to Android devices after creating or editing a node.

To configure is simple, just create a Firebase account and go to the module settings to set the server key, the types of content you want to send notifications and other information about the notification.

Categories: Drupal

Entity Translation Copy

drupal.org - Modules - Thu, 10/11/2018 - 10:29

You are given the task of updating an existing site (with content in it) to be multilingual. You do the steps on your local environment to make entities/nodes translatable (Following this guide) and then decide to export the configuration with features.

Categories: Drupal

Drupal Dev Thursdays: Post here with development questions or discussion

Drupal - Open Source Content Platform - Thu, 10/11/2018 - 10:07

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]

Info Messages

drupal.org - Modules - Thu, 10/11/2018 - 09:30

The module Info Message has a intention of alow the user and developers Drupal the render informative messages with blue background, for this enough call the function drupal_set_message and pass in second paramenter (type) the string "info".

drupal_set_message('Avoid deleting the modules directories manually before performing the uninstallation', 'info', FALSE);


Categories: Drupal

content alert

drupal.org - Modules - Thu, 10/11/2018 - 08:50
Categories: Drupal

user notification

drupal.org - Modules - Thu, 10/11/2018 - 08:48
Categories: Drupal

Acquia Developer Center Blog: Decoupled Drupal Authentication with OAuth 2.0

drupal.org aggregator - Thu, 10/11/2018 - 08:48

Perhaps the most critical component of any decoupled Drupal architecture is a robust authentication mechanism that protects data transmitted between a Drupal site and API consumers like JavaScript applications and native mobile applications. While Drupal core makes available HTTP Basic Authentication and cookie-based authentication, both easy to use, neither of these approaches is sufficiently secure when it comes to best practices.

Tags: acquia drupal planet
Categories: Drupal