compucorp / uk.co.compucorp.civicrm.giftaid

3 stars 22 forks source link

Fails to install (on CiviCRM 4.4.3) #11

Open artfulrobot opened 10 years ago

artfulrobot commented 10 years ago

I checked this out (ba3dd3f), refreshed extensions list, clicked Install, clicked Install on the confirmation page, and got this backtrace (below).

Seems to be trying to insert 2010 as a datetime/timestamp?

#0 /var/www/civicrm.reech/sites/all/modules/civicrm/CRM/Core/Error.php(149): CRM_Core_Error::backtrace()
#1 [internal function](): CRM_Core_Error::handle(Object(DB_Error))
#2 /var/www/civicrm.reech/sites/all/modules/civicrm/packages/PEAR.php(931): call_user_func((Array:2), Object(DB_Error))
#3 /var/www/civicrm.reech/sites/all/modules/civicrm/packages/DB.php(969): PEAR_Error->PEAR_Error("DB Error: unknown error", -1, 16, (Array:2), "INSERT INTO civicrm_custom_group (name , title , extends , style , collapse_d...")
#4 /var/www/civicrm.reech/sites/all/modules/civicrm/packages/PEAR.php(564): DB_Error->DB_Error(-1, 16, (Array:2), "INSERT INTO civicrm_custom_group (name , title , extends , style , collapse_d...")
#5 /var/www/civicrm.reech/sites/all/modules/civicrm/packages/DB/common.php(1905): PEAR->raiseError(NULL, -1, NULL, NULL, "INSERT INTO civicrm_custom_group (name , title , extends , style , collapse_d...", "DB_Error", TRUE)
#6 /var/www/civicrm.reech/sites/all/modules/civicrm/packages/DB/mysql.php(898): DB_common->raiseError(-1, NULL, NULL, NULL, "1292 ** Incorrect datetime value: '2010' for column 'created_date' at row 1")
#7 /var/www/civicrm.reech/sites/all/modules/civicrm/packages/DB/mysql.php(327): DB_mysql->mysqlRaiseError()
#8 /var/www/civicrm.reech/sites/all/modules/civicrm/packages/DB/common.php(1216): DB_mysql->simpleQuery("INSERT INTO civicrm_custom_group (name , title , extends , style , collapse_d...")
#9 /var/www/civicrm.reech/sites/all/modules/civicrm/packages/DB/DataObject.php(2421): DB_common->query("INSERT INTO civicrm_custom_group (name , title , extends , style , collapse_d...")
#10 /var/www/civicrm.reech/sites/all/modules/civicrm/packages/DB/DataObject.php(1055): DB_DataObject->_query("INSERT INTO civicrm_custom_group (name , title , extends , style , collapse_d...")
#11 /var/www/civicrm.reech/sites/all/modules/civicrm/CRM/Core/DAO.php(275): DB_DataObject->insert()
#12 /var/www/civicrm.reech/sites/all/modules/civicrm/CRM/Utils/Migrate/Import.php(121): CRM_Core_DAO->save()
#13 /var/www/civicrm.reech/sites/all/modules/civicrm/CRM/Utils/Migrate/Import.php(180): CRM_Utils_Migrate_Import->copyData(Object(CRM_Core_DAO_CustomGroup), Object(SimpleXMLElement), TRUE, "name")
#14 /var/www/civicrm.reech/sites/all/modules/civicrm/CRM/Utils/Migrate/Import.php(77): CRM_Utils_Migrate_Import->customGroups(Object(SimpleXMLElement), (Array:2))
#15 /var/www/civicrm.reech/sites/all/modules/civicrm/CRM/Utils/Migrate/Import.php(54): CRM_Utils_Migrate_Import->runXmlElement(Object(SimpleXMLElement))
#16 /var/www/civicrm.reech/civicrm_customisations/extensions/uk.co.compucorp.civicrm.giftaid/civigiftaid.php(32): CRM_Utils_Migrate_Import->run("/var/www/civicrm.reech/civicrm_customisations/extensions/uk.co.compucorp.civi...")
#17 /var/www/civicrm.reech/sites/all/modules/civicrm/CRM/Extension/Manager/Module.php(60): civigiftaid_civicrm_install()
#18 /var/www/civicrm.reech/sites/all/modules/civicrm/CRM/Extension/Manager/Module.php(44): CRM_Extension_Manager_Module->callHook(Object(CRM_Extension_Info), "install")
#19 /var/www/civicrm.reech/sites/all/modules/civicrm/CRM/Extension/Manager.php(219): CRM_Extension_Manager_Module->onPreInstall(Object(CRM_Extension_Info))
#20 /var/www/civicrm.reech/sites/all/modules/civicrm/CRM/Admin/Form/Extensions.php(188): CRM_Extension_Manager->install((Array:1))
#21 /var/www/civicrm.reech/sites/all/modules/civicrm/CRM/Core/Form.php(261): CRM_Admin_Form_Extensions->postProcess()
#22 /var/www/civicrm.reech/sites/all/modules/civicrm/CRM/Core/StateMachine.php(160): CRM_Core_Form->mainProcess()
#23 /var/www/civicrm.reech/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Next.php(60): CRM_Core_StateMachine->perform(Object(CRM_Admin_Form_Extensions), "next", "Next")
#24 /var/www/civicrm.reech/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Next->perform(Object(CRM_Admin_Form_Extensions), "next")
#25 /var/www/civicrm.reech/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Admin_Form_Extensions), "next")
#26 /var/www/civicrm.reech/sites/all/modules/civicrm/CRM/Core/Controller.php(345): HTML_QuickForm_Page->handle("next")
#27 /var/www/civicrm.reech/sites/all/modules/civicrm/CRM/Core/Page/Basic.php(381): CRM_Core_Controller->run()
#28 /var/www/civicrm.reech/sites/all/modules/civicrm/CRM/Core/Page/Basic.php(178): CRM_Core_Page_Basic->edit(1, NULL)
#29 /var/www/civicrm.reech/sites/all/modules/civicrm/CRM/Admin/Page/Extensions.php(127): CRM_Core_Page_Basic->run()
#30 /var/www/civicrm.reech/sites/all/modules/civicrm/CRM/Core/Invoke.php(323): CRM_Admin_Page_Extensions->run((Array:3), NULL)
#31 /var/www/civicrm.reech/sites/all/modules/civicrm/CRM/Core/Invoke.php(72): CRM_Core_Invoke::runItem((Array:13))
#32 /var/www/civicrm.reech/sites/all/modules/civicrm/CRM/Core/Invoke.php(52): CRM_Core_Invoke::_invoke((Array:3))
#33 /var/www/civicrm.reech/sites/all/modules/civicrm/drupal/civicrm.module(436): CRM_Core_Invoke::invoke((Array:3))
#34 [internal function](): civicrm_invoke("admin", "extensions")
#35 /var/www/civicrm.reech/includes/menu.inc(517): call_user_func_array("civicrm_invoke", (Array:2))
#36 /var/www/civicrm.reech/index.php(21): menu_execute_active_handler()
#37 {main}
bjendres commented 10 years ago

@artfulrobot: Can you remember what you did to fix it? We have the same problem on code that's been working for ages, but now (out of the blue) fails on a simple CRM_Core_DAO->get(...); CRM_Core_DAO->save();

artfulrobot commented 10 years ago

I did not fix it, I gave up on it. I went back to my previous solution: add a custom field for contributions to track status: unknown, eligible not claimed, eligible claimed, not eligible. Plus claim date field. Then a custom search task to allow bulk updating to claimed, set date. Simple and I hoped this did better, but being unable to install it put me off going further.

bjendres commented 10 years ago

I did not fix it, I gave up on it.

Shame, but thanks anyway :)