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 quickly index large websites with Drupal?

The indexing of large websites can last days if not weeks with the Drupal standard settings. The decisive settings are "Run cron** every" and "Number of items to index per cron run". The standard settings are "3h" and "100 items" what means that 800 items can be indexed per day. If you build a site where the content isn't growing steadily from zero (Example: Dictionary) with thousands or ten thousands items, this will take weeks. This howto shows you how you can index a large site quickly.

Drupal module Ultimate Cron

Troubleshooting "500 Internal Server Error" Drupal

  1. If possible run cron and clear caches (1-9) with Drush
  2. Change of PHP version to match the Drupal version used. For older Drupal 7 versions possibly downgrade to PHP 5.6. For Drupal 8 possibly upgrade to PHP 7.0 +
  3. Increase PHP Memory limit to at least 256M
  4. Copying of original .htaccess and settings.php from Drupal installation. Disable/Remove to see if it is the cause of the problem.
  5. Check-up and correction of user rights, 755 and 440 special files
Drupal 500 Internal Server Error

How can I see my php settings?

Step-by-step instructions how to see the PHP values of your server using a phpinfo.php file. PHP has many environmental variables that you are able to update as needed. For example, you may need to update your php memory_limit to prevent certain scripts from running out of memory. In order to change these values, you must first be able to see what they are.

How to hide an empty shopping cart with drupal commerce

  1. Find the "Shopping cart block" view
  2. Create a new block display
  3. Edit the"Commerce Order:Order ID" contextual filter
  4. Set it to Provide default value > Type = Current user's cart order ID
  5. Then use that new block you have just created in your site. It will not show if the cart is empty

Views Slideshow is hiding the menu. How to solve the problem?

Problem: The Views Slideshow i.e. the Slide/Picture of Views Slidehow is hiding the menu (Dropdown, Nice Menu, Superfish, etc.). If one knows how, this is quickly solved by changing the "z-index" of the menu. The z-index property specifies the stack order of an element. An element with greater stack order is always in front of an element with a lower stack order.

Using "Inspect Element" to find CSS problems

Drupal views & lightbox: How to add lightbox to a view of images

Do you have a view of images and you want to add the lightbox functionality to it? Nothing more easy than that!

How to solve the CSS conflict between the Marinelli theme and the Gallery Formatter module?

If you use the Gallery Formatter module based on the Imagefield within the Marinelli theme, the arrows of the gallery don't appear as they should (see step 1). This is apparently a CSS problem caused by conflict between the theme related CSS and the module related CSS. This howto shows you how to quickly solve the problem.

Drupal Commerce Shipping by Weight

- Download the modules Physical Fields and Commerce Physical Product


- Download the patch file #27 & #13. Use a program to patch the files. The module file gets changed, and commerce_physical.rules.inc gets created. Please find the patched files for Commerce Physical Product 7.x-1.x-dev 2015-Sep-19 enclosed

- Upload, overwrite and clear all caches.

The sharing URL link does not show the thumbnail image on Facebook

There are a number of reasons why the sharing url link does not show the thumbnail image on Facebook. Most frequently because the first image found on a page doesn't match the minimal image requirements (The image must be at least 50px by 50px and have a maximum aspect ratio of 3:1. Supports PNG, JPEG and GIF formats.).

How to remove the users' blog link? OR How to transform the Blog module into a single user blog?

By default, the Drupal core Blog module is configured as a multiple user blog. This is very often not the desired solution, because the website should just contain a single user or a site wide blog, which isn't differentiated into different user blogs. Unfortunately Drupal core offers no possibilities to change that. Thus each blog entry comes along with a link to the username's blog, what is either not desired - because although multiple users are blogging the blog should appear as a site wide blog - or awkward - because it is always the same username.


Drupal themes to be compared