home forums resources search newsjoinmembers: 5824
Main Network: Joomla Wordpress Drupal Drupal.se Fireorb Flash Java PHP Ruby Windows Linux
 videos
 articles
 blogs
 comments
 downloads
sitemap
Hiveminds | Tue, 2006-03-28 06:49  tags: , ,
friendly: printshare: delicious, digg, reddit, icerocket

Description

The recent release of Drupal 4.6.6 has two critical bugs. Because the 4.6 versio of Drupal is frozen it is unknown if the Drupal core team will do a release that fixes any of these problems. From the lack of interest shown the situation does not look good for Drupal 4.6 user that are not will to upgrade to version 4.7 so here is a release that fixes the following critical bugs.

The first is when doing a new install and using PHP5 Drupal CMS does not load completely. This is because Xtemplate, the default template system is not PHP5 compatible. The syptoms of this bug is shown when this code shows on the first page.

{head} {styles} {_BLOCK_.header.logo} {_BLOCK_.header.site_name} {secondary_links}
{primary_links}
{_BLOCK_.header.blocks}
welcome message

The second problem is when upgrading from 4.6.5 to 4.6.6 the usermodule contains a bug for users of PHP 4.3.2 and possibly below.

<?php

      $old_session_id 
session_id();
    
session_regenerate_id();
      
db_query("UPDATE {sessions} SET sid = '%s' WHERE sid = '%s'"session_id(), $old_session_id);
?>

Should be change to the following code in 4.6.6:

<?php

      session_start
();
      
$old_session_id session_id();
    
session_regenerate_id();
    
$new_session_id session_id();
      
db_query("UPDATE {sessions} SET sid = '%s' WHERE sid = '%s'"$new_session_id$old_session_id);
?>

If you are a PHP5 user and upgrading then it is recommended that you download PHPtemplate and install it. Switch to a phptemplate theme before doing your upgrade. Doing this procedure you will avoid the first bug if you are using PHP5 and trying to use the standard download from Drupal.org.

http://drupal.org/node/53838
http://drupal.org/node/55541

File: login or register to download  Author:

Hiveminds's picture
This article brought to you by the Hiveminds Magazine - Staff. Contact us if you want to post an article or announcement anonymously
friendly: printshare: delicious, digg, reddit, icerocket
 
Amazon Web Services Ad Alexa Toolbar Ad Put Your Site Here Developer's Corner Ad
 

Newsletter

Get updates on Hiveminds services, articles and downloads by signing up for the newsletter.

Editor's choice

Some of the better articles, stories and tutorials found at Hiveminds.

Find more

Find more of Hiveminds articles, stories, tutorials and user comments by searching.




Picked links

Hand picked websites and articles from around the web that provide quality reading.

page top