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.

Drupal "Fatal error: Allowed memory size of 134217728 bytes exhausted when clearing the cache"

Frequently after the change of a server or hoster or during the build-up of a Drupal site you might run into the "Fatal error: Allowed memory size of 134217728 bytes exhausted when clearing the cache". This usually isn't as dramatic as it looks like. The most common cause for this problem is a php memory limit that is too low. Thus the solution is to increase the php memory limit. If you increase the limit to 256M or even 512M you will certainly be without any php memory limit troubles with a standard Drupal installation.

How to get the file path of an image as replacement patterns in views

You can achieve that by using the Image URL Formatter module.

This module adds an url formatter for image field. Then you can output the image url directly.


Howto change the (default) settings of the Drupal Felxslider (jquery.flexslider.js)

If you use the Drupal Flexslider module or any other implementation relying on the jQuery slider plugin, you can easily change the (default) settings by editing jquery.flexslider.js.

Edit the .js file and search for "//FlexSlider: Default Settings". As you can see below, you can change all the default settings such as "animationSpeed" and "slideshowSpeed" in this section. If you are using a minified version (jquery.flexslider-min.js) don't forget to update it!

How to implement Rooms 7.x-1.8 properly - Problem with full calendar library

Drupal Rooms is a booking and room management solution for hotels, vacation rentals and B&Bs. With the change from Rooms 7.x-1.7 to 7.x-1.8 the installation requirements have changed significantly. This article shows you the changes and how to implement Rooms 7.x-1.7 and Rooms 7.x-1.8 properly. Following the below instructions you can avoid the typical problem with the full calendar library.

Drupal module XML Sitemap generates wrong URL

If you move your Drupal site from one server to another it might happen that the URLs generated by the module XML Sitemap are wrong. This is also the case after clearing cache, running cron or regenerating the sitemap. Although it is not a bug, it is certainly a not well "thought trough" issue, because one would expect, that at least the running of cron or the regeneration of the XML sitemap should update the XML sitemap to the new URL.

Drupal XML Sitemap

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 to use Drupal on a Temporary URL (Hosting)

If you move or create a Drupal site when the domain is not yet available/propagated you have to modify some Drupal settings to make your website work. This short howto shows you how you can do so with some simple edits.

Source: This article was written based on the GreenGeeks specifig article https://kb.greengeeks.com/2559/using-drupal-on-a-temporary-url/

How to fix the problem with the Drupal module Views jQFX ImageFlow (Images not showing)

The ImageFlow plugin provides a really beautiful image carousel. So we are certainly happy to see that there is a Drupal module available that seamlessly integrates this plugin: Views jQFX ImageFlow. The fact that it integrates with views is certainly a huge advantage and makes its implementation easy.

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.

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.



Drupal themes to be compared