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) »
  • Upgrade 4.3.0 to 4.5.2 fails persistently
Pages: [1]

Author Topic: Upgrade 4.3.0 to 4.5.2 fails persistently  (Read 379 times)

Barnacle

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 2
    • White Fuse Media
  • CiviCRM version: 4.4
  • CMS version: Drupal 7
  • MySQL version: 5.x
  • PHP version: 5.3
Upgrade 4.3.0 to 4.5.2 fails persistently
October 30, 2014, 04:22:21 am
Hi,

After running the upgrade script from 4.3.0 to 4.5.2, this error occurs:

Code: [Select]
Warning: mysqli_error() expects parameter 1 to be mysqli, resource given in CRM_Core_Error::handle() (line 224 of /<stuff>/sites/all/modules/civicrm/CRM/Core/Error.php)
More importantly, I can't edit any contact, because pressing the 'edit' button ends with a yellow box that says:

Code: [Select]
QuickForm Error: nonexistent html element
Any help would be appreciated.

I've attached what the error looks like.

Using Drupal 7.32, MySQL 5.5.37, PHP 5.3.10. This was originally an upgrade from 4.2.8 but I first successfully upgraded to 4.3.0 hoping that would remove the problem.
--
http://whitefusemedia.com/

Barnacle

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 2
    • White Fuse Media
  • CiviCRM version: 4.4
  • CMS version: Drupal 7
  • MySQL version: 5.x
  • PHP version: 5.3
Re: Upgrade 4.3.0 to 4.5.2 fails persistently
October 30, 2014, 05:27:26 am
Update: the exact same error also happened to me upgrading a Drupal 6 site from 4.3.8 to 4.5.2.
--
http://whitefusemedia.com/

Barnacle

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 2
    • White Fuse Media
  • CiviCRM version: 4.4
  • CMS version: Drupal 7
  • MySQL version: 5.x
  • PHP version: 5.3
Re: Upgrade 4.3.0 to 4.5.2 fails persistently
October 30, 2014, 06:44:39 am
Update: turning on 'state/province' field in "Administer-->Localization-->Address Settings" removed this error. However, turning it off again brought the error back. So it seems we have to have the state/province field on now.

When debugging is turned on, the error looks like this:

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

    [code] => -3
    [message] => QuickForm Error: nonexistent html element
    [mode] => 16
    [debug_info] => Element 'state_province' does not exist in HTML_QuickForm::getElementValue()
    [type] => HTML_QuickForm_Error
    [user_info] => Element 'state_province' does not exist in HTML_QuickForm::getElementValue()
    [to_string] => [html_quickform_error: message="nonexistent html element" code=-3 mode=callback callback=CRM_Core_Error::handle prefix="QuickForm Error: " info="Element 'state_province' does not exist in HTML_QuickForm::getElementValue()"]
)

It seems that for the UK, "State/Province" is where the county information is stored, making 'county' redundant. I have discovered that it turning off 'county' and keeping 'State/Province' and 'Country' on will make it work.
« Last Edit: October 30, 2014, 07:09:13 am by Barnacle »
--
http://whitefusemedia.com/

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Upgrade 4.3.0 to 4.5.2 fails persistently

This forum was archived on 2017-11-26.