In-Portal Issue Tracker

Welcome to the In-Portal Open Source CMS Issue Tracker! This is a central management / tracking tool for all types of tasks / issues / bugs for the In-Portal Project. Before reporting any issues, please make sure to read the Guide into Issue Tracker and How to Properly Test and Report Bugs!

Viewing Issue Simple Details Jump to Notes ] Wiki ] View Advanced ] Issue History ] Print ]
ID Category Type Reproducibility Date Submitted Last Update
0000908 [In-Portal CMS] Data Management bug report always 2010-10-28 10:36 2011-03-30 09:58
Reporter Dmitry View Status public Project Name In-Commerce
Assigned To alex Developer
Priority normal Resolution fixed Fixed in Version 5.1.1-RC1
Status closed Product Version 5.1.1-B2 Target Version 5.1.1
Time EstimateNo estimate
Summary 0000908: Fatal Error on Creating Coupon
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
Additional Information 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.
Tags No tags attached.
Change Log Message Fixes Fatal error on Creating Coupon in Admin
Estimate Points 0
Attached Files patch file icon Fatal-Error-on-Creating-Coupon.patch [^] (10,137 bytes) 2010-11-01 11:44 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
related to 0000917closed (5.1.1)alex In-Commerce Fatal Error on Creating Discount and Affiliate Plan Items 
child of 0000845closed (5.1.1)Dmitry In-Portal CMS Revising usage of NULL columns 

-  Notes
User avatar (0002936)
Dmitry (manager)
2010-11-01 11:45

Please test the patch:

1. Specified as Default NULL in Weight field.
2. Reworked the whole config so it complies with our Unit Config formatting rules.
User avatar (0002944)
alex (manager)
2010-11-01 15:33
edited on: 2010-11-01 15:33

Tested, but you've made too aggressive changes to structure of changed unit config file. For example order of unit config options and order of field declaration options was changed a lot, so it even remotely wasn't matching common order, used in other unit configs and on page.

User avatar (0002945)
alex (manager)
2010-11-01 15:34

Fix committed to 5.1.x branch. Commit Message:

1. Fixes 0000908: Fatal Error on Creating Coupon
2. Commit on behalf of Dmitry
User avatar (0003387)
Dmitry (manager)
2011-03-30 09:58

Closing, since 5.1.1 release has been released.

- Related Changesets
Modules :: In-Commerce: 5.1.x r14028
Timestamp: 2010-11-01 15:34:23
Author: alex
Details ] Diff ]
1. Fixes 0000908: Fatal Error on Creating Coupon
2. Commit on behalf of Dmitry
mod - /w/in-commerce/branches/5.1.x/units/coupon_items/coupon_items_config.php Diff ] File ]

- Issue History
Date Modified Username Field Change
2011-03-30 09:58 Dmitry Note Added: 0003387
2011-03-30 09:58 Dmitry Status resolved => closed
2010-11-02 14:15 Dmitry Relationship added related to 0000917
2010-11-02 14:05 Dmitry Change Log Message Fixes error Fatal error on Creating Coupon => Fixes Fatal error on Creating Coupon in Admin
2010-11-01 15:34 alex Note Added: 0002945
2010-11-01 15:34 alex Status reviewed and tested => resolved
2010-11-01 15:34 alex Fixed in Version => 5.1.1-RC1
2010-11-01 15:34 alex Resolution open => fixed
2010-11-01 15:34 alex Assigned To Dmitry => alex
2010-11-01 15:34 alex Changeset attached 5.1.x r14028
2010-11-01 15:33 alex Note Edited: 0002944 View Revisions
2010-11-01 15:33 alex Note Edited: 0002944 View Revisions
2010-11-01 15:33 alex Note Added: 0002944
2010-11-01 15:33 alex Assigned To alex => Dmitry
2010-11-01 15:33 alex Status needs testing => reviewed and tested
2010-11-01 11:45 Dmitry Note Added: 0002936
2010-11-01 11:45 Dmitry Assigned To Dmitry => alex
2010-11-01 11:45 Dmitry Developer => Dmitry
2010-11-01 11:45 Dmitry Status needs work => needs testing
2010-11-01 11:44 Dmitry File Added: Fatal-Error-on-Creating-Coupon.patch
2010-10-28 10:38 Dmitry Assigned To => Dmitry
2010-10-28 10:38 Dmitry Status active => needs work
2010-10-28 10:36 Dmitry Relationship added child of 0000845
2010-10-28 10:36 Dmitry New Issue
2010-10-28 10:36 Dmitry Reference =>
2010-10-28 10:36 Dmitry Change Log Message => Fixes error Fatal error on Creating Coupon

Web Development by Intechnic
In-Portal Open Source CMS
In-Portal Open Source CMS
Copyright © 2000 - 2009 MantisBT Group

Powered by Mantis Bugtracker