Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Elon Report Posted August 16, 2023 Posted August 16, 2023 I am running your sample code from here:  https://invisioncommunity.com/developers/rest-api I get the error in the title. Is the extension php_curl enabled for my site? Also, I am on the hosted solution, but I do not have access to email support. 😞  It would be nice to not bother all these good people with my n00b questions. Â
teraßyte Posted August 16, 2023 Posted August 16, 2023 You can check if curl is enabled by looking at phpinfo() in your ACP. Go to "Support > phpinfo" (button on the right sidebar). If cURL is enabled, it will be listed there. Or you should be able also to check by using your server's control panel (cPanel, DirectAdmin, etc.) if you have one. Elon Report 1
Elon Report Posted August 16, 2023 Author Posted August 16, 2023 25 minutes ago, teraßyte said: Go to "Support > phpinfo" (button on the right sidebar). If cURL is enabled, it will be listed there. Or you should be able also to check by using your server's control panel (cPanel, DirectAdmin, etc.) if you have one. I do not see any phpinfo button, even though I remember seeing it in the past. Here is my right sidebar.
teraßyte Posted August 16, 2023 Posted August 16, 2023 Yeah, you're missing the fourth button. I just checked and I'm still seeing it on 4.7.12, though.  The only thing that comes to mind is the IPS Cloud. Are you hosted by IPS? Maybe the option is disabled there. Elon Report 1
Elon Report Posted August 16, 2023 Author Posted August 16, 2023 3 minutes ago, teraßyte said: The only thing that comes to mind is the IPS Cloud. Are you hosted by IPS? Maybe the option is disabled there. That I am!  Appreciate your help- guess I'll have to wait for cloud help. (I tried making a phpinfo page but it just outputs the raw code)
teraßyte Posted August 16, 2023 Posted August 16, 2023 However, if you're on the Cloud, the cURL extension should be properly available. 🤨
Solution Daniel F Posted August 17, 2023 Solution Posted August 17, 2023 cURL should work on our cloud. Just to be sure we get what you're meaning => Are you trying to call this REST API from your CiC community to the same community? If yes could you share the code, or tell me the block id where you're trying this and I'll take a look at this.
Elon Report Posted August 17, 2023 Author Posted August 17, 2023 (edited) 5 hours ago, Daniel F said: cURL should work on our cloud. Just to be sure we get what you're meaning => Are you trying to call this REST API from your CiC community to the same community? Yes. The block is called PostVendor and is using your code at https://invisioncommunity.com/developers/rest-api First time using the API system. Thanks! Martin  Edited August 17, 2023 by MartinLawrence
Recommended Posts