Uploaded image for project: 'In-Commerce'
  1. In-Commerce
  2. MINC-67

Fatal Error on Creating Coupon

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.1.1-B2
    • Fix Version/s: 5.1.1-RC1
    • Component/s: General
    • Labels:
      None
    • Additional information:
      Hide

      NOTES by Alex:

      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 #0000845 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.

      Show
      NOTES by Alex: 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 #0000845 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.
    • Change Log Message:
      Fixes Fatal error on Creating Coupon in Admin
    • External issue ID:
      908
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      Fatal error when I try to add a coupon for Entire Order.

      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 /home/sites/betainportal/web/5.1.1-beta2/full/core/kernel/db/dbitem.php on line 1504

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                dmitry Dmitry Andrejev [Intechnic]
                Developer:
                Dmitry Andrejev [Intechnic]
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: