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.

Move data from dr5 to dr6

Hi to all
my current drupal website developed by dr5 and i want to move all contents from drupal 5 to drupal 6 without upgrading DR5 to DR6.
i tried some ways, but they didn't work properly.
what's the best solution for doing this ?
any help or suggestions would be greatly appreciated

Variables in Registration E-mails

I upgraded a site to Drupal 7, and the registration e-mails contain the variable instead of converting:

!username,

Thank you for registering at !site.

The information is entered into the site configuration area. Any ideas?

Error message

I get the following error message after upgrading from 6.19 to 7
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table '500335_crs_spanish.blocked_ips' doesn't exist: SELECT 1 FROM {blocked_ips} WHERE ip = :ip; Array ( [:ip] => 207.10.194.130 ) in drupal_is_denied() (line 1779 of /mnt/stor3-wc2-dfw1/500335/www.crsespanol.org/web/content/includes/bootstrap.inc).
The website encountered an unexpected error. Please try again later.

Help needed to add dummy tables to hook_views_data

Hi,

I'm upgrading a drupal 5 site to drupal 6.

There is a dummy table in hook_views_tables.

function mymodule_views_tables() {
  $tables = array(
    // this is a placeholder...not really a table at all
    'mymodule_dummy_table' => array(
      'fields' => array(
        'mymodule_myfield' => array(
          'name' => t('My module: myfield'),
          'notafield' => true, // this is a virtual field
          'handler' => 'mymodule_field_myfield',
        ),
      ),
    ),
  );
  return $tables;
}

And mymodule_field_myfield function is:


function mymodule_field_myfield($fieldinfo = null, $fielddata = null, $value = null, $data = null) {
  if ($data->nid) {
    return theme('view', 'test_view1', null, null, 'embed', array($data->nid));
  }
}
 

And below is drupal 6 coding:

<?php
function mymodule_views_data() {
// this is a placeholder...not really a table at all
$data['mymodule_dummy']['table']['group'] = t('My module');

$data['mymodule_dummy']['mymodule_myfield'] = array(
'title' => t('My module: myfield'),
'field' => array(
'handler' => 'mymodules_field_myfield',
'click sortable' => false,
),
);
}

function mymodule_views_handlers() {
array(
'handlers' => array(
'mymodules_field_myfield' => array(
'parent' => ????, // what goes here??
),

Should I down grade to ver 6

HI I am new to Drupal and I installed ver 7 last week, I am having some problems in that I keep getting errors, what I can not tell at this stage is if I am doing something wrong or is a bug in the code, see below;
* Notice: Undefined property: stdClass::$default_option in _uc_attribute_alter_form() (line 1298 of /var/www/sites/all/modules/ubercart/uc_attribute/uc_attribute.module).
* Notice: Undefined property: stdClass::$default_option in _uc_attribute_alter_form() (line 1298 of /var/www/sites/all/modules/ubercart/uc_attribute/uc_attribute.module).

Date problem after upgrade from d6.16 to d6.20

Hi there,

After upgrade from Drupal 6.16 to 6.20 and also upgrade to latest version of the Date module, I seen only current date every where the date should should be shown (node post date, cck date field, calendar, etc.) Example: on node view a cck date field should display 11-14-2009, but it shows todays date... In calendar view I switching between months, but it shows January everywhere...

Drupal runs on PHP 5.1, will PHP upgrade to 5.2 can help to solve the problem?

Could any one can point me in the right direction?

-Nikolay

Pages

Subscribe with RSS Subscribe to RSS - Upgrading Drupal