Softaculous


Topic : Soft_Install (installapi.php): Javascript library installs do not return "installed"


Posted By: drichert on May 17, 2012, 7:54 pm
Softaculous v4.0.7

After installing a JS library using the Soft_Instal API class (from installapi.php), the install function does not return "installed"; it returns full HTML for the selected library description page from the normal Softaculous web interface.

Example code:

PHP Code

 $new = new Soft_Install();                                                                                                                                                 
$new->login $url;                                                                                                                                                        
$new->data["softdomain"] = "test-domain.com";                                                                                                                        
$new->data["softdirectory"] = "mochi";                                                                                                                  
$res $new->install(157); // MochiKit  

var_dump($res); //=> string(29786) "<!DOCTYPE html PUBLIC "-//W3C//DTD XH... 



Posted By: drichert on May 17, 2012, 7:55 pm | Post: 1
Forgot to mention that the library *is* installed, the API function just isn't returning the expected success response.

Posted By: drichert on May 17, 2012, 7:59 pm | Post: 2
Another thing I forgot to mention: serialized PHP containing errors is not returned on what I assume to be failure. If I don't give a value for "softdomain" or "softdirectory", I still get the full description page HTML in response.

Posted By: drichert on May 18, 2012, 2:29 pm | Post: 3
I also noticed that the js library will only install if the "act" param is set to "software", but not when it's set to "js". Both cases still return full HTML of the description page.

Posted By: Brijesh on May 26, 2012, 10:02 am | Post: 4
Hi,

Sir this issue was resolved in Softaculous 4.1.0

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.