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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.3 Release Testing (Moderator: pdelbar) »
  • Error on deleting message templates
Pages: [1]

Author Topic: Error on deleting message templates  (Read 794 times)

TMAI

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
  • CiviCRM version: 4.3 Beta5
  • CMS version: WordPress
  • MySQL version: 5.1
  • PHP version: 5.3.3
Error on deleting message templates
March 30, 2013, 03:30:05 pm
There is an error when deleting a message template. I have verified this against the demo site too.

Here the stack trace:

Code: [Select]
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 '%1' at line 3, 1064
Additional Details:
Array
(
    [callback] => Array
        (
            [0] => CRM_Core_Error
            [1] => handle
        )

    [code] => -2
    [message] => DB Error: syntax error
    [mode] => 16
    [debug_info] => UPDATE civicrm_mailing
                  SET msg_template_id = NULL
                  WHERE msg_template_id = %1 [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 '%1' at line 3]
    [type] => DB_Error
    [user_info] => UPDATE civicrm_mailing
                  SET msg_template_id = NULL
                  WHERE msg_template_id = %1 [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 '%1' at line 3]
    [to_string] => [db_error: message="DB Error: syntax error" code=-2 mode=callback callback=CRM_Core_Error::handle prefix="" info="UPDATE civicrm_mailing
                  SET msg_template_id = NULL
                  WHERE msg_template_id = %1 [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 '%1' at line 3]"]
)

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 on deleting message templates
March 30, 2013, 05:28:56 pm

Can you please file an issue @ http://issues.civicrm.org/ and please give exact steps on how to reproduce the error

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

TMAI

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
  • CiviCRM version: 4.3 Beta5
  • CMS version: WordPress
  • MySQL version: 5.1
  • PHP version: 5.3.3
Re: Error on deleting message templates
March 31, 2013, 03:14:50 pm
done.

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Error on deleting message templates
April 01, 2013, 02:17:22 am
TMAI :

This has been fixed for 4.3

Thanks for catching this!
-Yashodha
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.3 Release Testing (Moderator: pdelbar) »
  • Error on deleting message templates

This forum was archived on 2017-11-26.