Good and Bad of the upgrade

I completed most of the Drupal upgrade last night. The bad that has to be fixed.... permalinks are broken as a result of the change in the architecture. For the moment I've made this change in node.module to get the # to appear again (lines 526-529 which were 526-528). However older permalinks are broken for the moment.

   // if ($main == 1 && $node->teaser && $node->teaser != $node->body)  # Comment out to Put Permalinks on all nodes
   {
      $links[] = l(t("#"), "node/view/$node->nid", array("title" => t("Permalink to this posting.")));
    }

Next I'll look at either mod-rewrite or a php script to allow the addressing of nodes without the argument based form of '?" since search engines don't follow those links as well.

One more thing that is broken is the XML feed. The syndication feed is there but the location has changed. I modified the old module.php script to read as follows:

<?php
// fixed to handle 4.2 new xml feed location.
include_once "includes/common.inc";
if (
$_GET['op'] == "feed") {
   
header("Location: index.php?q=node/feed");
    }
else {
 
header("Location: index.php");
}
?>

No votes yet

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Link to Amazon products with: [amazon product_id inline|full|thumbnail|datadescriptor]. Example: [amazon 1590597559 thumbnail] or [amazon 1590597559 author]. Details are on the Amazon module handbook page.
  • Twitter-style @usersnames are linked to their Twitter account pages.
  • Twitter-style #hashtags are linked to search.twitter.com.
  • Allowed HTML tags: <a> <b> <dd> <dl> <dt> <i> <li> <ol> <u> <ul><p> <img> <table> <tr> <td><strong><em><sup><div><fn><h1><h2><h3><h4><blockquote><img style="">
  • Use [fn]...[/fn] (or <fn>...</fn>) to insert automatically numbered footnotes.
  • You may insert videos with [video:URL]
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically. (Better URL filter.)
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options