Welcome Guest. Please Login or Register  


You are here: Index > Softaculous Auto Installer > General Support > Topic : Debugging an custom script



Threaded Mode | Print  

 Debugging an custom script, Debugging an custom script (3 Replies, Read 2718 times)
toddhgardner
Group: Member
Post Group: Newbie
Posts: 5
Status:
Hello,

I am working on a custom script that automatically installs themes into wordpress. I almost have it working, but I am getting some unknown error on the last step.

Is there a "debugging mode" in softaculous, or a location that the steps are logged to?

Thanks!
Todd
IP: --   

Debugging an custom script
toddhgardner
Group: Member
Post Group: Newbie
Posts: 5
Status:
Redefining the question-- I found a way to debug the method by inserting

PHP Code

 error_log("Step 1"1,"email@address.com"); 



at several steps in the code. The problem is around the initialization of CURL:

PHP Code

 error_log("Started Activation"1,"email@address.com");
$ch curl_init();
error_log("Initialized"1,"email@address.com");

curl_setopt($chCURLOPT_URL"http://myurl/file.php");
curl_setopt($chCURLOPT_HEADER0);
error_log("Ready to Go!"1,"email@address.com");

curl_exec($ch);
curl_close($ch);
error_log("All Done!"1,"email@address.com"); 



The script is failing on
PHP Code

 $ch curl_init(); 

but I can't figure out why.

Any Ideas?
IP: --   

Debugging an custom script
alons
Group: Administrator
Post Group: Super Member
Posts: 2280
Status:
Hi,

Without knowing the error we cant help you.

Regards,
Alons

-----------------------
For immediate support please email us at our Support email address. PMs sent to any Softaculous Team member or posting in the forums is not the official way to get support.

Virtualizor - The Next Generation VPS Panel
Webuzo - It is Softaculous Standalone for Enterprises, SMB, Developers. Deploy it on Dedicated Servers, VPS, Virtual Appliances or the Cloud
Pinguzo - Server and Domain Monitoring tool
PopularFX - Marketplace of WordPress, Drupal, Joomla, Bootstrap themes
Remote Installer - Use Softaculous over FTP/FTPS/SFTP
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is May 14, 2024, 4:03 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:0.025