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) »
  • Error in civimail.cronjob.php
Pages: [1]

Author Topic: Error in civimail.cronjob.php  (Read 1789 times)

prickeke

  • I post occasionally
  • **
  • Posts: 64
  • Karma: 4
Error in civimail.cronjob.php
August 24, 2007, 01:17:25 pm
I am attempting to send out a mailing to one group and exclude two groups (one smart group and one normal group).

I have sent out a mailing before to one normal group (no exclusions) and it worked fine.

Here is the error I am getting, does anyone have any insight into this?  Thanks!



unrecoverable error
    Sorry. A non-recoverable error has occurred.

    Database Error Code: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 4, 1064

    Return to CiviCRM menu.

Error Details:

Array
(
    [callback] => Array
        (
           
  • => CRM_Core_Error
  • [1] => handle
            )

       
Code: [Select]
=> -2
    [message] => DB Error: syntax error
    [mode] => 16
    [debug_info] => INSERT IGNORE INTO X_15 (contact_id)
                    SELECT              contact_a.id
                                         FROM civicrm_contact contact_a
                    WHERE                [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 4]
    [type] => DB_Error
    [user_info] => INSERT IGNORE INTO X_15 (contact_id)
                    SELECT              contact_a.id
                                         FROM civicrm_contact contact_a
                    WHERE                [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 4]
    [to_string] => [db_error: message="DB Error: syntax error" code=-2 mode=callback callback=CRM_Core_Error::handle prefix="" info="INSERT IGNORE INTO X_15 (contact_id)
                    SELECT              contact_a.id
                                         FROM civicrm_contact contact_a
                    WHERE                [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 4]"]
)

« Last Edit: August 24, 2007, 01:28:48 pm by prickeke »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Error in civimail.cronjob.php
August 24, 2007, 04:22:57 pm

Keith:

1. Can you try to do a mailing with only one exclusion. First with a normal group and then with a smart group.

2. If either of the above work, then can you try to do the same with two exclusions. Two normal groups and then two smart groups.

I suspect some of the above will fail. Can you then file an issue along with details about what worked and what failed. We'll try to fix it in the 1.8.uas release :)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

prickeke

  • I post occasionally
  • **
  • Posts: 64
  • Karma: 4
Re: Error in civimail.cronjob.php
August 24, 2007, 04:27:25 pm
I can do this.  In the meantime, can you recommend a way to send my e-mail to the intended recipients?  I couldn't figure out a way to do a search for contacts in one group but not in others.

Thanks,
--
Keith

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Error in civimail.cronjob.php
August 24, 2007, 04:29:59 pm

unfortunately not. that is probably one of CiviCRM search's biggest limitations, which we hope to address in 2.x :)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

prickeke

  • I post occasionally
  • **
  • Posts: 64
  • Karma: 4
Re: Error in civimail.cronjob.php
August 24, 2007, 04:33:25 pm
Well the smart group is only 15 contacts, so for now, I'll try the exclusion using one normal group and take the smart group contacts out by hand.  I will look forward to the 2.0 change (and the bug fix, if I find out what it is.  I have a feeling this is due to the smart group exclusion based on the fatal error code and other chatter on this forum.)

--
Keith

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Error in civimail.cronjob.php

This forum was archived on 2017-11-26.