Problems installing plugin

I am trying to install the dashboard on my site gend2.sytbiz.com. I am getting this error message:

Your server had a problem connecting to WPMU DEV: "cURL error 6: Couldn't resolve host 'premium.wpmudev.org'". Please try again.

If this problem continues, please contact your host with this error message and ask:

"Is php on my server properly configured to be able to contact https://premium.wpmudev.org/api/dashboard/v1/ with a POST HTTP request via fsockopen or CURL?"

I already contacted my host and they said that they do not see a problem on their end and suggested I contact support here instead.

  • James Morris

    Hello Lily,

    I hope you are well today.

    In order to confirm that the issue is with our server or with the cURL configuration on your server, would you please copy the following code and upload it to a file named something like curltest.php on your server? This will run a quick test to see if your server can connect to both our server and google.com using curl.

    <?php
    
           if (isDEVAvailible('http://premium.wpmudev.org'))
           {
                   echo "<h1>premium.wpmudev.org is Up and running!</h1>";
           }
           else
           {
                   echo "<h1>Woops, nothing found at premium.wpmudev.org.</h1>";
           }
    
           //returns true, if domain is availible, false if not
           function isDEVAvailible($domain)
           {
                   //check, if a valid url is provided
                   if(!filter_var($domain, FILTER_VALIDATE_URL))
                   {
                           return false;
                   }
    
                   //initialize curl
                   $curlInit = curl_init($domain);
                   curl_setopt($curlInit,CURLOPT_CONNECTTIMEOUT,10);
                   curl_setopt($curlInit,CURLOPT_HEADER,true);
                   curl_setopt($curlInit,CURLOPT_NOBODY,true);
                   curl_setopt($curlInit,CURLOPT_RETURNTRANSFER,true);
    
                   //get answer
                   $response = curl_exec($curlInit);
    
                   curl_close($curlInit);
    
                   if ($response) return true;
    
                   return false;
           }
           if (isGoogleAvailible('http://google.com'))
           {
                   echo "<h1>google.com is Up and running!</h1>";
           }
           else
           {
                   echo "<h1>Woops, nothing found at google.com.</h1>";
           }
    
           //returns true, if domain is availible, false if not
           function isGoogleAvailible($domain)
           {
                   //check, if a valid url is provided
                   if(!filter_var($domain, FILTER_VALIDATE_URL))
                   {
                           return false;
                   }
    
                   //initialize curl
                   $curlInit = curl_init($domain);
                   curl_setopt($curlInit,CURLOPT_CONNECTTIMEOUT,10);
                   curl_setopt($curlInit,CURLOPT_HEADER,true);
                   curl_setopt($curlInit,CURLOPT_NOBODY,true);
                   curl_setopt($curlInit,CURLOPT_RETURNTRANSFER,true);
    
                   //get answer
                   $response = curl_exec($curlInit);
    
                   curl_close($curlInit);
    
                   if ($response) return true;
    
                   return false;
           }

    I look forward to seeing the results of your tests.

    Best regards,

    James Morris

  • James Morris

    Hello Lily,

    I apologize for the delay in responding here.

    If you go to the following link, you can download the above script as a .zip file. Once it's downloaded to your computer, extract the file and upload it to your website to the root of the website (public_html if that is where your site is hosted). You can then call the file from your web browser by going to http://yoursite.com/curltest.php and you will get the output of the test as text on the screen. Please paste the test you see there back here.

    Download URL: https://gist.github.com/JRMorris77/2d917b63eb328d17a262f986748fe053

    I hope this clarifies a bit.

    Best regards,

    James Morris