Closed mfuggle closed 8 years ago
@mfuggle do you have any more details as to when the error occurs? Also if you haven't already, try enabling debugging and backtrace in civicrm so we can get more details on the error.
What version of civicrm? Php and MySQL version? Any more details on the error? If you have watchdog logging enabled in civicrm, do you see anything else in there?
Wow - how's that for a rapid response. I hate to tell you but I am operating in the production version of the site and don't have a dev version created. I know! Just as start I am using Php version 5.5.9-1ubuntu4.14, MySQL 5.6.23, CiviCRM 4.6.14 and Drupal 7.43. All pretty well uop to date other than CiviCRM which is 4.6 rather than 4.7.
I'll see what I can find in logs etc
Here is the backtrace:
backTrace
civicrm_mailing_bounce_pattern
(bounce_type_id
, pattern
) VA...")civicrm_mailing_bounce_pattern
(bounce_type_id
, pattern
) VA...")civicrm_mailing_bounce_pattern
(bounce_type_id
, pattern
) VA...", "DB_Error", TRUE)civicrm_mailing_bounce_pattern
(bounce_type_id
, pattern
) VA...")civicrm_mailing_bounce_pattern
(bounce_type_id
, pattern
) VA...")civicrm_mailing_bounce_pattern
(bounce_type_id
, pattern
) VA...")civicrm_mailing_bounce_pattern
(bounce_type_id
, pattern
) VA...")civicrm_mailing_bounce_pattern
(bounce_type_id
, pattern
) VA...", TRUE)civicrm_mailing_bounce_pattern
(bounce_type_id
, pattern
) VA...")Check your CiviCRM database in table civicrm_mailing_bounce_type. When you installed the extension it should have created a row with the value "SparkPost" in the name column. Also check if the name column is of type varchar or enum.
@mfuggle if the name field in civicrm_mailing_bounce_type table is type enum refer to https://github.com/proexchange/com.pesc.sparkpost/issues/11 this is a known issue that should be fixed soon.
It doesn't have a row with the value 'Sparkpost' in the name column. See attached...
On row 28 and 29 the name value should say SparkPost. This is why the insert into the civicrm_mailing_bounce_pattern is failing. Check the structure of civicrm_mailing_bounce_type. If the name column is type enum run the fix query in issue #11 and this should resolve your issue. Assuming the column is an enum delete row 28 and 29 after you run the query before you try installing the extension again.
OK - In fact there were three more rows with Sparkpost supression list in the description column. Should I delete all but one of them or add Sparkpost in the name column for all of them. I guess the reason there are multiples is because I have tried to install a few times so I guess getting rid of all but one row should be OK
delete all rows with 'Sparkpost suppression list' in the description column, run the fix query, then install.
All fixed by running the two SQL statements in #11.
Many thanks - now I need to get Mosaico up and running!
I am trying to switch from using Mandrill to SparkPost. I have a valid Sparkpost account and have tested it inside CiviCRM. However when I install the Sparkpost extension in CiviCRM (Dupal) I get a DB Error: Syntax Error. I am hesitant to make this post since I have been bothering @mark-rodgers over issues I am having with the installation of the vedaconsulting Mosaico extension. My aim is to move away from Mailchimp/Mandrill and move to Civimail (Mosaico)/Sparkpost and I am getting thwarted at every turn. Cheers Martin Fuggle