.xsession-errors Sometimes Eats All Available Hard Drive Space In XFCE

Recently i noticed hard drive space mysteriously vanishing on a company netbook. The problem was non intermittent and every byte of free space created was soon written to. The likely suspect was a log file but nothing in /var stood out as the offender.

A quick disk usage scan with Baobab revealed that the file was located in a user directory. Manually checking file sizes through thunar revealed the .xsession-errors file to be the culprit. Ballooning to a hefty 1.6GB it effectively made the system unusable.

Disabling PHP Globals When Installing Drupal In Shared Hosting Environments

Add the following line to .htaccess in order to allow installation of Drupal in shared hosting environments that complain of php register_global variable being set to on.

AddType x-mapp-php5 .php

Essentially this runs all php as php5 which defaults to disabling the register_global variable.

You should now be able to finish installation with no further issues.

Views Cache Can Crash MYSQL

User contributed module views does not clear on cron runs. This is by design. The cache must be cleared manually through the views UI using the views --> tools menu.

Views queries and pages cached for months or years can wreck havoc on your MYSQL database. Recently a client had enabled views caching and reported intermittent MYSQL crashes.

The culprit was the servers database backup process dying every night it tried to backup a particular Drupal database. This DB was over 5GB all due to a cache_views_data table that was 7.7 GB.

Upgrading MYSQL Through Webmin Destroys Databases

Today I was feeling particularly adventurous. Having reliable backups of all databases on hand, I decided to upgrade MYSQL to the latest point release 5.150.

My instincts told me this was going to be a semi disaster, but nothing so bad that it wouldn't be recoverable. Upgrading through Webmin 1.5 was a snap and it used YUM to handle all the dependencies etc.

All sites with small databases seem to have been migrated without any trouble. But larger databases did not like the business of being transitioned at all. Needless to say most databases did not get upgraded on the fly.

WSOD Installing Drupal With Poorly Written Modules

A recent routine Drupal installation revealed a terrible bug that's easy to fix but takes hours to pinpoint. Recently what should have been a 10 minute install turned into a 4 hour job.

The complications arose while installing a fresh instance of Drupal into a multi site configuration. Drupal.org advices that contributed modules may possibly prevent a successful install.

Modules For Mass Uploading Images In Drupal 6

Few would argue that when it comes to uploads an internet application that provides the ability to upload in bulk is superior to one that doesn't. Drupal lacks this feature and must rely on contributed modules to accomplish the task.

The following have been evaluated for inclusion in recent projects.


Useful Drupal Modules

Drupal modules that I have found useful in developing new sites for clients.

Views Bulk Operations
http://drupal.org/project/views_bulk_operations

Drupal Menu Editor - Expands functionality of drupals menu editor
http://drupal.org/project/menu_editor

Pagination Node
http://drupal.org/project/pagination

Paging
http://drupal.org/project/paging

Theme Key
http://drupal.org/project/themekey

BUEditor
http://drupal.org/project/bueditor

IMCE
http://drupal.org/project/imce

Syndicate content