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 »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • mandrill extension installation error
Pages: [1]

Author Topic: mandrill extension installation error  (Read 1793 times)

mudnik

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 0
  • CiviCRM version: 4.5.3
  • CMS version: drupal
  • MySQL version: 5.5.34-cll
  • PHP version: 5.4.23
mandrill extension installation error
January 28, 2014, 02:40:02 pm
I tried installing the extension, but get this error:

Sorry but we are not able to provide this at the moment.
DB Error: unknown error

Anyone knows how to resolve this?


$backTrace = #0 /home/xxxxx/public_html/sites/all/modules/civicrm/CRM/Core/Error.php(197): CRM_Core_Error::backtrace("backTrace", TRUE) #1 [internal function](): CRM_Core_Error::handle(Object(DB_Error)) #2 /home/xxxxx/public_html/sites/all/modules/civicrm/packages/PEAR.php(931): call_user_func((Array:2), Object(DB_Error)) #3 /home/xxxxx/public_html/sites/all/modules/civicrm/packages/DB.php(969): PEAR_Error->PEAR_Error("DB Error: unknown error", -1, 16, (Array:2), "ALTER TABLE `civicrm_mailing_event_queue` \n ADD `activity_id` INT UNSIGNED ...") #4 /home/xxxxx/public_html/sites/all/modules/civicrm/packages/PEAR.php(564): DB_Error->DB_Error(-1, 16, (Array:2), "ALTER TABLE `civicrm_mailing_event_queue` \n ADD `activity_id` INT UNSIGNED ...") #5 /home/xxxxx/public_html/sites/all/modules/civicrm/packages/DB/common.php(1905): PEAR->raiseError(NULL, -1, NULL, NULL, "ALTER TABLE `civicrm_mailing_event_queue` \n ADD `activity_id` INT UNSIGNED ...", "DB_Error", TRUE) #6 /home/xxxxx/public_html/sites/all/modules/civicrm/packages/DB/mysql.php(898): DB_common->raiseError(-1, NULL, NULL, NULL, "1060 ** Duplicate column name 'activity_id'") #7 /home/xxxxx/public_html/sites/all/modules/civicrm/packages/DB/mysql.php(327): DB_mysql->mysqlRaiseError() #8 /home/xxxxx/public_html/sites/all/modules/civicrm/packages/DB/common.php(1216): DB_mysql->simpleQuery("ALTER TABLE `civicrm_mailing_event_queue` \n ADD `activity_id` INT UNSIGNED ...") #9 /home/xxxxx/public_html/sites/all/modules/civicrm/CRM/Utils/File.php(284): DB_common->query("ALTER TABLE `civicrm_mailing_event_queue` \n ADD `activity_id` INT UNSIGNED ...") #10 /home/xxxxx/public_html/sites/default/custom_ext/biz.jmaconsulting.mte/CRM/Mte/Upgrader/Base.php(285): CRM_Utils_File::sourceSQLFile("mysql://xxxxx_civiuser:G2TTqrxbZrU@@localhost/xxxxx_civicrm81?new_link=true", "/**\n * Mandrill Transactional Email extension integrates CiviCRM's non-bulk ...", NULL, TRUE) #11 /home/xxxxx/public_html/sites/default/custom_ext/biz.jmaconsulting.mte/mte.civix.php(72): CRM_Mte_Upgrader_Base->onInstall() #12 /home/xxxxx/public_html/sites/default/custom_ext/biz.jmaconsulting.mte/mte.php(55): _mte_civix_civicrm_install() #13 /home/xxxxx/public_html/sites/all/modules/civicrm/CRM/Extension/Manager/Module.php(64): mte_civicrm_install() #14 /home/xxxxx/public_html/sites/all/modules/civicrm/CRM/Extension/Manager/Module.php(44): CRM_Extension_Manager_Module->callHook(Object(CRM_Extension_Info), "install") #15 /home/xxxxx/public_html/sites/all/modules/civicrm/CRM/Extension/Manager.php(219): CRM_Extension_Manager_Module->onPreInstall(Object(CRM_Extension_Info)) #16 /home/xxxxx/public_html/sites/all/modules/civicrm/CRM/Admin/Form/Extensions.php(188): CRM_Extension_Manager->install((Array:1)) #17 /home/xxxxx/public_html/sites/all/modules/civicrm/CRM/Core/Form.php(261): CRM_Admin_Form_Extensions->postProcess() #18 /home/xxxxx/public_html/sites/all/modules/civicrm/CRM/Core/StateMachine.php(160): CRM_Core_Form->mainProcess() #19 /home/xxxxx/public_html/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Next.php(60): CRM_Core_StateMachine->perform(Object(CRM_Admin_Form_Extensions), "next", "Next") #20 /home/xxxxx/public_html/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Next->perform(Object(CRM_Admin_Form_Extensions), "next") #21 /home/xxxxx/public_html/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Admin_Form_Extensions), "next") #22 /home/xxxxx/public_html/sites/all/modules/civicrm/CRM/Core/Controller.php(345): HTML_QuickForm_Page->handle("next") #23 /home/xxxxx/public_html/sites/all/modules/civicrm/CRM/Core/Page/Basic.php(381): CRM_Core_Controller->run() #24 /home/xxxxx/public_html/sites/all/modules/civicrm/CRM/Core/Page/Basic.php(178): CRM_Core_Page_Basic->edit(1, NULL) #25 /home/xxxxx/public_html/sites/all/modules/civicrm/CRM/Admin/Page/Extensions.php(127): CRM_Core_Page_Basic->run() #26 /home/xxxxx/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php(323): CRM_Admin_Page_Extensions->run((Array:3), NULL) #27 /home/xxxxx/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php(72): CRM_Core_Invoke::runItem((Array:13)) #28 /home/xxxxx/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php(52): CRM_Core_Invoke::_invoke((Array:3)) #29 /home/xxxxx/public_html/sites/all/modules/civicrm/drupal/civicrm.module(456): CRM_Core_Invoke::invoke((Array:3)) #30 [internal function](): civicrm_invoke("admin", "extensions") #31 /home/xxxxx/public_html/includes/menu.inc(517): call_user_func_array("civicrm_invoke", (Array:2)) #32 /home/xxxxx/public_html/index.php(21): menu_execute_active_handler() #33 {main}

