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) »
  • Unable to update DB on CiviCRM 4.3.1 - 4.3.4 Upgrade on Joomla 2.5.11
Pages: [1]

Author Topic: Unable to update DB on CiviCRM 4.3.1 - 4.3.4 Upgrade on Joomla 2.5.11  (Read 1915 times)

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Unable to update DB on CiviCRM 4.3.1 - 4.3.4 Upgrade on Joomla 2.5.11
June 24, 2013, 03:07:14 pm
Enabled debugging and when I run the update db utility, this is the result. Rendering of CiviCRM dashboard is messed up, too. Menus missing, graphics missing, etc.

Code: [Select]
#0 /home/soar/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Error.php(148): CRM_Core_Error::backtrace()
#1 [internal function](): CRM_Core_Error::handle(Object(DB_Error))
#2 /home/soar/public_html/administrator/components/com_civicrm/civicrm/packages/PEAR.php(931): call_user_func((Array:2), Object(DB_Error))
#3 /home/soar/public_html/administrator/components/com_civicrm/civicrm/packages/DB.php(969): PEAR_Error->PEAR_Error("DB Error: unknown error", -1, 16, (Array:2), "DROP TRIGGER IF EXISTS civicrm_value_soar_membership_application_custom_field...")
#4 /home/soar/public_html/administrator/components/com_civicrm/civicrm/packages/PEAR.php(564): DB_Error->DB_Error(-1, 16, (Array:2), "DROP TRIGGER IF EXISTS civicrm_value_soar_membership_application_custom_field...")
#5 /home/soar/public_html/administrator/components/com_civicrm/civicrm/packages/DB/common.php(1905): PEAR->raiseError(NULL, -1, NULL, NULL, "DROP TRIGGER IF EXISTS civicrm_value_soar_membership_application_custom_field...", "DB_Error", TRUE)
#6 /home/soar/public_html/administrator/components/com_civicrm/civicrm/packages/DB/mysql.php(898): DB_common->raiseError(-1, NULL, NULL, NULL, "1059 ** Identifier name 'civicrm_value_soar_membership_application_custom_fie...")
#7 /home/soar/public_html/administrator/components/com_civicrm/civicrm/packages/DB/mysql.php(327): DB_mysql->mysqlRaiseError()
#8 /home/soar/public_html/administrator/components/com_civicrm/civicrm/packages/DB/common.php(1216): DB_mysql->simpleQuery("DROP TRIGGER IF EXISTS civicrm_value_soar_membership_application_custom_field...")
#9 /home/soar/public_html/administrator/components/com_civicrm/civicrm/packages/DB/DataObject.php(2421): DB_common->query("DROP TRIGGER IF EXISTS civicrm_value_soar_membership_application_custom_field...")
#10 /home/soar/public_html/administrator/components/com_civicrm/civicrm/packages/DB/DataObject.php(1613): DB_DataObject->_query("DROP TRIGGER IF EXISTS civicrm_value_soar_membership_application_custom_field...")
#11 /home/soar/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/DAO.php(155): DB_DataObject->query("DROP TRIGGER IF EXISTS civicrm_value_soar_membership_application_custom_field...")
#12 /home/soar/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/DAO.php(917): CRM_Core_DAO->query("DROP TRIGGER IF EXISTS civicrm_value_soar_membership_application_custom_field...", TRUE)
#13 /home/soar/public_html/administrator/components/com_civicrm/civicrm/CRM/Logging/Schema.php(138): CRM_Core_DAO::executeQuery("DROP TRIGGER IF EXISTS civicrm_value_soar_membership_application_custom_field...")
#14 /home/soar/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/DAO.php(1578): CRM_Logging_Schema->dropTriggers(NULL)
#15 /home/soar/public_html/administrator/components/com_civicrm/civicrm/CRM/Upgrade/Page/Upgrade.php(151): CRM_Core_DAO::dropTriggers()
#16 /home/soar/public_html/administrator/components/com_civicrm/civicrm/CRM/Upgrade/Page/Upgrade.php(71): CRM_Upgrade_Page_Upgrade->runBegin()
#17 /home/soar/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(292): CRM_Upgrade_Page_Upgrade->run((Array:2), NULL)
#18 /home/soar/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(70): CRM_Core_Invoke::runItem((Array:3))
#19 /home/soar/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(52): CRM_Core_Invoke::_invoke((Array:2))
#20 /home/soar/public_html/administrator/components/com_civicrm/admin.civicrm.php(116): CRM_Core_Invoke::invoke((Array:2))
#21 /home/soar/public_html/administrator/components/com_civicrm/admin.civicrm.php(40): civicrm_invoke()
#22 /home/soar/public_html/libraries/joomla/application/component/helper.php(383): require_once("/home/soar/public_html/administrator/components/com_civicrm/admin.civicrm.php")
#23 /home/soar/public_html/libraries/joomla/application/component/helper.php(351): JComponentHelper::executeComponent("/home/soar/public_html/administrator/components/com_civicrm/admin.civicrm.php")
#24 /home/soar/public_html/administrator/includes/application.php(153): JComponentHelper::renderComponent("com_civicrm")
#25 /home/soar/public_html/administrator/index.php(46): JAdministrator->dispatch()
#26 {main}
Sorry but we are not able to provide this at the moment.
DB Error: unknown error
Error Details
Database Error Code: Identifier name 'civicrm_value_soar_membership_application_custom_fields_1_before_insert' is too long, 1059
Additional Details:
Array
(
    [callback] => Array
        (
            [0] => CRM_Core_Error
            [1] => handle
        )

    [code] => -1
    [message] => DB Error: unknown error
    [mode] => 16
    [debug_info] => DROP TRIGGER IF EXISTS civicrm_value_soar_membership_application_custom_fields_1_before_insert [nativecode=1059 ** Identifier name 'civicrm_value_soar_membership_application_custom_fields_1_before_insert' is too long]
    [type] => DB_Error
    [user_info] => DROP TRIGGER IF EXISTS civicrm_value_soar_membership_application_custom_fields_1_before_insert [nativecode=1059 ** Identifier name 'civicrm_value_soar_membership_application_custom_fields_1_before_insert' is too long]
    [to_string] => [db_error: message="DB Error: unknown error" code=-1 mode=callback callback=CRM_Core_Error::handle prefix="" info="DROP TRIGGER IF EXISTS civicrm_value_soar_membership_application_custom_fields_1_before_insert [nativecode=1059 ** Identifier name 'civicrm_value_soar_membership_application_custom_fields_1_before_insert' is too long]"]
)
Return to home page.

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Re: Unable to update DB on CiviCRM 4.3.1 - 4.3.4 Upgrade on Joomla 2.5.11
June 24, 2013, 06:01:01 pm
I've successfully dropped the custom data table and fields that caused this error, but I'm now getting 'stuck' when doing the db upgrade at this point:

