dbradbury Posted April 15, 2010 Share Posted April 15, 2010 i got a gallery installed and i got that pop up, what does it mean.. it says it need it to be true Invalid cURL response. We expected 'true' from the url : http://site.com/dfg/api/rest/test_curl but i go to that address and nothing, but if i add a index.php in there, i get true: http://site.com/dfg/index.php/api/rest/test_curl tried to change install.php and config.php and .htaccess files, but nothing seeing if anyone here has seen this before..? Quote Link to comment https://forums.phpfreaks.com/topic/198586-invalid-curl-response-not-sure-if-it-belongs-here/ Share on other sites More sharing options...
ChemicalBliss Posted April 15, 2010 Share Posted April 15, 2010 It works if you put index.php in their because of their particular mod-rewrite conditions and index page setup. I would image it is not supposed to be 'site.com'. You need to find instructions on setting up the script, or at least that part, to tell you where it should in fact point too. If you just want it to be true all the time (i dont know what it does though), just make those folders on your site and put your site name on there, -cb- Quote Link to comment https://forums.phpfreaks.com/topic/198586-invalid-curl-response-not-sure-if-it-belongs-here/#findComment-1042129 Share on other sites More sharing options...
dbradbury Posted April 19, 2010 Author Share Posted April 19, 2010 yeah its not site.com, if my own, but its a domain, like site.host56.com.. does that matter? Quote Link to comment https://forums.phpfreaks.com/topic/198586-invalid-curl-response-not-sure-if-it-belongs-here/#findComment-1044573 Share on other sites More sharing options...
ChemicalBliss Posted April 19, 2010 Share Posted April 19, 2010 I dont know. i dont know how the script is supposed to work, contact the script authors/support. -cb- Quote Link to comment https://forums.phpfreaks.com/topic/198586-invalid-curl-response-not-sure-if-it-belongs-here/#findComment-1044748 Share on other sites More sharing options...
dbradbury Posted April 19, 2010 Author Share Posted April 19, 2010 ive tried 2 different things and neither have worked on it ahwell.. and there is no way to contact the creator lol, well not that i can see lol Quote Link to comment https://forums.phpfreaks.com/topic/198586-invalid-curl-response-not-sure-if-it-belongs-here/#findComment-1044754 Share on other sites More sharing options...
dbradbury Posted April 19, 2010 Author Share Posted April 19, 2010 this is the curl parts used in the install.php file, ive tried asking the host, but they say ask the person who made, and hes unreachable, so can anyone see anything wrong with this? that would make the cURL be false..? // CLEAN URLS. if(extension_loaded('curl')){ $curl_url = 'http://'.$_SERVER['SERVER_NAME'].substr($_SERVER['SCRIPT_NAME'],0,strpos($_SERVER['SCRIPT_NAME'],'/index.php')). '/api/rest/test_curl'; $clean_url_check = curl_init($curl_url); curl_setopt($clean_url_check,CURLOPT_RETURNTRANSFER,true); $clean_url_check_resp = curl_exec($clean_url_check); if (curl_errno($clean_url_check)>0){ $checks[] = array('A curl error occured while checking for clean urls.',false,"URL : $curl_url<br/>cURL message : ". curl_error($clean_url_check)); }else{ if($clean_url_check_resp == 'true'){ $checks[] = array('Clean urls\' have been enabled.',true,''); }else{ $checks[] = array('Invalid cURL response.',false,"We expected 'true' from the url : $curl_url"); } } }else{ $checks[] = array('Unable to check clean urls, as curl is disabled.',false,'Please enable cURL extension first.'); } Quote Link to comment https://forums.phpfreaks.com/topic/198586-invalid-curl-response-not-sure-if-it-belongs-here/#findComment-1044777 Share on other sites More sharing options...
ChemicalBliss Posted April 20, 2010 Share Posted April 20, 2010 http://www.dezinerfolio.com/forum/discussion-30 If you know that mod-rewrite is working on your server remove the code, some servers apparently block curl requests from the same box. // CLEAN URLS. if(!extension_loaded('curl')){ $checks[] = array('Unable to check clean urls, as curl is disabled.',false,'Please enable cURL extension first.'); } Replace the code with that. -cb- Quote Link to comment https://forums.phpfreaks.com/topic/198586-invalid-curl-response-not-sure-if-it-belongs-here/#findComment-1044918 Share on other sites More sharing options...
dbradbury Posted April 20, 2010 Author Share Posted April 20, 2010 did that, then it said they werent enabled.. but i checked.. but im going to ask my host now.. Quote Link to comment https://forums.phpfreaks.com/topic/198586-invalid-curl-response-not-sure-if-it-belongs-here/#findComment-1045187 Share on other sites More sharing options...
dbradbury Posted April 20, 2010 Author Share Posted April 20, 2010 right.. cURL and mod_rewrite are enabled.. but they user virtual, so i'll have to use RewriteBase, which i did.. but still nothing, and as i thought i may have screwed something up, i redid it all, i redownloaded it and such, so all thats now different to the download files are the .htaccess file is 'RewriteBase /gallery' is the first line in it.. and it still says about there being an invalid cURL response :s so confusing... Quote Link to comment https://forums.phpfreaks.com/topic/198586-invalid-curl-response-not-sure-if-it-belongs-here/#findComment-1045469 Share on other sites More sharing options...
gauravcreations Posted July 25, 2011 Share Posted July 25, 2011 there is a solution given here http://www.cafeinks.com/archives/179 Quote Link to comment https://forums.phpfreaks.com/topic/198586-invalid-curl-response-not-sure-if-it-belongs-here/#findComment-1246718 Share on other sites More sharing options...
LeadingWebDev Posted July 25, 2011 Share Posted July 25, 2011 This does not following redirect, htaccess should redirect u to index.php in this directory. However htaccess maybe returns u the http 302 or 301, you should setopt follow location. try putting curl_setopt($clean_url_check, CURLOPT_FOLLOWLOCATION, TRUE); to debug the response u receive from server, send him POST request and echo result, rather than sending GET. HTH Quote Link to comment https://forums.phpfreaks.com/topic/198586-invalid-curl-response-not-sure-if-it-belongs-here/#findComment-1246724 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.