Drupal Howtos

A how-to is a short description of how to accomplish a specific task. This is a compilation of Drupal related howto's which I provided to friends or which I applied myself. Targeting the Drupal beginner they provide simple and detailed step-by-step descriptions with pictures.

How to troubleshoot white screen of death (WSOD) after admin login – move of Drupal website

In our experience it happens from time to time that one gets a "white screen of death" - short WSOD - after the login with the admin account. Most frequently this happens after the move of a Drupal website to a new host or an upgrade to a new release. This is of course very odd and can lead to a very time consuming troubleshooting. Unfortunately we did not find out the precise causes and we couldn't find clear answers either. But processing the following set of measures always helps us to resolve the problem.

How to easily and quickly implement background audio for a Drupal website

The module Background Audio playback offers you an easy way to implement background audio on your Drupal website. The installation instructions on the module page are very brief and incomplete, what might create some obstacles during installation and configuration. This short howto will help you to go quickly and easily through the process.

How to add a custom html.html.twig to your Drupal 8 theme

The html twig file (html.html.twig) in Drupal 8, what was previously the html.tpl.php in Drupal 7.

If there is no html.html.twig in your theme folder /themes/custom/THEME-NAME/templates, just copy the default html.html.twig file from /site/core/modules/system/templates to this folder.

Thereafter you can edit the file to make the desired modifications. Thus you can for example overwrite the {{ html_attributes }}, what can be an efficient mean to change the language tag (html lang="en") without installing language modules.

Twig and Drupal

URL Redirects: "Fix 404 pages" tab is missing

After the installation of the Drupal module Redirect there is usually the tab "Fix 404 pages" under "URL Redirects". As the designation indicates this function allows you to redirect 404 pages. If this tab does not appear it usually has a very simple reason: The Drupal core module "Database Logging" is not enabled. Being able to reconnect 404 pages, the 404 pages obviously need to be recorded and that's done by the core module "Database Logging". Enable this module and the tab will appear.

Shadowbox gallery displays only the first image on a multi-image field (option "compact")

In 7.x-3.0-beta5 version a new compact parameter has been added to the shadowbox formatter. So if you have an image field (multimage, accepts more than 1 image) and you set its formatter as shadowbox with gallery type and compact checked, you will get a gallery in which only the first image thumbnail is displayed and when you click on it shadowbox is opened and you can view all the images there.

https://drupal.org/node/1107162

How to create a Drupal view with future events / dates of nodes

All you have to do is create a new view that shows content of type 'event'... set that on the first page of creating your view. Make sure you check the 'block' option at the bottom - it's up to you whether you also want to create a page display or not, that's checked by default. Also, before moving onto the second page, make sure that your view is a list of 'fields' rather than 'teasers'.

How to create a Drupal view with future events/dates

File entity module: PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'DATABASENAME.image_dimensions' doesn't exist: SELECT * FROM {image_dimensions} id WHERE id.fid IN (:fids_0); Array ( [:fids_0] => 444 ) in file_entity_file_load() (Zeile 225 von /DRUPALROOT/sites/all/modules/media/file_entity/file_entity.module).

Same for me, after the update to Media 7.1.4, that I did following PSA-2014-001.

Enjoy the new comparision function to compare the rating and features of the best Drupal themes

Drupal4U tested and rated the best free and paid Drupal themes for you. We recommend these themes because we think that they incorporate a great design and because they are of high quality. Beside the technology this includes the aspects of administration and online marketing. We believe that a great theme is easy to customize & administer and was built with all aspects of online marketing in mind.

Drupal4U themes section

How to solve the problem with the mobile dropdown menu of the Surreal Drupal Theme?

If you purchased the Surreal One Page Parallax Drupal Theme (inspiromedia) in the past or recently (status October 28, 2014) you will encounter a problem with the mobile drop-down menu. All menu entries on the same page as the homepage starting with # work, all the others don't work. The cause is wrong coding.

To resolve the problem you have to edit and change the following section of the inspiromedia.js (sites/all/themes/surreal/js):

Change from:

Pages

Drupal themes to be compared