gogetssl / whmcs-addon

GOGETSSL WHMCS SSL Addon
MIT License
38 stars 22 forks source link

View certificate in admin not working #77

Closed charliehu closed 5 years ago

charliehu commented 5 years ago

Used version: v2.2.3

In the admin area, if i click to the View Certificate button, the popup display a Loading text for few seconds, but after the box will be empty (please chekc the attached screenshot). In client area the certificate was display correctly.

screencapture-my-mikrovps-net-fonok-clientsservices-php-2019-10-17-12_54_00

I i enable Module Debug log, i see module load certificate details via API (/orders/status/ID) which include the certificate properly.

In Firebug, i see the request, and i see server send proper response in JSON array:

{"success":1,"msg":"Details","data":{"ca":"-----BEGIN CERTIFICATE-----\nMIIGEzCCA\/ugAwIBAgIQfVtRJrR2uhHbdBYLvFMNpzANBgkqhkiG9w0BAQwFADCB\niDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0pl\ncnNleSBDaXR5MR4wHAYDVQQKExVUaGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNV\nBAMTJVVTRVJUcnVzdCBSU0EgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTgx\nMTAyMDAwMDAwWhcNMzAxMjMxMjM1OTU5WjCBjzELMAkGA1UEBhMCR0IxGzAZBgNV\nBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEYMBYGA1UE\nChMPU2VjdGlnbyBMaW1pdGVkMTcwNQYDVQQDEy5TZWN0aWdvIFJTQSBEb21haW4g\nVmFsaWRhdGlvbiBTZWN1cmUgU2VydmVyIENBMIIBIjANBgkqhkiG9w0BAQEFAAOC\nAQ8AMIIBCgKCAQEA1nMz1tc8INAA0hdFuNY+B6I\/x0HuMjDJsGz99J\/LEpgPLT+N\nTQEMgg8Xf2Iu6bhIefsWg06t1zIlk7cHv7lQP6lMw0Aq6Tn\/2YHKHxYyQdqAJrkj\neocgHuP\/IJo8lURvh3UGkEC0MpMWCRAIIz7S3YcPb11RFGoKacVPAXJpz9OT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Bv2FAY7qCUkDrvMKnXduXBBP3zQ\nYzYhBx9G\/2CkkeFnvN4ffhkUyWNnkepnB2u0j4vAbkN9w6GAbLIevFOFfdyQoaS8\nLe9Gclc1Bb+7RrtubTeZtv8jkpHGbkD4jylW6l\/VXxRTrPBPYer3IsynVgviuDQf\nJtl7GQVoP7o81DgGotPmjw7jtHFtQELFhLRAlSv0ZaBIefYdgWOWnU914Ph85I6p\n0fKtirOMxyHNwu8=\n-----END CERTIFICATE-----\n"}}

We using the original WHMCS admin and client area six template.

In Firebug console i not see any Javascript or similar error.

vlad-evg commented 5 years ago

Thank you, we already checking that, same issue with #75

vlad-evg commented 5 years ago

The new release has a fix for that https://github.com/gogetssl/whmcs-addon/releases/tag/v2.2.5