By Martin on Wednesday, 03 July 2019
Posted in General Issues
Replies 6
Likes 0
Views 606
Votes 0
There is missing a file - we have the same error on two installations. The error is in the popup:
"Backend" -> "Components" -> "PayPlans" -> "Subscriptions" -> "{Choose a subscription}" -> "Cancel Subscription". The following error message will be in the popup.


Warning: include(/public_html/administrator/components/com_payplans/themes/default/subscription/dialogs/cancel.subscription.php): failed to open stream: No such file or directory in /public_html/administrator/components/com_payplans/includes/themes/themes.php on line 170


Payplans: v. 4.0.8 (This is the first installed version on the site)
Hey Martin,

This is known issue and already fixed internally. This fix will be included in our upcoming release.
For now, i've already helped to fix this issue.

Please take a look again on this issue and update us if still issue persist.

Thank you for understanding !
·
Wednesday, 03 July 2019 16:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Manisha,

Thanks - that helped the problem.

If a user request a cancellation from frontend and ePay returns a error it throws a 500 error page. I have added a minimalized calltrack for the error.

The reason for the error is because there is not set a password to the API request to the ePay endpoint. I can see it is not apart of the documentation but a new parameter needs to be added: "pwd" (password).

This parameter needs to be added to all request - authorize and deletesubscription



object(Error)#551 (7) {
["message":protected]=>
string(43) "Cannot use object of type stdClass as array"
["string":"Error":private]=>
string(0) ""
["code":protected]=>
int(0)
["file":protected]=>
string(95) "/public_html/administrator/components/com_payplans/includes/logger/logger.php"
["line":protected]=>
int(195)
["trace":"Error":private]=>
array(16) {
[0]=>
array(6) {
["file"]=>
string(95) "/public_html/administrator/components/com_payplans/includes/logger/logger.php"
["line"]=>
int(43)
["function"]=>
string(4) "save"
["class"]=>
string(8) "PPLogger"
}
[1]=>
array(6) {
["file"]=>
string(89) "/public_html/administrator/components/com_payplans/includes/log/log.php"
["line"]=>
int(68)
["function"]=>
string(3) "log"
["class"]=>
string(8) "PPLogger"
}
[2]=>
array(6) {
["file"]=>
string(65) "/public_html/plugins/payplans/epay/app/epay.php"
["line"]=>
int(163)
["function"]=>
string(3) "log"
["class"]=>
string(5) "PPLog"
["type"]=>
string(2) "::"
·
Wednesday, 03 July 2019 19:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Martin,

It sounds good that your issue is resolved now.

This parameter needs to be added to all request - authorize and deletesubscription
Can you please confirm me where you read about this password parameter.
I'll check it and update you.

Thank you for understanding !
·
Thursday, 04 July 2019 11:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Can you please confirm me where you read about this password parameter.
I'll check it and update you.


If you login at epay.dk -> "API/Webservices" -> "Access", there is a note about password is mandatory for Subscriptions.

It is not mentioned in the official documentation, but I know this from previous integration we made.
·
Thursday, 04 July 2019 14:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Martin,

Thank you for sharing the information on this.
I've logged this into our issue tracker. Will update you once get fixed.

Thank you for understanding !
·
Thursday, 04 July 2019 14:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Martin,

Find attached kit of ePay payment method. I've added api password option in app configuration and updated the cancellation function to use Api password.

Please install it using joomla extension Install and check this issue again.
Update us if still issue persist.

Thank you for understanding !
·
Monday, 08 July 2019 18:00
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post