• Home
  • About Us
  • Resources
  • Articles
  • Site Update Info
  • Contact
Home
Home

What version of Drupal is your site using?

PostDateIcon June 22, 2010 | PostAuthorIcon Katy
  • [View]

A new project I'm working is upgrading www.Fightwriter.com. It has 2500 articles about boxing. The original site was created in Drupal 4.5 and will be upgraded to Drupal 6.

See my blog post at http://www.seascapewebdesign.com/blog/keep-your-website-healthy-and-secu...

At first I didn't know how to determine what version of Drupal the current site is in. It does not have a CHANGELOG.txt file. Or a Drupal version constant like Drupal 5 and 6 has.

However, the current version of Drupal 6 does have a list of the major changes that went into each new release beginning with 4.x. I consulted this file called CHANGELOG.txt and using a process of elimination, I discovered that the current site is built with Drupal 4.5. Here are some tips for you:
How to Determine what version of Drupal?

http://drupal.org/node/78237#comment-145302

Download the most recent version of Drupal and read the CHANGELOG.txt. It lists the the major changes that happened with each of the major releases of Drupal.

1. First thing to do is to read the CHANGELOG.txt file. It’s located in the root directory of your Drupal website. All versions of Drupal from 4.5-present have this file. Check the top entry in this file. It will have the Drupal version number. Unfortunately for our purposes today, many developers delete this file on live sites because it is perceived as a security risk.

2. Second thing to do is to check the VERSION constant in modules/system.module. This was added in Drupal 5.0.

3. If you can’t find the VERSION constant in modules/system.module then your version number is most likely 4.7 or earlier. In Drupal 4.7, the site 'offline for maintenance' feature was added.

4. In Drupal 4.6, a site-wide contact form (modules/contact.module) and search block were added.

5. In Drupal 4.5, all GIF’s in the default themes were replaced with PNG’s. If you can’t find the modules/contact.module, then your site is most likely Drupal 4.5.

6. You can actually download the 4.x versions on Drupal.org. Then you can compare the files in more detail. This article covers the major releasees and not the minor releases. For example upgrading from 4.51-4.52, is called a minor release.

Bookmark/Search this post with:
PostCategoryIcon Digg Digg  | PostCategoryIcon del.icio.us del.icio.us  | PostCategoryIcon Google Google  | PostCategoryIcon Yahoo Yahoo  | PostCategoryIcon Facebook Facebook  | PostCategoryIcon Twitter Twitter
PostCategoryIcon Printer-friendly version  | PostCategoryIcon Send to friend   | PostTagIcon Tags: Drupal upgrades

Use PHP code to display your Drupal Version number

Submitted by Katy on July 4, 2010.

Here is how you can display your Drupal Version number without having to check the Available Updates page. I often turn this off because I find the warning messages to update very annoying.

- Add a block. Title it "Drupal Version".
- Choose PHP Input format.
- Use plain text editor to add this code:
<?php
print VERSION;
?>
- Click Save
- Configure your block so that only you, the Admin, sees it.

Let me know how it works for you.

  • reply
Post new comment
The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><pre>
  • Lines and paragraphs break automatically.

More information about formatting options

Subscribe by RSS
Syndicate content
Recent blog posts
Lesson 2: How to Create Site Update Info
Jan 25, 2011
Lesson 1: How to Build Your First Drupal
Jan 01, 2011
Drupal Study Group - Learn Custom Module
Jan 01, 2011
My Top 6 Free Themes for Drupal 6 for 2010
Dec 31, 2010
New site upgrade with new Drupal Training
Dec 31, 2010
Recent comments
  • VERY NICE JOB FOR
    Jan 30, 2012
  • VERY NICE JOB FOR
    Jan 30, 2012
  • VERY NICE JOB FOR
    Jan 30, 2012
  • Great Lesson!
    Jan 10, 2012
  • Thank you very much
    Jun 02, 2011
Popular blog posts
Drupal Advanced Forum vs. phpBB Forum 132,432
How to Convert PSD to Drupal Theme 14,938
Newsletter Subscriptions for Drupal 6 3,519
How to Kill Spam on your Drupal Contact Form 3,512
My Top 5 Drupal Themes 3,370

Copyright © 2009-2011 SeascapeWebDesign.com