Top Tags

Notice: Undefined index: distribution_name in drupal_install_profile_distribution_name()

I am testing the upgrade of a D6 site to D7. The D6 site was probable installed using acquila - and thus having profile name of acquila. As I have not installed/used acquila on the D7 site, the acquila profile is not available.

I debugged the process and could see in install.inc

but acquila was not enabled neither as a profile or as a module. So, I played with the variable table and deleted the 'installed_profile' variable - the default is ' standard' -- but standard was not enabled as a profile.

Using drush to update sites

Having a few sites to update after each module upgrade prompted me to start using drush to help me. I have a few D6 web sites and a growing number of D7 sites. The following script helps me to update the database for all sites when needed.

Creating a git repository for a drupal theme

I have a Drupal theme, basicamaths - thanks to Khoi Vinh for creating it - and I have ported the theme from WordPress to Drupal. I have a few computers, and I need to be able to access the source code from all of them. The easiest solution I have found is to set up a GIT repository on my local NAS and store the source code there.

This is what I have done.

Luxembourg brings iPhone country count to 75

Exactly what I have been waiting for.... To quote from Apple 2.0....

Create project releases on Drupal CVS

I wanted to create a release of both the Dark and Sodelicious themes, and had an interesting time doinf it. There is a lot of information on the Drupal website, notably the CVS quick-start guide for module and theme maintainers (http://drupal.org/handbook/cvs/quickstart). In short, I had to clean up all the branches I had mistakenly created by cvs tag -dB DRUPAL-6--1 where DRUPAL-6--1 is the branch name to be deleted.

Automatically backup Drupal databases through cron

With my hosting provider I have all Drupal sites installed under my public_html directory. Each Drupal instance uses a different database. I could generate a mysqldump command for each instance - but that would become out of date very quickly with the immanent upgrades to version 6. The solution was to create a small script that searches all the sites folders for a settings.php file, extracts the relevant database connection information, and dumps and gzips the database.

ImageMagick on Mac OSX

For variuos readons I need ImageMagick. Finding a good package can be problematic, and finding one that has all the re-requisites can be even more problematic.

libjpeg

I downloaded libjpeg, extracted the source and
./configure --enable-shared --enable-static --prefix=/usr/local
make
sudo make install

libpng

Again, I found the source for libpng and
./configure --prefix=/usr/local
make
sudo make install

Blog Theme for Expression Engine convert to Drupal

I have never used the Expression Engine (EE) before, so this is a complete experiment. Let's see how it goes...

page.tpl.php

From what I can see, EE has a file called index.txt that displays almost everything. This file is our page.tpl.php candidate.

  • Remove the {assign_variable:master_weblog_name="journal"}
    {assign_variable:main_template_group="bartelme"}
    from the beginning of the index.txt file

Convert a Word Press theme to Drupal

The example WP theme I am trying to use is sodelicious_black.

page.tpl.php

Combine header.php, page.php and footer.php into on new file called page.tpl.php. In this new page.tpl.php file:

Added "The Dark Theme" to Drupal Themes

I have just added The Dark Theme to Drupal Themes. I thought that it would have been harder than it was. Here is what I did
  • export CVSROOT=:pserver:_userid_@cvs.drupal.org:/cvs/drupal-contrib
  • cvs login (entered password when prompted)
  • cvs checkout -l contributions/themes
  • cd contributions/themes/
  • cp -r _path-to_/dark .
  • cvs add dark
  • cvs add dark/*
  • cvs dark/images/*
  • cvs commit -m "Initial commit."
Later I made an update to the screenshot, so I have to create a new version, as follows

    Pages

    Subscribe to RSS - blogs