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) »
  • FixAddressForTwoZero
Pages: [1]

Author Topic: FixAddressForTwoZero  (Read 1649 times)

speleo

  • Ask me questions
  • ****
  • Posts: 396
  • Karma: 28
  • CiviCRM version: 4.3.1
  • CMS version: J! 2.5,9
  • MySQL version: 5.1
  • PHP version: 5.3.24
FixAddressForTwoZero
April 30, 2008, 09:29:35 am
Hi,

Going from 2.0 > 2.0.3

When I run FixAddressForTwoZero.php as per the instructions here http://wiki.civicrm.org/confluence/display/CRMDOC/Upgrade+Joomla+2.0+Sites+to+2.0.2 I get this error:

Code: [Select]
Starting process

backTrace

/home/my_root_name/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Error.php, backtrace, 148
, handle,
/home/my_root_name/public_html/administrator/components/com_civicrm/civicrm/packages/PEAR.php, call_user_func, 901
/home/my_root_name/public_html/administrator/components/com_civicrm/civicrm/packages/DB.php, PEAR_Error, 888
/home/my_root_name/public_html/administrator/components/com_civicrm/civicrm/packages/PEAR.php, DB_Error, 563
/home/my_root_name/public_html/administrator/components/com_civicrm/civicrm/packages/DB/common.php, raiseError, 1849
/home/my_root_name/public_html/administrator/components/com_civicrm/civicrm/packages/DB/mysql.php, raiseError, 894
/home/my_root_name/public_html/administrator/components/com_civicrm/civicrm/packages/DB/mysql.php, mysqlRaiseError, 324
/home/my_root_name/public_html/administrator/components/com_civicrm/civicrm/packages/DB/common.php, simpleQuery, 1162
/home/my_root_name/public_html/administrator/components/com_civicrm/civicrm/CRM/Utils/System/Joomla.php, query, 232
/home/my_root_name/public_html/administrator/components/com_civicrm/civicrm/CRM/Utils/System.php(432) : eval()'d code, authenticate, 1
/home/my_root_name/public_html/administrator/components/com_civicrm/civicrm/CRM/Utils/System.php, eval, 432
/home/my_root_name/public_html/administrator/components/com_civicrm/civicrm/CRM/Utils/System.php, authenticate, 404
/home/my_root_name/public_html/administrator/components/com_civicrm/civicrm/bin/FixAddressForTwoZero.php, authenticateScript, 48
/home/my_root_name/public_html/administrator/components/com_civicrm/civicrm/bin/FixAddressForTwoZero.php, run, 58

unrecoverable error
    Sorry. A non-recoverable error has occurred.

    Database Error Code: Table 'my_root_name_joomla.users' doesn't exist, 1146

    Return to home page.

Error Details:

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

    [code] => -18
    [message] => DB Error: no such table
    [mode] => 16
    [debug_info] => SELECT u.* FROM users u WHERE LOWER(u.username) = 'admin' [nativecode=1146 ** Table 'my_root_name_joomla.users' doesn't exist]
    [type] => DB_Error
    [user_info] => SELECT u.* FROM users u WHERE LOWER(u.username) = 'admin' [nativecode=1146 ** Table 'my_root_name_joomla.users' doesn't exist]
    [to_string] => [db_error: message="DB Error: no such table" code=-18 mode=callback callback=CRM_Core_Error::handle prefix="" info="SELECT u.* FROM users u WHERE LOWER(u.username) = 'admin' [nativecode=1146 ** Table 'my_root_name_joomla.users' doesn't exist]"]
)

Damn right it the db doesn't exist! But why is it looking for it and what should it be after...?[/code]

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: FixAddressForTwoZero
April 30, 2008, 12:39:55 pm

You should fix the users table name in the:

CiviCRM › Administer CiviCRM › Global Setting > Integration Settings

http://drupal.demo.civicrm.org/civicrm/admin/setting?reset=1

I think there was a bug in early versions of 2.0 which resulted in a incorrect value for joomla installs.

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

speleo

  • Ask me questions
  • ****
  • Posts: 396
  • Karma: 28
  • CiviCRM version: 4.3.1
  • CMS version: J! 2.5,9
  • MySQL version: 5.1
  • PHP version: 5.3.24
Re: FixAddressForTwoZero
May 01, 2008, 09:54:21 am
Cool, thanks lobo!

FatherShawn

  • Ask me questions
  • ****
  • Posts: 372
  • Karma: 25
    • C3 Design
  • CiviCRM version: 4.2.11
  • CMS version: Drupal 7.23
  • MySQL version: 5.5.32
  • PHP version: 5.3.10
Re: FixAddressForTwoZero
May 06, 2008, 05:47:35 pm
As of a 2.0.3 upgrade from 1.9 today, these values were still wrong after upgrade.

Should the full version, 1.0.15, be listed in the field?
Lead Developer, C3 Design.
Twitter: @FatherShawn

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • FixAddressForTwoZero

This forum was archived on 2017-11-26.