Jump to content

DEV - deleted nexus gateway


Go to solution Solved by Daniel F,

Recommended Posts

Hello,
when I delete nexus gateway I'm getting this error:


 

Whoops\Exception\ErrorException: Undefined index: gatewayKey (8)
#0 C:\wamp\www\45\applications\nexus\sources\Gateway\Gateway.php(102): Whoops\Run->handleError(8, 'Undefined index...', 'C:\\wamp\\www\\45\\...', 102, Array)
#1 C:\wamp\www\45\system\Patterns\ActiveRecord.php(148): IPS\nexus\_Gateway::constructFromData(Array)
#2 C:\wamp\www\45\applications\nexus\sources\Transaction\Transaction.php(116): IPS\Patterns\_ActiveRecord::load(7)
#3 C:\wamp\www\45\system\Helpers\Table\Db.php(432): IPS\nexus\_Transaction::IPS\nexus\{closure}(7, Array)
#4 C:\wamp\www\45\system\Helpers\Table\Table.php(489): IPS\Helpers\Table\_Db->getRows(Array)
#5 C:\wamp\www\45\applications\nexus\modules\admin\payments\transactions.php(71): IPS\Helpers\Table\_Table->__toString()
#6 C:\wamp\www\45\system\Dispatcher\Controller.php(101): IPS\nexus\modules\admin\payments\_transactions->manage()
#7 C:\wamp\www\45\applications\nexus\modules\admin\payments\transactions.php(40): IPS\Dispatcher\_Controller->execute()
#8 C:\wamp\www\45\system\Dispatcher\Dispatcher.php(152): IPS\nexus\modules\admin\payments\_transactions->execute()
#9 C:\wamp\www\45\admin\index.php(14): IPS\_Dispatcher->run()
#10 {main}



To avoid it I need to edit and change it:
 

't_method' => function( $val )
{
if ( $val )
{
try
{
return \IPS\nexus\Gateway::load( $val )->_title;
}
catch ( \OutOfRangeException $e )
{
return \IPS\Member::loggedIn()->language()->addToStack('gateway_deleted');
}
}
else
{
return \IPS\Member::loggedIn()->language()->addToStack('account_credit');
}
},

To:
 

't_method' => function( $val )
{
if ( $val )
{
try
{
return \IPS\nexus\Gateway::load( $val )->_title;
}
catch ( \ErrorException $e )
{
return \IPS\Member::loggedIn()->language()->addToStack('gateway_deleted');
}
}
else
{
return \IPS\Member::loggedIn()->language()->addToStack('account_credit');
}
},





In nexus/sources/Transaction/Transaction.php


It's a bug or I'm doing something wrong?

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...