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) »
  • Database error on creating new mailing
Pages: [1]

Author Topic: Database error on creating new mailing  (Read 1652 times)

seaweasel

  • Guest
Database error on creating new mailing
January 17, 2008, 05:29:23 am
I've just started using CiviMail and have come across a database error on creating a new mailing (directly after clicking "Next" when it has been named and a group selected). Here is the error generated:

Code: [Select]
     Sorry. A non-recoverable error has occurred.

    Database Error Code: Field 'resubscribe_id' doesn't have a default value, 1364

    Return to home page.

Error Details:

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

    [code] => -1
    [message] => DB Error: unknown error
    [mode] => 16
    [debug_info] => INSERT INTO civicrm_mailing (domain_id , reply_id , unsubscribe_id , optout_id , name ) VALUES ( 1 ,  8 ,  5 ,  7 , 'Test' )  [nativecode=1364 ** Field 'resubscribe_id' doesn't have a default value]
    [type] => DB_Error
    [user_info] => INSERT INTO civicrm_mailing (domain_id , reply_id , unsubscribe_id , optout_id , name ) VALUES ( 1 ,  8 ,  5 ,  7 , 'Test' )  [nativecode=1364 ** Field 'resubscribe_id' doesn't have a default value]
    [to_string] => [db_error: message="DB Error: unknown error" code=-1 mode=callback callback=CRM_Core_Error::handle prefix="" info="INSERT INTO civicrm_mailing (domain_id , reply_id , unsubscribe_id , optout_id , name ) VALUES ( 1 ,  8 ,  5 ,  7 , 'Test' )  [nativecode=1364 ** Field 'resubscribe_id' doesn't have a default value]"]
)

If anyone can offer suggestions about what could be causing this I'd appreciate it. Thanks.[/code]

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Database error on creating new mailing
January 17, 2008, 10:36:42 am
The resubscribe_id column / resubuscribe message column was added near the end of the 1.9 release cycle. Can you verify that you're running the latest revision of 1.9 - and that you've selected a "Resubscribe Message" in step 2 of the Mailing process.
Protect your investment in CiviCRM by  becoming a Member!

seaweasel

  • Guest
Re: Database error on creating new mailing
January 17, 2008, 03:49:13 pm
Thanks Dave. It's version 1.9.11960 but I haven't come across any Resubscribe Message option in Step 2, in fact the error comes up after clicking Next in Step 1.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Database error on creating new mailing
January 18, 2008, 10:23:25 am
I think if you download the current 1.9 codebase - 1.9.12432 - that may fix this.
Protect your investment in CiviCRM by  becoming a Member!

seaweasel

  • Guest
Re: Database error on creating new mailing
January 22, 2008, 09:55:34 am
Upgrade seems to have fixed it, thanks.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Database error on creating new mailing

This forum was archived on 2017-11-26.