namecheap / ssl-whmcs

Namecheap.com SSL WHMCS Module
44 stars 35 forks source link

Cannot activate module on WHMCS 8.7 #85

Open tdtmusic2 opened 1 year ago

tdtmusic2 commented 1 year ago

Hello. We are having an issue with the activation of the module in WHMCS. One we click on the activate button, we get the error bellow:

Oops!
Something went wrong and we couldn't process your request.

Please go back to the previous page and try again.

For additional assistance, please reference the [WHMCS TroubleShooting Guide »](https://docs.whmcs.com/Troubleshooting_Guide)

TypeError: mysqli_num_rows(): Argument #1 ($result) must be of type mysqli_result, string given in /home/xxxx/public_html/billing/modules/servers/namecheapssl/namecheapapi.php:375
Stack trace:
#0 /home/xxxxx/public_html/billing/modules/servers/namecheapssl/namecheapapi.php(375): mysqli_num_rows('SELECT id FROM ...')
#1 /home/xxxxxx/public_html/billing/modules/addons/namecheap_ssl/namecheap_ssl.php(45): NcSql::numRows('SELECT id FROM ...')
#2 /home/xxxxxx/public_html/billing/admin/configaddonmods.php(0): namecheap_ssl_activate()
#3 {main}
jas8522 commented 11 months ago

Try my fork of the module here: https://github.com/websavers/WHMCS-Namecheap-SSL

I just submit a commit that should fix this. Let me know the results.