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) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Problem upgrading civicrm from 3.4 to 4.0 (page not found for upgrade URL)
Pages: [1]

Author Topic: Problem upgrading civicrm from 3.4 to 4.0 (page not found for upgrade URL)  (Read 1244 times)

pswartz

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 0
  • CiviCRM version: 4.4.6
  • CMS version: Drupal 7.x
  • MySQL version: 5.1.46
  • PHP version: 5.3.3
Problem upgrading civicrm from 3.4 to 4.0 (page not found for upgrade URL)
January 07, 2012, 01:25:41 pm
I found a posting that matched this issue, but was marked "fixed" without any clue as to what the resolution was.
After successfully upgrading Drupal to 7.10, started working through the steps to upgrade CiviCRM.
At the step to do the update I tried using the clean URL enabled and the clean URL not enabled links and both error :
Page not found
The requested page "/?q=civicrm/upgrade&reset=1" could not be found.

Please help as I've done to much other work on the site to revert back to a previous snapshot.

Thanks!

pswartz

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 0
  • CiviCRM version: 4.4.6
  • CMS version: Drupal 7.x
  • MySQL version: 5.1.46
  • PHP version: 5.3.3
Re: Problem upgrading civicrm from 3.4 to 4.0 (page not found for upgrade URL)
January 07, 2012, 02:10:37 pm
Okay... I found my mistake ... followed the Drupal instructions a little too well w/o reading the Civi instructions well enough... disabled the main civicrm module when doing the drupal upgrade... doh!
So, followed the instructions and installed Civi into a empty database successfully.
However, after I edited the new civicrm.settings.php to point the original database and try to run the upgrade script I get this nasty screen:
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 *,  config_backend 
 FROM civicrm_domain
 
 WHERE (  civicrm_domain.id = 1 ) 
 
 
 
 [nativecode=1146 ** Table 'cividb.civicrm_domain' doesn't exist]
    [type] => DB_Error
    [user_info] => SELECT *,  config_backend 
 FROM civicrm_domain
 
 WHERE (  civicrm_domain.id = 1 ) 
 
 
 
 [nativecode=1146 ** Table 'cividb.civicrm_domain' 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 *,  config_backend 
 FROM civicrm_domain
 
 WHERE (  civicrm_domain.id = 1 ) 
 
 
 
 [nativecode=1146 ** Table 'cividb.civicrm_domain' doesn't exist]"]
)
backTrace

/srv/www/htdocs/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 235
, simpleHandler,
/srv/www/htdocs/sites/all/modules/civicrm/packages/PEAR.php, call_user_func, 931
/srv/www/htdocs/sites/all/modules/civicrm/packages/DB.php, PEAR_Error, 968
/srv/www/htdocs/sites/all/modules/civicrm/packages/PEAR.php, DB_Error, 564
/srv/www/htdocs/sites/all/modules/civicrm/packages/DB/common.php, raiseError, 1903
/srv/www/htdocs/sites/all/modules/civicrm/packages/DB/mysql.php, raiseError, 898
/srv/www/htdocs/sites/all/modules/civicrm/packages/DB/mysql.php, mysqlRaiseError, 327
/srv/www/htdocs/sites/all/modules/civicrm/packages/DB/common.php, simpleQuery, 1216
/srv/www/htdocs/sites/all/modules/civicrm/packages/DB/DataObject.php, query, 2424
/srv/www/htdocs/sites/all/modules/civicrm/packages/DB/DataObject.php, _query, 442
/srv/www/htdocs/sites/all/modules/civicrm/CRM/Core/BAO/Setting.php, find, 209
/srv/www/htdocs/sites/all/modules/civicrm/CRM/Core/Config.php, retrieve, 397
/srv/www/htdocs/sites/all/modules/civicrm/CRM/Core/Config.php, _initVariables, 202
/srv/www/htdocs/sites/all/modules/civicrm/drupal/civicrm.module, singleton, 320
/srv/www/htdocs/sites/all/modules/civicrm/drupal/civicrm.module, civicrm_initialize, 383
, civicrm_invoke,
/srv/www/htdocs/includes/menu.inc, call_user_func_array, 503
/srv/www/htdocs/index.php, menu_execute_active_handler, 21

Now, what do I do?

Thanks for reading...
Patrick

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: Problem upgrading civicrm from 3.4 to 4.0 (page not found for upgrade URL)
January 07, 2012, 11:01:29 pm
Looks like civicrm_domain table is missing in the db that you have configured in civicrm.settings.php. Can you confirm and make sure CIVICRM_DSN is configured correctly.

Kurund
Found this reply helpful? Support CiviCRM

pswartz

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 0
  • CiviCRM version: 4.4.6
  • CMS version: Drupal 7.x
  • MySQL version: 5.1.46
  • PHP version: 5.3.3
Re: Problem upgrading civicrm from 3.4 to 4.0 (page not found for upgrade URL)
January 08, 2012, 07:10:00 am
Somehow, someway just about every table was missing.  The database was basically just a shell with a few of our custom views remaining.  After reinstalling civicrm and restoring the db from the backup (and changing the setting file) I was able to run the upgrade script.
Not sure what caused the original database to be wiped out like that, just thankful for backups...  :)
Thank you for pointing me in the right direction!

Patrick

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Problem upgrading civicrm from 3.4 to 4.0 (page not found for upgrade URL)

This forum was archived on 2017-11-26.