mr_wong

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.4.4
  • CMS version: WordPress
  • MySQL version: 5.1.72-cll
  • PHP version: 5.3.27
Re: mandrill extension installation error
February 11, 2014, 10:53:39 pm
I'm having the exact same issue.

Where you able to install it in the end?

mudnik

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 0
  • CiviCRM version: 4.5.3
  • CMS version: drupal
  • MySQL version: 5.5.34-cll
  • PHP version: 5.4.23
Re: mandrill extension installation error
February 12, 2014, 08:08:06 am
No still not installed.

aaronchow

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 3
  • CiviCRM version: 3.3
  • CMS version: Joomla
  • MySQL version: 4
  • PHP version: 5
Re: mandrill extension installation error
February 12, 2014, 12:23:06 pm
Any luck?  I'm having the same problem as well...   :'(

mr_wong

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.4.4
  • CMS version: WordPress
  • MySQL version: 5.1.72-cll
  • PHP version: 5.3.27
Re: mandrill extension installation error
February 12, 2014, 03:51:44 pm
Ok. Looking at the stack trace, I noticed that the main issue is that the installer must have failed in the first pass.

I ran the 'mte_uninstall.sql' script directly on my DB and tried installing again.

This time the dreaded white screen of death popped up:

Quote
Warning: require_once(CRM/Mailing/DAO/Job.php) [function.require-once]: failed to open stream: No such file or directory in /home/xxxxxx/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/ClassLoader.php on line 126

Fatal error: require_once() [function.require]: Failed opening required 'CRM/Mailing/DAO/Job.php' (include_path='/home/xxxxxx/public_html/wp-content/plugins/files/civicrm/extensions/biz.jmaconsulting.mte/:.:/home/xxxxxx/public_html/wp-content/plugins/civicrm/civicrm/:/home/xxxxxx/public_html/wp-content/plugins/civicrm/civicrm//packages:.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxxx/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/ClassLoader.php on line 126

Looking around the CiviCRM forums, this looks like a possible conflict with the recent upgrade.

aaronchow

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 3
  • CiviCRM version: 3.3
  • CMS version: Joomla
  • MySQL version: 4
  • PHP version: 5
Re: mandrill extension installation error
February 13, 2014, 12:36:40 pm
Quote from: mr_wong on February 12, 2014, 03:51:44 pm
Ok. Looking at the stack trace, I noticed that the main issue is that the installer must have failed in the first pass.

I ran the 'mte_uninstall.sql' script directly on my DB and tried installing again.

This time the dreaded white screen of death popped up:

Looking around the CiviCRM forums, this looks like a possible conflict with the recent upgrade.

Thanks for taking a look.  I just file a bug report on their GitHub.  Hopefully we'll be able to use it soon.  https://github.com/JMAConsulting/biz.jmaconsulting.mte/issues/30

- Aaron

mr_wong

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.4.4
  • CMS version: WordPress
  • MySQL version: 5.1.72-cll
  • PHP version: 5.3.27
Re: mandrill extension installation error
February 13, 2014, 02:21:47 pm
The fix was posted here:
https://github.com/JMAConsulting/biz.jmaconsulting.mte/issues/29#issuecomment-34984643

It installed perfectly after making the small code change.

aaronchow

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 3
  • CiviCRM version: 3.3
  • CMS version: Joomla
  • MySQL version: 4
  • PHP version: 5
Re: mandrill extension installation error
February 14, 2014, 09:35:01 am
Quote from: mr_wong on February 13, 2014, 02:21:47 pm
The fix was posted here:
https://github.com/JMAConsulting/biz.jmaconsulting.mte/issues/29#issuecomment-34984643

It installed perfectly after making the small code change.

Thank you!  I also posted a bug report, and the developer also responded with the following message:


Quote
https://github.com/JMAConsulting/biz.jmaconsulting.mte/issues/30#issuecomment-35084217

Hi,

There have been some schema changes for CiviCRM 4.4.4. We are working on releasing a v4.4.4 compatible version of the extension. Currently, there is a workaround. you could delete L37 from mte_install.sql
Also, to keep up with the schema changes, you would need to change L69 of mte.php to read $saveJob = new CRM_Mailing_DAO_MailingJob(); instead of $saveJob = new CRM_Mailing_DAO_Job();

Hth,
Edsel

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • mandrill extension installation error

This forum was archived on 2017-11-26.