Edit/Nerw Payments causing a payments gateway list error


https://forum.kartris.com/Topic2266.aspx
Print Topic | Close Window

By thopcroft - Mon 29 Jul 2013
I get the following exception error when I try to edit a payment or create a new payment. This occurs on a new website installation where the payment gateway is set to PO_OfflinePayment

Version:2.5003
>> URL:http://109.228.16.93/store/Admin/_ModifyPayment.aspx
>> Page:
-----------------------------------------------------------------------------
>> 29/07/2013 22:46:36
>> 82.31.39.196
>> DESCRIPTION:
System.Exception: Error loading payment gateway list
at UserControls_Back_EditPayment.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
By Medz - Tue 30 Jul 2013
Hi, thanks for reporting this in. This was a confirmed bug and has now been resolved. Please check the changeset below for the fix. ->

https://kartris.codeplex.com/SourceControl/changeset/25483

Basically you need to edit 'UserControls/Back/_EditPayment.ascx.vb' and change the number "3" in lines 40 and 42 to "4".


line 40:
If UBound(arrGateway) = 3 Then
to
If UBound(arrGateway) = 4 Then


line 42:
If arrGateway(3) = "p" Then
to
If arrGateway(4) = "p" Then