This forum is for questions about upgrading an existing Drupal site. Don't forget to read the UPGRADE.txt file that comes with every Drupal download.

Help Fix Small, Critical Bug in CCK and Contemplate for Drupal 5

I am trying to get contemplate to render nodes correctly with the additional content added by other modules (book, location, etc.). There is a fix for this at http://drupal.org/node/93935 , but it only works with Drupal 4.7. I think I've isolated some of the changes that need to be made, but I'm not sure I've got all of them. This is a fairly small patch for the content module and the contemplate module, but it actually makes them work as expected (so this seems rather critical for either project).

I have noticed that there have been changes to hook_view() and hook_nodeapi($op = 'view') as described here:

Nodes are now prepared for display by assembling a structured array in $node->content, rather than directly manipulating $node->body and $node->teaser. The format of this array is the same used by FormAPI.

Modules that use hook_view() to prepare their custom node types for display should now use the following format:

<?php
function mymodule_view($node, $teaser, $page) {
  $node = node_prepare($node, $teaser);
  $node->content['myfield'] = array(
    '#value' => theme('mymodule_myfield', $node->myfield),
    '#weight' => 1,
  );
  return $node;
}
?>

Modules that use hook_nodeapi() to alter the node's content should use a format :

<?php
function mymodule_nodeapi(&$node, $op) {
if ($op == 'view') {

Cannot access to node and Captcha problem after upgrade Drupal 4.7 to 5.2

First)
After upgrading Drupal from 4.7 to 5.2, I cannot access directly to any node (such http://myserver.org/?q=node/17) if I log in to user mode. It sends me a blank page. But I can access to that page directly if I am in guest mode.

Second)
I also get this error after upgrading.

TinyMCE location

Before updating from 5.1 to 5.2, I decided to update some other modules including TinyMCE v1.0 2006/12/24 to the current version v1.7 2007/07/31.
When I went to www.mysite/modules I could not locate a folder called TinyMCE to upgrade, but instead found it in www.mysite/sites/all/modules/tinymce

Certain pages render in plain text, ignoring themes

Some of the pages on my site look fine; others are totally screwy, showing up only as plain text. I can't figure out why.

Pages that render properly include all of the following:
http://www.gettingintogradschool.com/poll
http://www.gettingintogradschool.com/purchase-getting-in
http://www.gettingintogradschool.com/reviews
http://www.gettingintogradschool.com/discussions
http://www.gettingintogradschool.com/links
http://www.gettingintogradschool.com/about-the-author
http://www.gettingintogradschool.com/essay-consulting
http://www.gettingintogradschool.com/foreign-students
http://www.gettingintogradschool.com/feedback
http://www.gettingintogradschool.com/admin
http://www.gettingintogradschool.com/tracker

Pages which are screwy (i.e., show up as plain text):
http://www.gettingintogradschool.com/discussions/the-process-of-applying [or any other page in the "discussions" subdomain]
http://www.gettingintogradschool.com/book/getting-in-an-applicants-guide... [or any other page within the "book" subdomain]
http://www.gettingintogradschool.com/textlinkads/stats

I have recently migrated my site from one ISP to another (same 4.7 version). The process was a long, hard slog, so there's no telling exactly what may be causing this error. I did record everything I did, however, and if it becomes necessary, I would be happy to share.

Update.php does nothing at all

Hi,

i've updated some modules and drupal wants me to update the database schema...

well, so far so good...

i run the update.php it says fine,

but in the end it wants me to update the database schema..?

huh!?

anyone else who got *that* before? i wasnt able to find a solution...

any help is highly appreciated!

thank you!

Andreas

Help with diagnosing MySQL errors

I have been poking around in the content and node tables for my website, but I'm not finding a solution to the following issue. When I try to change the settings for some of my "content types," I'm getting some Lock Table problems with my database and the content type isn't properly updated. I am using the Location module, the Automatic Node Titles module, and the Token module. Specifically, the error occurs when I try to update how the auto node title is generated with Token (although I successfully did this with another node type, so it may have something to do with the content type itself. I experienced a similar problem when I was trying to update the location settings for a content type. I deleted the content type, reconstructed it, and was able to add the location information without problem. I recently upgraded from Drupal 4.7 to 5, so that may be a factor as well. Any help would be appreciated. Here is the error:

Pages

Subscribe with RSS Subscribe to RSS - Upgrading Drupal