Child pages
  • [in-commerce] Fatal Error on Creating Coupon [5.1.1-B2]
Skip to end of metadata
Go to start of metadata

Imported From: http://groups.google.com/group/in-portal-bugs/browse_thread/thread/4032a058c92f6c63#

Hi All,

I am getting a fatal error when I try to add a coupon for Entire Order. It's In-Portal 5.1.1 Beta 2.

This is the error and appears when on the Items tab when adding coupon (as root user):

Fatal Error: Query method is called in class kDBItem for prefix coupi in .../core/kernel/db/dbitem.php on line 1504

Anyone else can replicate this?

Related Tasks

MINC-67 - Getting issue details... STATUS

MINC-68 - Getting issue details... STATUS

INP-678 - Getting issue details... STATUS

2 Comments

  1. I can replicate (as admin user). After debugger report inspection several
    errors were discovered, that together resulted in error you've totally got:

       - "coupi" (coupon item) validation errors: Weight (value_out_of_range)
       - Requested ID for prefix coupi not passed

    This a bug in

    INP-678 - Getting issue details... STATUS

    task
    implementation (which was done in 5.1.1 release only), that resulted default
    value equals to *0*, while *Weight* field was also having "min_value_exc"
    option equals to *0*. Resulted in situation, that will always produce error,
    since there is way to fix it. I suppose we can set default value to NULL,
    since that Weight field is virtual.

    Since it's not a first bug because of that

    INP-678 - Getting issue details... STATUS

    task, then I propose to
    retest it again.

  2. Created a task for this:

    908: Fatal Error on Creating Coupon

    MINC-67 - Getting issue details... STATUS


    Plus reopened original one for retest other places:

    INP-678 - Getting issue details... STATUS


    DA