administrator/?option=com_civicrm&task=civicrm/upgrade/queue/runner&reset=1&qrid=CRM_Upgrade

page is blank with just the reset and skip buttons (both unresponsive)

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Unable to update DB on CiviCRM 4.3.1 - 4.3.4 Upgrade on Joomla 2.5.11
June 25, 2013, 04:59:24 pm
Quote from: penguintrax on June 24, 2013, 06:01:01 pm
I've successfully dropped the custom data table and fields that caused this error

How did you drop them? Via SQL or via the CiviCRM web interface?

Quote from: penguintrax on June 24, 2013, 06:01:01 pm
administrator/?option=com_civicrm&task=civicrm/upgrade/queue/runner&reset=1&qrid=CRM_Upgrade

page is blank with just the reset and skip buttons (both unresponsive)

Can you look at the page with Firebug for Firefox? Odds are you have a JS error and removing cached template files may help.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Re: Unable to update DB on CiviCRM 4.3.1 - 4.3.4 Upgrade on Joomla 2.5.11
June 26, 2013, 06:03:37 am
Dropped the tables in SQL (db errors in Civi prevented it from working)

Will try firebug and dumping that cache.

Also verifying with our server manager that the MySQL user has SUPER privileges.

Thanks, Hershel - much appreciated.

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Re: Unable to update DB on CiviCRM 4.3.1 - 4.3.4 Upgrade on Joomla 2.5.11
June 26, 2013, 01:10:02 pm
I turned on firebug, dumped the cache and this is the errors I'm getting when I try to run the db upgrade:

TypeError: CRM.url is not a function
[Break On This Error]    

....url('init', '/administrator/?option=com_civicrm&task=civicrm/example&placeholde...

?optio...Upgrade (line 125)
ReferenceError: cj is not defined
[Break On This Error]    

cj(function() {

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Re: Unable to update DB on CiviCRM 4.3.1 - 4.3.4 Upgrade on Joomla 2.5.11
June 27, 2013, 09:17:36 am
Well, updating the db user to super did not allow things to process. I dropped all the tables and reinstalled Civi. Need to get this site finished by Sunday, so I just moved on.

Thanks for the assistance Hershel - I really appreciate it.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Unable to update DB on CiviCRM 4.3.1 - 4.3.4 Upgrade on Joomla 2.5.11
June 27, 2013, 10:35:47 am
OK. Anyhow your previous error is hard to know what it is--it's clearly a JS issue but you would have had to debug why using Firebug.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Re: Unable to update DB on CiviCRM 4.3.1 - 4.3.4 Upgrade on Joomla 2.5.11
June 27, 2013, 11:48:10 am
I did debug it, but nothing really made sense. I'm also having an issue on another site being unable to use Paypal with Internet Explorer. I will probably wait for 4.4 to be released before upgrading.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Unable to update DB on CiviCRM 4.3.1 - 4.3.4 Upgrade on Joomla 2.5.11

This forum was archived on 2017-11-26.