Post by Silencer » Thu Jul 21, 2022 8:57 pm

I enabled Secure Trading Payment Pages payment plugin on my OC 2.1.0.1 and set it up like provider requested and I made order of some item in my shop, made test payment and now when I go to view order (in administration) I get white page with this error:
Fatal error: Call to undefined method ControllerPaymentSecureTradingPp::render() in /home/test/admin/controller/payment/securetrading_pp.php on line 340
Anyone knows why this happens?

Newbie

Posts

Joined
Sun Feb 05, 2017 8:25 pm

Post by Silencer » Thu Jul 21, 2022 9:15 pm

While I am searching for solution I noticed this could be because that line is used for 1.5* not for 2.* - if that is true, why is than included in opencart-2.1.0.1 installation files (I downloaded and checked if there is the same and it is).

Well for now I "solved" this by changing line from:

Code: Select all

$this->response->setOutput($this->render());
to

Code: Select all

$this->response->setOutput($this->load->view('payment/securetrading_pp_order.tpl', $data));
I don't know if this is right or not, but at least that way I don't get error and I see order details, but for some reason I don't see this template at that order?

Newbie

Posts

Joined
Sun Feb 05, 2017 8:25 pm

Post by ADD Creative » Thu Jul 21, 2022 10:34 pm

It's a bug that looks like was fixed. https://github.com/opencart/opencart/co ... 2bd12d5430

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by Silencer » Thu Jul 21, 2022 11:29 pm

Thank you ADD Creative. I guess it was done only for 2.2, but not for 2.1.

I changed line now to:

Code: Select all

return $this->load->view('payment/securetrading_pp_order.tpl', $data);
And data is shown as it was supposed to.

But ware there any changed made also for other files for securetrading_pp plugin, because for some reason status is not changed to "Payed" after payment is made and a few other problems happen for me at this plugin?

Newbie

Posts

Joined
Sun Feb 05, 2017 8:25 pm

Post by ADD Creative » Fri Jul 22, 2022 1:40 am

I don't know about 2.2, but there looks to have been a few updated over the years.

https://github.com/opencart/opencart/se ... pe=commits
https://github.com/opencart/opencart/se ... ype=issues

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom
Who is online

Users browsing this forum: No registered users and 49 guests