Drupal

This is a common error we are getting in Drupal. You will not find any error message into apache error log. Most of the time, the error occur due to Database error. If your database logging is enabled before than you can see the error message from 'Recent log messages' link on Reports (or try this path: /admin/reports/dblog). 

To view the log message you have to login to your site using admin login. If you are not already logged in as an Admin user, this error will not allow you to login to the site. 

Following way you can see the error message without login to the site. 

A hidden region is a new feature in drupal 7. I was modifying a drupal 7 theme. In the .info file I found two regions - 'page_top' and 'page_bottom'. I wanted to assign some blocks to those regions. But surprisingly I couldn’t find them in block administration area. After some searching I came to know about the feature – hidden region.  It's a way to define regions that are available for modules but are not available in the blocks administration area.

 

To run a CiviCRM scheduled job using drupal cron we can follow the following steps:
 

In my short time as a Drupal developer, one specific issue had caused me much grief and lost time to find workarounds, and judging from Google search results and stories heard from our more experienced members of Jaxara, I was not alone. The issue is none other then the almost pre-historic (in technology time atleast) version of jQuery used by Drupal 6 (1.2.6).

You might have already noticed this issue while updating the views module. You know, views module added some configurable options. One of the additions is  ‘Do not rewrite if empty’ checkbox on fields’ configuration block. By default, this setting is checked.

Say, you had set an empty text for a field earlier. After views update ‘Do not rewrite if empty’ checkbox is added and checked by default. Hence, the field will not be rewritten to your ‘empty text’. That is, if the field is empty, the empty text will not be displayed. So, to make it working uncheck it and save.

Drupal: How to update drupal core

Recently, we have updated the Drupal core version for a development site. The previous veriosn was Drupal core version 6.19. We have replaced the version by latest Drupal core version 6.22

We followed the below steps for this purpose:

Step 1: Download the latest version of Drupal core and unzip it to any folder from where to upload.

Step 2: Take a backup of current codebase and database of the site.

Step 3: Make the site offline.

In one of the projects there was a requirement such that the view page of a specific content type's content will be redirected to a particular page.

For example:

Content type = test_content

When viewing a content of type test_content, user will be redirected to another page.

We used a custom module and have made a drupal redirect as shown below:

# Drupal | Basic #
------------------------

The following two modules are very useful and recently I have used these and helped us a lot.  

There is an usfull drupal module (http://drupal.org/project/imagecache_actions) for addtional action to process image or even you can use your custom code to process image. Please see image -1. You should just keep in mind it.


Image-1: More Action in Imagecahe

Pages

Subscribe to RSS - Drupal