CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.1 Release Testing (Moderator: Kurund Jalmi) »
  • 3.4.8 upgrade to 4.1b2 fails on drupal 6
Pages: [1]

Author Topic: 3.4.8 upgrade to 4.1b2 fails on drupal 6  (Read 1118 times)

robinhood

  • I post frequently
  • ***
  • Posts: 153
  • Karma: 6
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.56
  • PHP version: 5.3.5
3.4.8 upgrade to 4.1b2 fails on drupal 6
January 16, 2012, 06:55:34 pm
I tried out a D6 upgrade from 3.4.8 --> 4.1b2 on a copy of my DB and the upgrade script stopped with the following:
Quote
Upgrade CiviCRM to Version 4.1.beta2
Array
That's it.  When I tried to visit /civicrm I got this:
Code: [Select]
Initialization Error

Array
(
    [callback] => Array
        (
            [0] => CRM_Core_Error
            [1] => simpleHandler
        )

    [code] => -18
    [message] => DB Error: no such table
    [mode] => 16
    [debug_info] =>
SELECT name, group_name, value
FROM   civicrm_setting
WHERE  ( group_name = 'Directory Preferences'
OR       group_name = 'URL Preferences' )
 [nativecode=1146 ** Table 'yfc_website.civicrm_setting' doesn't exist]
    [type] => DB_Error
    [user_info] =>
SELECT name, group_name, value
FROM   civicrm_setting
WHERE  ( group_name = 'Directory Preferences'
OR       group_name = 'URL Preferences' )
 [nativecode=1146 ** Table 'yfc_website.civicrm_setting' doesn't exist]
    [to_string] => [db_error: message="DB Error: no such table" code=-18 mode=callback callback=CRM_Core_Error::simpleHandler prefix="" info="
SELECT name, group_name, value
FROM   civicrm_setting
WHERE  ( group_name = 'Directory Preferences'
OR       group_name = 'URL Preferences' )
 [nativecode=1146 ** Table 'yfc_website.civicrm_setting' doesn't exist]"]
)

backTrace

/var/www/web/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 235
, simpleHandler,
/var/www/web/sites/all/modules/civicrm/packages/PEAR.php, call_user_func, 931
/var/www/web/sites/all/modules/civicrm/packages/DB.php, PEAR_Error, 968
/var/www/web/sites/all/modules/civicrm/packages/PEAR.php, DB_Error, 564
/var/www/web/sites/all/modules/civicrm/packages/DB/common.php, raiseError, 1903
/var/www/web/sites/all/modules/civicrm/packages/DB/mysqli.php, raiseError, 928
/var/www/web/sites/all/modules/civicrm/packages/DB/mysqli.php, mysqliRaiseError, 402
/var/www/web/sites/all/modules/civicrm/packages/DB/common.php, simpleQuery, 1216
/var/www/web/sites/all/modules/civicrm/packages/DB/DataObject.php, query, 2428
/var/www/web/sites/all/modules/civicrm/packages/DB/DataObject.php, _query, 1614
/var/www/web/sites/all/modules/civicrm/CRM/Core/DAO.php, query, 166
/var/www/web/sites/all/modules/civicrm/CRM/Core/DAO.php, query, 897
/var/www/web/sites/all/modules/civicrm/CRM/Core/BAO/Setting.php, executeQuery, 433
/var/www/web/sites/all/modules/civicrm/CRM/Core/BAO/ConfigSetting.php, retrieveDirectoryAndURLPreferences, 334
/var/www/web/sites/all/modules/civicrm/CRM/Core/Config.php, retrieve, 406
/var/www/web/sites/all/modules/civicrm/CRM/Core/Config.php, _initVariables, 209
/var/www/web/sites/all/modules/civicrm/drupal/civicrm.module, singleton, 272
/var/www/web/sites/all/modules/civicrm/drupal/civicrm.module, civicrm_initialize, 329
, civicrm_invoke,
/var/www/web/includes/menu.inc, call_user_func_array, 349
/var/www/web/index.php, menu_execute_active_handler, 17

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: 3.4.8 upgrade to 4.1b2 fails on drupal 6
January 17, 2012, 12:48:58 am
Quote
I tried out a D6 upgrade from 3.4.8 --> 4.1b2 on a copy of my DB and the upgrade script stopped with the following:
Quote
Upgrade CiviCRM to Version 4.1.beta2
Array

Can you check the version in civicrm_domain table ? If possible can you re-try upgrade from backup.

Kurund
Found this reply helpful? Support CiviCRM

robinhood

  • I post frequently
  • ***
  • Posts: 153
  • Karma: 6
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.56
  • PHP version: 5.3.5
Re: 3.4.8 upgrade to 4.1b2 fails on drupal 6
January 18, 2012, 04:25:46 pm
The version in civicrm_domain is 3.4.8.  I will reload from backup and try again.

Edit: Same result, using a fresh copy from the production server.

« Last Edit: January 18, 2012, 07:15:15 pm by robinhood »

robinhood

  • I post frequently
  • ***
  • Posts: 153
  • Karma: 6
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.56
  • PHP version: 5.3.5
Re: 3.4.8 upgrade to 4.1b2 fails on drupal 6
January 25, 2012, 06:23:28 pm
I get the same result using 4.1 beta 3.  In tracing through the code, here is what I found.

In CRM/Upgrade/Page/Upgrade.php, everything seems to proceed logically until this code at about line 217:
Code: [Select]
if ( CRM_Utils_Array::value('upgrade', $_POST) ) {... but in my tests, $_POST is always an empty array.  Consequently, none of the actual upgrade code is ever called.


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.1 Release Testing (Moderator: Kurund Jalmi) »
  • 3.4.8 upgrade to 4.1b2 fails on drupal 6

This forum was archived on 2017-11-26.