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.

Pro Drupal Development - Chapter 7 (Node Modules)

I have a bit of a plug for Pro Drupal Development. Not only is it starting to help me learn Drupal, it's beginning to help me make sense of PHP! :) It's authors are too humble when they say it's not much of a help in learning PHP. Okay, you can't be a beginning programmer, but it doesn't take much "PHP skill" to be able to figure out what they're getting at.

That being said, Chapter 7 is giving me some difficulty. I've been able to add a "Content Type" programatically. Open up "Create Content" and sure enough in the sidebar you can add a joke type. However, what I haven't been able to figure out is how to make the link to add jokes available in the "middle block as well". Here's what the middle block usually has:

Create content
Choose the appropriate item from the list:

Forum topic
Image
Page
Poll
Story
Video

I took out the descriptions to make it less verbose but you get the picture. If my "joke" content type is in the sidebar under "Create Content" shouldn't it be updating the "middle screen" as well? I'm going to keep moving on with the book but if anyone has an idea for this let me know. In the meantime it's cool I can add content type to the left sidebar anyway.

The way I do this is upload a node module consisting of 3 files: You can browse the code quickly for an idea of what I'm doing.

joke.info
__________
; $Id$
name = Joke

some image galleries and some forum containers empty after upgrade 4.7 > 5.7

Some of my forum containers are now empty: some are not. Some of my image galleries now say "there are 0 images in this gallery": some are fine.

I am not sure if this is one problem or two.

How can I upgrade from 5.1 to 5.8 ?

Hello

Can somebody tell me how can I upgrade my drupal from 5.1 to 5.8 ? Should I just copy all 5.8 files to my 5.1 folder and cover all of them ?

Can you explain a bit to me?

thank you very much.

5.8 -> 6.3

Hi,

I've been assigned a project to upgrade an existing 5.8 module to 6.3
So far I've been able to fix every incompatibility I've encountered...except for this one:

Fatal error: Call to a member function buildForm() on a non-object in *...*\drupal-6.3\modules\sportsticker\views\FormView.php on line 5

The file it's referring to


<?php

require_once('View.php');
function _sportsticker_form( SportSticker_FormView $formView ) {
return $formView->buildForm();
}

abstract class SportSticker_FormView extends SportSticker_View {
protected $returnPath;

public function setReturnPath( $returnPath ) {
assert( 'is_string( $returnPath )' );

$this->returnPath = $returnPath;

assert( '$this->hasReturnPath()' );
assert( '$this->getReturnPath() === $returnPath' );
}

public function hasReturnPath() {
return isset( $this->returnPath );
}

public function getReturnPath() {
assert( '$this->hasReturnPath()' );

return $this->returnPath;
}

public function setFormError( $name, $message ) {
form_set_error( $name, $message );
}

public function buildForm() {
$form = array();

if( $this->hasReturnPath() ) {
$form['#action'] = url( $this->returnPath );

Upgrading from 4.5 to 5.8 breaks imagefield

After upgrading none of my images are showing. I use CCK imagefields to display summary images, and story images in a piece of custom content called "News Story."

When looking at the variables in the content template:

$node->field_story_image[0]['view'] (NULL)

All of the other variables are fine, but for some reason, these are all NULL. The were fine before the upgrade.

Any ideas?

Confusing message during site upgrade

After the way I made a mess of an upgrade on a previous occasion, I was more careful this time with which modules I disabled at ../admin/build/modules.

However, I still got the following confusing message after doing so:

Pages

Subscribe with RSS Subscribe to RSS - Upgrading Drupal