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.

Upgrade Regcode module for Drupal 5.1 Environment

Atlast I upgrade the regcode module for Drupal 5.1

The code is here

1. For regcode.info
==================
; $Id: regcode.info,v 1.1 2007/01/03 01:29:15 drewish Exp $
name = Regcode Example
description = An example demonstrating how a registration code appear in user registration form.
package = Regcode

2. For regcode.module
=================
<?php
// $Id: regcode.module,v 1.1 2007/02/22 20:10:18 colan Exp $

/**
* @file
* regcode.module
*/

// Initial written by nevets (http://drupal.org/user/12856).
// See http://drupal.org/node/85861 for details.
// Edited and hacked on by colan (http://drupal.org/user/58704).

/**
* Display help and module information.
*
* @param section
* which section of the site we're displaying help
* @return
* help text for section
*/
function regcode_help($section) {
switch ($section) {
case 'admin/help#regcode':
return t('

Allows administrators to set a registration code or codes
that new users must enter before they can complete the registration
process. If a new user enters a code that is not in the list of
valid codes, he or she is denied registration.

To set the codes, go to Administer->Site Configuration->Regcode and enter
them there. To disable the registration code requirement for new
users, simply disable the module (in administer->modules).

');
case 'admin/modules#description':

PHP4 or PHP5

I just received an email from my host saying that they are upgrading their PHP5 (full text below). I know my host supports both PHP4 and PHP5, how can I tell which one I am using for drupal?

Please be advised that the PHP 5 version on the server hosting your
account is scheduled for an upgrade to version 5.2.1 on Mar/15/2007.
Along with PHP, we will be upgrading Zend Optimizer to version 3.2.2.
Minimal to none downtime is expected during the upgrade.

Missing drupal.blocks_roles in upgrading 4.7 to 5: Blocks don't display

Hi,

Related to another post (http://drupal.org/node/119044), I have no blocks in any thmeme after upgrading my Drupal instalattion from 4.7 to 5.

The watchdog tells me that

Drupal database update error after upgrading modules

I have updated three modules (cck, simplenews and subscriptions) at once so I don't know which gave me this database update error but here is the error message:

user warning: You have an error in your SQL syntax near ')' at line 1 query: DELETE FROM sig_p_node_field WHERE field_name NOT IN () in /home/kseauk.org/public_html/sig-p/includes/database.mysql.inc on line 172.

The following queries were executed
content module
Update #1002

    * ALTER TABLE {node_field_instance} ADD COLUMN display_settings mediumtext NOT NULL

Update #1003

    * RENAME TABLE {node_blog} TO {content_type_blog}
    * RENAME TABLE {node_book} TO {content_type_book}
    * RENAME TABLE {node_forum} TO {content_type_forum}
    * RENAME TABLE {node_mail} TO {content_type_mail}
    * RENAME TABLE {node_page} TO {content_type_page}
    * RENAME TABLE {node_poll} TO {content_type_poll}
    * RENAME TABLE {node_simplenews} TO {content_type_simplenews}
    * RENAME TABLE {node_story} TO {content_type_story}

Update #1004

    * Failed: DELETE FROM {node_field} WHERE field_name NOT IN ()

Update #1005

    * No queries

Update #1006

    * No queries

fieldgroup module
Update #2

    * ALTER TABLE {node_group} CHANGE settings settings mediumtext NOT NULL
    * ALTER TABLE {node_group} DROP description

Update #3

    * No queries

Multisite, command-line only upgrade from 4.7.6 to 5.0?

Hello,

I have already upgraded from 4.7.3 to 4.7.6 the server with several, independent Drupal websites (only one Drupan installation, but each site has its own settings and independent MySql databases) that I described in detail in another thread.

Now I should upgrade from 4.7.6 to 5.0. According to the 5.0 official announce I have to start fresh unpacking in an empty directory and then follow the instructions in the UPGRADE.txt file. However, the latter says:

2.  Log on as the user with user ID 1.  User ID 1 is the first
    account created and the main administrator account.  User
    ID 1 needs to be logged in so that you can access update.php
    (step 9) which can only be run by user ID 1.  Do not close
    your browser until step 10 is complete.

3.  Place the site in "Off-line" mode, to mask any errors from
    site visitors.

4.  Disable contributed modules and switch to a core theme
    (Bluemarine or Garland).

What if I have one drupal installation serving different website???

Do I really have to go that browser-based procedure? Above all, is it compatible with a single drupal/multi-database site?

Phptemplate errors occurring periodically after upgrade to Drupal 5.x

After upgrading my site to Drupal 5.1.x from 4.6.x, the following message appears periodically in watchdog indicating something might be missing -

include_once(./themes/engines/phptemplate/phptemplate.engine) [function.include-once]: failed to open stream: No such file or directory in C:\www_hosts\naspa5\includes\theme.inc on line 78.

Pages

Subscribe with RSS Subscribe to RSS - Upgrading Drupal