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.

4.6.4 to 4.7.2 upgrade - file_revisons not created ??

I'm attempting to upgrade from 4.6.2 to 4.7.2 and on running the upgrade php script it appear to abort and looking at the errors on the admin page it seems that file_revisions was not created. The upgrade did appear to create most of the tables but because of this bug all my images are now missing from articles that had them before.

Audio Module upgrade? 4.6->4.7

Has anyone managed to update their audio node using 4.7?

http://drupal.org/node/57769

It seems that the audio module has changed significantly?

Any success stories?

Clueless about node_revisions

I'm moving a site from 4.6 to 4.7.2, and all is going relatively well. The main problem I'm having is in adapting some of my own modules to properly handle the new node_revisions table -- body and teaser columns moving there, etc. (The modules in question are pretty simple -- somewhat more complicated versions of 'story', in many respects.) Should I be making new entries in node_revisions when my modules create nodes? Do I do this manually with db_query functions, or some other more elegant way? Stuff like that.

Update.php - multisite in same domain and different databases

Upgradind from 4.6 to 4.7

I know about these threads:
http://drupal.org/node/62394
http://drupal.org/node/76093

But my sites are different. I have two sites on the same domain. Like this:
domain.com/
domain.com/other_language/

Each one has its own database and its own directory in /sites. When I run domain.com/update.php it works well and the main site works. But the second site's database is not updated.

upgrade 4.7.0 - 4.7.2

Apologies. I have searched, and as a result gone round and round in circles trying to understand the best approach to upgrading. I'm on the verge of just deleting my little family website and moving on, which would be a shame!

I am running 4.7.0 installed with Fantastico and understand I need to upgrade to 4.7.2 for security reasons. Fantastico doesn't have that option yet (anyone know why, out of interest?)

I think I've read I have to go to 4.7.1, and then to 4.7.2 - is that right?

Can I simply download 4.7.2 and ftp the whole darn thing into my Drupal directory (having first backed up my files and database)?

Or can I somewhere just download changed files?

What database upgrades do I need to do, and how?

I'm finding this page particularly hard to understand: http://drupal.org/drupal-4.7.1

esp:

3. To patch Drupal 4.7.0 to Drupal 4.7.1, use the patches below:

* http://drupal.org/files/sa-2006-005/4.7.0.patch
* http://drupal.org/files/sa-2006-006/4.7.0.patch
.

well when I click on those they just open up a text file of code - I have no idea what to do with them.

And:

4. Make sure you have a .htaccess in your "files" dir and it contains this line:

SetHandler This_is_a_Drupal_security_line_do_not_remove

The full download of 4.6.7/4.7.1 contains code which will try to create this file for you when you visit the Administration >> Settings (admin/settings) page.

Problems with "unsupported operand type" errror in 7.2 forms upgrade

I'm upgrading a 4.6 site to 4.7.2. In the old site, I had the following function as part of a module definition:

function my_module_settings() {
  $output = form_select(t('Minimum number of words'), 'minimum_my_module_size', variable_get('minimum_my_module_size', 0), drupal_map_assoc(array(0, 10, 25, 50, 75, 100, 125, 150, 175, 200, 500, 1000)), t('The minimum number of words an article must have to be considered valid.'));
  return $output;
}

which was copied from some other Drupal module.

I've converted this, via formupdater, to:

function my_module_settings() {
  $form['minimum_my_module_size'] = array(
  '#type' => 'select',
  '#title' => t('Minimum number of words'),
  '#default_value' => variable_get('minimum_my_module_size', 0),
  '#options' => drupal_map_assoc(array(0, 10, 25, 50, 75, 100, 125, 150, 175, 200, 500, 1000)),
  '#description' => t('The minimum number of words an article must have to be considered valid.')
	);
  $output = drupal_get_form('my_module_settings', $form);
  return $output;
}

When the code runs and hits the drupal_get_form call, as part of creating a new bit of content, I get:

Fatal error: Unsupported operand types in /Library/WebServer/Documents/sampleco/includes/form.inc on line 88

I've checked the various postings about this problem, but none of them have helped. My php installation does have mbstring support turned on, btw. Also, the $form variable that gets created seems (I guess?) to be okay, according to var_dump:

Pages

Subscribe with RSS Subscribe to RSS - Upgrading Drupal