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 CiviEvent (Moderator: Yashodha Chaku) »
  • Error Code: Field 'payment_entity_id' doesn't have a default value, 1364
Pages: [1]

Author Topic: Error Code: Field 'payment_entity_id' doesn't have a default value, 1364  (Read 1726 times)

vrazbros

  • Guest
Error Code: Field 'payment_entity_id' doesn't have a default value, 1364
January 15, 2008, 04:31:06 am
I tried register to my free online event as registered user. And got this error. :(
Drupal 5.6, Mysql 5.0.25, CiviCRM 1.9

I put 1 as default value to  payment_entity_id field. And I don't have this error. But I'm not happy to make changes in database. 
Maybe something is going wrong?

Sorry. A non-recoverable error has occurred.
Database Error Code: Field 'payment_entity_id' doesn't have a default value, 1364
Return to home page.


Error Details:

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

       
Code: [Select]
=> -1
    [message] => DB Error: unknown error
    [mode] => 16
    [debug_info] => INSERT INTO civicrm_participant_payment (participant_id , payment_entity_table ) VALUES ( 27 , 'civicrm_contribution' )  [nativecode=1364 ** Field 'payment_entity_id' doesn't have a default value]
    [type] => DB_Error
    [user_info] => INSERT INTO civicrm_participant_payment (participant_id , payment_entity_table ) VALUES ( 27 , 'civicrm_contribution' )  [nativecode=1364 ** Field 'payment_entity_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_participant_payment (participant_id , payment_entity_table ) VALUES ( 27 , 'civicrm_contribution' )  [nativecode=1364 ** Field 'payment_entity_id' doesn't have a default value]"]
)
« Last Edit: January 15, 2008, 04:46:43 am by vrazbros »

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 Code: Field 'payment_entity_id' doesn't have a default value, 1364
January 15, 2008, 05:14:17 am

Can you please reproduce on demo and file an issue if so. I suspect this is a bug with CiviEvent with mysql in strict ansi mode

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

vrazbros

  • Guest
Re: Error Code: Field 'payment_entity_id' doesn't have a default value, 1364
January 15, 2008, 05:47:06 am
Quote from: Donald Lobo on January 15, 2008, 05:14:17 am

Can you please reproduce on demo and file an issue if so. I suspect this is a bug with CiviEvent with mysql in strict ansi mode

lobo


I can't reproduce it. Yes my mysql is in strict mode. And then value for payment_entity_id for all rows is 1 !
How can I fix this problem ?
« Last Edit: January 15, 2008, 10:28:58 am by vrazbros »

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Error Code: Field 'payment_entity_id' doesn't have a default value, 1364
January 15, 2008, 12:12:35 pm
I think setting the default to NULL for that column (civicrm_participant_payment.payment_entity_id) may fix the issue for strict-mode. If so, it's a reasonable work-around for 1.9. This column is eliminated in 2.0 - so it won't be a long term issue.

If your site is in production at this point - I would make a copy of the DB and site to test this out first.
Protect your investment in CiviCRM by  becoming a Member!

vrazbros

  • Guest
Re: Error Code: Field 'payment_entity_id' doesn't have a default value, 1364
January 17, 2008, 01:39:00 am
To lobo

My site is in offline. I set default to NULL for that column. But I have another problem in http://forum.civicrm.org/index.php/topic,2012.0.html
Could you help me ? I think it's about firewall. What port do I have to open?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Error Code: Field 'payment_entity_id' doesn't have a default value, 1364

This forum was archived on 2017-11-26.