[In-Commerce] Fatal Error on Creating Coupon (5.1.1 Beta2)

1 view
Skip to first unread message

Dmitry A.

unread,
Oct 25, 2010, 10:51:50 AM10/25/10
to In-Portal Bugs Team
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 /home/sites/betainportal/web/5.1.1-beta2/full/core/kernel/db/
dbitem.php on line 1504

Anyone else can replicate this?


DA

Alexander Obuhovich

unread,
Oct 25, 2010, 1:25:48 PM10/25/10
to in-port...@googlegroups.com
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 http://tracker.in-portal.org/view.php?id=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.

Since it's not a first bug because of that http://tracker.in-portal.org/view.php?id=0000845 task, then I propose to retest it again.


--
You received this message because you are subscribed to the Google Groups "In-Portal Bugs Team" group.
To post to this group, send email to in-port...@googlegroups.com.
To unsubscribe from this group, send email to in-portal-bug...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/in-portal-bugs?hl=en.




--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com

Dmitry A.

unread,
Oct 28, 2010, 11:37:50 AM10/28/10
to In-Portal Bugs Team
Created a task for this:

908: Fatal Error on Creating Coupon

http://tracker.in-portal.org/view.php?id=908

Plus reopened original one for retest other places:

http://tracker.in-portal.org/view.php?id=0000845


DA

On Oct 25, 12:25 pm, Alexander Obuhovich <aik.b...@gmail.com> wrote:
> 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 inhttp://tracker.in-portal.org/view.php?id=0000845task
> 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 thathttp://tracker.in-portal.org/view.php?id=0000845task, then I propose to
> retest it again.
>
>
>
>
>
> On Mon, Oct 25, 2010 at 5:51 PM, Dmitry A. <dandre...@gmail.com> wrote:
> > 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 /home/sites/betainportal/web/5.1.1-beta2/full/core/kernel/db/
> > dbitem.php on line 1504
>
> > Anyone else can replicate this?
>
> > DA
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "In-Portal Bugs Team" group.
> > To post to this group, send email to in-port...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > in-portal-bug...@googlegroups.com<in-portal-bugs%2Bunsubscribe@go oglegroups.com>
> > .
Reply all
Reply to author
Forward
0 new messages