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 »
  • 3.0 Release Testing »
  • Joomla upgrade script appears broken
Pages: [1]

Author Topic: Joomla upgrade script appears broken  (Read 3234 times)

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Joomla upgrade script appears broken
August 06, 2009, 08:25:21 am
I'm getting immediate errors when running the upgrade utility on a v2.2 db.

Backtrace:

Code: [Select]
DB Error: no such field

Database Error Code: Unknown column 'civicrm_uf_match.domain_id' in 'where clause', 1054

After getting the error on a "real" set of data, I did a clean install of 2.2 on my demo server and tried upgrading it, but got the same error.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

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: Joomla upgrade script appears broken
August 06, 2009, 01:28:03 pm
Brian,

We will investigate and get back to you.

Thanks
Kurund
Found this reply helpful? Support CiviCRM

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: Joomla upgrade script appears broken
August 07, 2009, 01:28:05 am
The error happens when user gets logged out just before running the upgrade utility (or after placing/installing new code), and tries to login back.

This now has been Fixed in r23181.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Joomla upgrade script appears broken
August 07, 2009, 08:21:50 am
Deepak,
I'm 100% sure I was properly logged in to the backend when running that script.
I actually just tested again on another testing server (to make sure it wasn't an environment prob) and had the same error.
I'll test again when the next alpha comes out. But I don't think it's a session issue -- I think the upgrade script isn't running correctly.
-Brian
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: Joomla upgrade script appears broken
August 07, 2009, 10:51:33 am
In other words (technically) error happens whenever a uf_match entry is sought or tried to be created (as this generally happens during login process).

Brian, just to confirm if we talking about same thing can you apply this patch (around line 183) and see if it works -
( Fisheye wasn't reflecting the change so pasting it here )

Code: [Select]
--- trunk/CRM/Core/BAO/UFMatch.php
+++ trunk/CRM/Core/BAO/UFMatch.php
 
         // make sure that a contact id exists for this user id
         $ufmatch =& new CRM_Core_DAO_UFMatch( );
-        $ufmatch->domain_id = CRM_Core_Config::domainID( );
-        $ufmatch->uf_id     = $userKey;
+        if ( CRM_Core_DAO::checkFieldExists('civicrm_uf_match', 'domain_id') ) {
+            $ufmatch->domain_id = CRM_Core_Config::domainID( );
+        }
+        $ufmatch->uf_id = $userKey;
 

After applying this patch you should be able to visit upgrade url w/o any error.
« Last Edit: August 07, 2009, 10:54:28 am by Deepak Srivastava »
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Joomla upgrade script appears broken
August 07, 2009, 11:15:06 am
excellent -- that fixed it. thx.
we should make sure that gets into alpha 2 as it will impact J! users' ability to test the upgrade function.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.0 Release Testing »
  • Joomla upgrade script appears broken

This forum was archived on 2017-11-26.