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.

After upgrade to Drupa 7.10 Moduless won't upgrade automatically

Hi, i have this issue here.

For sure i know that drupal 7.10 now has this cool feature of auto upgrading modules including the drupal 7 core without having to download and upload stuff.

But when i upgraded this site of mine i seem not to acces these features. when i try to i get the following error.

(function ($) {

/**
* Attaches the batch behavior to progress bars.
*/
Drupal.behaviors.batch = {
attach: function (context, settings) {
$('#progress', context).once('batch', function () {
var holder = $(this);

Upgrating a very old site (6.6)

I recently acquired a job, with some website maintenance responsibilities. I am familiar with drupal, but not super comfortable. My boss told me that the website has lost some functionality, and wants me to regain it. So after some digging i discovered that the website has not been updated since before dec 2008. It is on core version 6.6. There are 17 modules(see below) that are also extremely outdated. I am a little nervous about the order of these updates, and the potential of losing more functions by jumping too far ahead in the core before updating modules or vice versa.

Blocks do not show up after upgrade

The block module keeps failing while updating it and here is the error message:

Failed: PDOException: SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes: ALTER TABLE {block} CHANGE `weight` `weight` INT NOT NULL DEFAULT 0 COMMENT 'Block weight within region.', ADD INDEX `list` (`theme`, `status`, `region`, `weight`, `module`); Array ( ) in db_change_field() (line 2984 of /var/www/html/includes/database/database.inc).

I am upgrading it exactly as recommended in the upgrading manual.

What am I doing wrong?

modules failed to update

I'm having a problem updating several modules in Drupal 6. I put the site off line and then uploaded the latest modules via ftp as is my usual practice. I rename the directory of the module to be updated to "moduleJan2012" and put the new module folder in its place.

I then ran update.php and when I check the modules are still showing as out-of-date.

The problem modules are Google analytics, wysiwyg, imce and webform. webform validator and root candy theme updated okay.

Admin Toolbar missing/update.php "no pending"

Hello, I have upgraded to 7 and have been backing up the file system in the WWW folder and the database. I did this backup after going to 6.22 (accor. to instructions), then after going to 7, then after installing a group of modules, etc. However, somewhere along the line the database update.php page now only says "No Pending Updates", i.e. it doesn't show any errors, but also doesn't seem to do any work when update.php is run. Also, somewhere along the line the links in the admin toolbar (other than the home button in the top left and the user name in the top right) have disappeared.

D6 to D7 form API not working

I have a form which works fine in D6, but not in D7.

In D7 I just get the error message:

Notice: Undefined index: vchess_new_game_form in drupal_retrieve_form() (line 750 of C:\ProgramData\Apache Group\www\chess_drupal_7\includes\form.inc).
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'vchess_new_game_form' was given in drupal_retrieve_form() (line 785 of C:\ProgramData\Apache Group\www\chess_drupal_7\includes\form.inc).

What do I need to change for Drupal 7 forms API vs. Drupal 6 forms API?

Following is the code I am using:

function vchess_menu(){
  $items = array();

  ...

  $items['vchess/newgame_form'] = array(
  'page callback' => 'drupal_get_form',
  'access arguments' => array('access content'),
  'page arguments' => array('vchess_new_game_form'),
  'title' => t('Create VChess chess game'),
  'type' => MENU_CALLBACK,
  );

  ...

  return $items;
}


/**
* menu callback vchess_new_game_page to display new game form
*/
function vchess_new_game_form()
{
$colors = array('w'=>t('white'),'b'=>t('black'));

$form['colorfield'] = array(
'#type' => 'fieldset',
'#title' => t('Choose your color'),
);

$form['colorfield']['color'] = array(
'#type'=> 'radios',
'#default_value' => 'w',

Pages

Subscribe with RSS Subscribe to RSS - Upgrading Drupal