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

Error when credit is applied to invoice generated by UsersModule #10

Open
istzp opened this issue May 12, 2015 · 4 comments
Open

Error when credit is applied to invoice generated by UsersModule #10

istzp opened this issue May 12, 2015 · 4 comments

Comments

@istzp
Copy link

istzp commented May 12, 2015

Hello,
In our whmcs customer has some amount on credit balance. If we try to "apply credit" to invoice generated by UsersModule, we got this error on webpage:

[2015-05-11 12:38:26 346870] [MSG] setTimezone: Do not need to change default date.timezone. [2015-05-11 12:38:26 347069] [MSG] setAPIResource: Set an option for a cURL transfer ( url => "", resource => "version", data_type => "json" append_api_version => , queryString => "" ).
[2015-05-11 12:38:26 366445] [MSG] castStringToClass OnApp_Payment: call OnApp_Helper_Caster_JSON::unserialize [2015-05-11 12:38:26 366494] [MSG] Create new Object.
[2015-05-11 12:38:26 366534] [MSG] Call OnApp_Helper_Caster_JSON::serialize
[2015-05-11 12:38:26 366595] [MSG] setAPIResource: Set an option for a cURL transfer ( url => "", resource => "users/162/payments", data_type => "json" append_api_version => , queryString => "" ). [2015-05-11 12:38:26 366744] [ERROR] castResponseToClass: Can't parse

Although, we saw the error, but credit was applied. Please help us to fix this.
Thanks!

@ghost
Copy link

ghost commented May 12, 2015

@istzp
Copy link
Author

istzp commented May 13, 2015

Thank you! Yes, updating wrapper and module to latest release fixed this issue.

@istzp istzp closed this as completed May 13, 2015
@ghost
Copy link

ghost commented May 13, 2015

@istzp I guess latest release does not include fix mentioned above. Be aware.

@ghost ghost reopened this May 13, 2015
@istzp
Copy link
Author

istzp commented May 13, 2015

Hm.. I will test it on another whmcs instances. On latest whmcs 5.3.13 I don't see this error anymore (at least if I apply credit to invoice from Admin side). But if I try to Apply Credit to invoice when logged as client - I've got redirected to clientarea page without credit applied. But it cold be just whmcs or our custom template issue. I will appreciate if you could test it somewhere on your whmcs installation.
Thanks.

update: "redirection issue without credit applied" was related to our custom template.

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

1 participant