After upgrading CiviCRM on Drupal 7.65 from 5.11.0 to 5.13.1, and then testing a CiviContribution form with a discount code (test code for a 100% deduction) from CiviDiscount 3.7, I am getting the following error in a white screen of death:
Fatal error: Uncaught CRM_Core_Exception: [0: Transaction integrity error: Expected to find active frame thrown in /drupal_root/sites/all/modules/contrib/civicrm/Civi/Core/Transaction/Manager.php on line 107
The function referred to in the error is:
/**
* Decrement the transaction count / close out a transaction level
*
* @throws \CRM_Core_Exception
*/
public function dec() {
if (!isset($this->frames[0]) || $this->frames[0]->isEmpty()) {
throw new \CRM_Core_Exception('Transaction integrity error: Expected to find active frame');
}
Here is the backtrace:
(
[callback] => Array
(
[0] => CRM_Core_Error
[1] => handle
)
[code] => 0
[message] =>
[mode] => 16
[debug_info] =>
[type] => PEAR_Error
[user_info] =>
[to_string] => [pear_error: message="" code=0 mode=callback callback=CRM_Core_Error::handle prefix="" info=""]
)
May 13 14:26:23 [info] $backTrace = #0 /drupal_rootsites/all/modules/contrib/civicrm/CRM/Core/Error.php(236): CRM_Core_Error::backtrace("backTrace", TRUE)
#1 /drupal_rootsites/all/modules/contrib/civicrm/vendor/pear/pear-core-minimal/src/PEAR.php(922): CRM_Core_Error::handle(Object(PEAR_Error))
#2 /drupal_rootsites/all/modules/contrib/civicrm/vendor/pear/pear-core-minimal/src/PEAR.php(577): PEAR_Error->__construct("", 0, 16, (Array:2), NULL)
#3 /drupal_rootsites/all/modules/contrib/civicrm/vendor/pear/pear-core-minimal/src/PEAR.php(223): PEAR->_raiseError(Object(Net_Socket), "", 0)
#4 /drupal_rootsites/all/modules/contrib/civicrm/vendor/pear/net_socket/Net/Socket.php(173): PEAR->__call("raiseError", (Array:2))
#5 /drupal_rootsites/all/modules/contrib/civicrm/packages/HTTP/Request.php(737): Net_Socket->connect("ssl://maps.googleapis.com", 443, NULL, "60", NULL)
#6 /drupal_rootsites/all/modules/contrib/civicrm/CRM/Utils/Geocode/Google.php(126): HTTP_Request->sendRequest()
#7 /drupal_rootsites/all/modules/contrib/civicrm/CRM/Core/BAO/Address.php(1371): CRM_Utils_Geocode_Google::format((Array:12))
#8 /drupal_rootsites/all/modules/contrib/civicrm/CRM/Core/BAO/Address.php(377): CRM_Core_BAO_Address::addGeocoderData((Array:12))
#9 /drupal_rootsites/all/modules/contrib/civicrm/CRM/Core/BAO/Address.php(144): CRM_Core_BAO_Address::fixAddress((Array:12))
#10 /drupal_rootsites/all/modules/contrib/civicrm/CRM/Core/BAO/Address.php(120): CRM_Core_BAO_Address::add((Array:12), TRUE)
#11 /drupal_rootsites/all/modules/contrib/civicrm/CRM/Core/BAO/Location.php(70): CRM_Core_BAO_Address::create((Array:48), TRUE, NULL)
#12 /drupal_rootsites/all/modules/contrib/civicrm/CRM/Contact/BAO/Contact.php(340): CRM_Core_BAO_Location::create((Array:48), TRUE)
#13 /drupal_rootsites/all/modules/contrib/civicrm/CRM/Contact/BAO/Contact.php(2007): CRM_Contact_BAO_Contact::create((Array:48))
#14 /drupal_rootsites/all/modules/contrib/civicrm/CRM/Contribute/Form/Contribution/Confirm.php(2207): CRM_Contact_BAO_Contact::createProfileContact((Array:51), (Array:11), NULL, (Array:1), NULL, NULL, TRUE)
#15 /drupal_rootsites/all/modules/contrib/civicrm/CRM/Contribute/Form/Contribution/Confirm.php(709): CRM_Contribute_Form_Contribution_Confirm->processFormSubmission(NULL)
#16 /drupal_rootsites/all/modules/contrib/civicrm/CRM/Core/Form.php(490): CRM_Contribute_Form_Contribution_Confirm->postProcess()
#17 /drupal_rootsites/all/modules/contrib/civicrm/CRM/Contribute/Form/Contribution/Main.php(1295): CRM_Core_Form->mainProcess()
#18 /drupal_rootsites/all/modules/contrib/civicrm/CRM/Contribute/Form/Contribution/Main.php(1029): CRM_Contribute_Form_Contribution_Main->skipToThankYouPage()
#19 /drupal_rootsites/all/modules/contrib/civicrm/CRM/Core/Form.php(490): CRM_Contribute_Form_Contribution_Main->postProcess()
#20 /drupal_rootsites/all/modules/contrib/civicrm/CRM/Core/QuickForm/Action/Upload.php(169): CRM_Core_Form->mainProcess()
#21 /drupal_rootsites/all/modules/contrib/civicrm/CRM/Core/QuickForm/Action/Upload.php(136): CRM_Core_QuickForm_Action_Upload->realPerform(Object(CRM_Contribute_Form_Contribution_Main), "upload")
#22 /drupal_rootsites/all/modules/contrib/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Upload->perform(Object(CRM_Contribute_Form_Contribution_Main), "upload")
#23 /drupal_rootsites/all/modules/contrib/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Contribute_Form_Contribution_Main), "upload")
#24 /drupal_rootsites/all/modules/contrib/civicrm/CRM/Core/Controller.php(349): HTML_QuickForm_Page->handle("upload")
#25 /drupal_rootsites/all/modules/contrib/civicrm/CRM/Core/Invoke.php(311): CRM_Core_Controller->run((Array:3), NULL)
#26 /drupal_rootsites/all/modules/contrib/civicrm/CRM/Core/Invoke.php(85): CRM_Core_Invoke::runItem((Array:15))
#27 /drupal_rootsites/all/modules/contrib/civicrm/CRM/Core/Invoke.php(52): CRM_Core_Invoke::_invoke((Array:3))
#28 /drupal_rootsites/all/modules/contrib/civicrm/drupal/civicrm.module(444): CRM_Core_Invoke::invoke((Array:3))
#29 /drupal_rootincludes/menu.inc(527): civicrm_invoke("contribute", "transact")
#30 /drupal_rootindex.php(21): menu_execute_active_handler()
#31 {main}
Any idea what this means and what I should do to fix it?
Edit: I've tested the contribution form without a discount code and got the same error. This is an established site that was working and no other changes have been made. I'm still going through the process of testing the upgrade on my dev. PHP 7.1
Edit2: This is on my local dev environment using AMPPS on a Mac. Edit3: This seems to be something with how my local dev processes https requests with Google Maps.