When trying to set up centova with WHMCS, you may receive the following error. 

Error: Socket error accessing https://example.com/api.php: fopen(https://example.com/api.php) [function.fopen]: failed to open stream: no suitable wrapper could be found

This can occur due to any of the following reasons:

1) If you have disabled the allow_url_fopen option in php.ini file on WHMCS server.

Make sure that, you have set allow_url_fopen=On   in php.ini to correct this issue.

2) If you are using an https:// URL to Centova Cast, but PHP installation on the WHMCS server was developed without SSL support.PHP would want to be recompiled to fix this.

3) You have built the PHP on WHMCS server with the option of --with-curlwrappers. It is an experimental feature

that has a number of known bugs that can conflict with PHP's built-in ability to obtain remote URLs via HTTP.

Need to recompile PHP without the option --with-curlwrappers if all else fails to fix the issue.

Was this answer helpful? 0 Users Found This Useful (1 Votes)