Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with OpenCart 2.1.0.2 DotPay extension (PHP 5.6.30) #2

Open
tomadamski opened this issue Aug 30, 2017 · 2 comments
Open

Problem with OpenCart 2.1.0.2 DotPay extension (PHP 5.6.30) #2

tomadamski opened this issue Aug 30, 2017 · 2 comments
Assignees

Comments

@tomadamski
Copy link

Hi,

Could you please help with the errors below?

PHP Unknown: Argument 2 passed to ControllerPaymentDotpayNew::getAvailableChannels() must be an instance of dotpay\Agreements, null given, called in /home/xxxxxxx/public_html/catalog/controller/payment/dotpay_new.php on line 89 and defined in /home/xxxxxxx/public_html/catalog/controller/payment/dotpay_new.php on line 425

PHP Unknown: Argument 3 passed to ControllerPaymentDotpayNew::renderChannel() must be an instance of dotpay\Agreements, null given, called in /home/xxxxxxx/public_html/catalog/controller/payment/dotpay_new.php on line 444 and defined in /home/xxxxxxx/public_html/catalog/controller/payment/dotpay_new.php on line 397

@tomadamski
Copy link
Author

After changing the PHP version to 7.0 we received this errors:

Fatal error: Uncaught TypeError: Argument 2 passed to ControllerPaymentDotpayNew::getAvailableChannels() must be an instance of dotpay\Agreements, null given, called in /home/xxxxxxx/public_html/catalog/controller/payment/dotpay_new.php on line 89 and defined in /home/xxxxxxx/public_html/catalog/controller/payment/dotpay_new.php:425 Stack trace: #0 /home/xxxxxxx/public_html/catalog/controller/payment/dotpay_new.php(89): ControllerPaymentDotpayNew->getAvailableChannels(Array, NULL, Array) #1 /home/xxxxxxx/public_html/system/modification/system/engine/action.php(65): ControllerPaymentDotpayNew->index(Array) #2 /home/xxxxxxx/public_html/system/modification/system/engine/loader.php(12): Action->execute(Object(Registry)) #3 /home/xxxxxxx/public_html/catalog/controller/checkout/confirm.php(409): Loader->controller('payment/dotpay_...') #4 /home/xxxxxxx/public_html/system/modification/system/engine/action.php(65): ControllerCheckoutConfirm->index(Array) #5 /home/xxxxxxx/public_html/system/engine/front.php(34): Action->ex in /home/xxxxxxx/public_html/catalog/controller/payment/dotpay_new.php on line 425

@tbajorek tbajorek self-assigned this Sep 4, 2017
@tbajorek
Copy link
Contributor

tbajorek commented Sep 4, 2017

Please check this version:
dotpay.ocmod.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants