plugin makes api calls to external website suddenly died. need to diagnose and resolve.
plugin file excerpt:
============================
// GLOBAL VAIRABLES
$show_schedule = 0; // WHEN THIS IS SET TO 1 THEN EXTERNAL CSS/JAVASCRIPT IS ADDED TO PAGE HEADER
// INCLUDE FILES
include('includes/[login to view URL]'); // LOAD ALL JAVASCRIPT AN CSS FILES FOR THE PLUGIN
include('includes/[login to view URL]'); // DEFINE THE CLASS TO ISSUE SOAP REQUESTS TO THE MINDBODY API
include('includes/[login to view URL]'); // FUNCTIONALITY TO RETRIEVE SCHEDULE DATA USING THE MINDBODY API CLASS
include('includes/[login to view URL]'); // FUNCTIONALITY TO DISPLAY THE ADELINE YOGA CLASS SCHEDULE
// THIS FUNCTION IS CALLED BY THE '[mindbody-schedule]' SHORTCODE AND DISPLAYS THE ADELINE YOGA STUDIO CLASS SCHEDULE
function display_mindbody_schedule($atts) {
global $show_schedule;
$show_schedule = 1; // SHORTCODE EXISTS IN PAGE/POST - INCLUDE EXTERNAL CSS/JAVASCRIPT FILES
==================================
API File Excerpts
===============================
<?php
ini_set("user_agent", $_SERVER['HTTP_USER_AGENT']); // API requests require a User-Agent header
// MINDBODY SITE ID
const SITE_ID = 'XXXXXXXX';
// MINDBODY SOURCE CREDENTIALS
const SOURCE_NAME = 'XXXXXXXXX';
const KEY = 'XXXXXXXXX=';
// MINDBODY USER CREDEENTIALS
const USERNAME = 'XXXXXXXXX';
const PASSWORD = 'XXXXXXXXX';
protected $client;
protected $sourceCreds = array("SourceName"=>self::SOURCE_NAME, "Password"=>self::KEY, "SiteIDs"=>array(self::SITE_ID));
protected $userCreds = array("Username"=>self::USERNAME, "Password"=>self::PASSWORD, "SiteIDs"=>array(self::SITE_ID));
// THIS FUNCTION PERFORMS A SOAP API CALL TO RETRIEVE A LIST OF CLASS SCHEDULES
function GetClasses($params = array()) {
$this->client = new SoapClient(self::CLASS_WSDL_FILE, array("soap_version"=>SOAP_1_1, 'trace'=>true));
$this->client->__setLocation("[login to view URL]");
$request = array_merge(array("SourceCredentials"=>$this->sourceCreds, "UserCredentials"=>$this->userCreds),$params);
try {
$result = $this->client->GetClasses(array("Request"=>$request));
//error_log("RESULT: " . $result);
error_log(print_r($this->client->__getLastResponse(),true));
} catch (SoapFault $s) {
error_log('ERROR:: [' . $s->faultcode . '] ' . $s->faultstring);
} catch (Exception $e) {
error_log('ERROR:: [' . $s->faultcode . '] ' . $s->faultstring);
}
return $result;
}
// THIS FUNCTION PERFORMS A SOAP API CALL TO RETRIEVE A LIST OF CLASSES
function GetClassSchedules($params = array()) {
$this->client = new SoapClient(self::CLASS_WSDL_FILE, array("soap_version"=>SOAP_1_1, 'trace'=>true));
$this->client->__setLocation("[login to view URL]");
$request = array_merge(array("SourceCredentials"=>$this->sourceCreds, "UserCredentials"=>$this->userCreds),$params);
try {
$result = $this->client->GetClassSchedules(array("Request"=>$request));
//error_log("RESULT: " . $result);
error_log(print_r($this->client->__getLastResponse(),true));
} catch (SoapFault $s) {
error_log('ERROR::: [' . $s->faultcode . '] ' . $s->faultstring);
} catch (Exception $e) {
error_log('ERROR::: ' . $e->getMessage());
}
return $result;
}
// THIS FUNCTION RETURNS THE LAST ISSUED SOAP XML RESPONSE
function getXMLResponse() {
return $this->client->__getLastResponse();
}
}
?>
Hello!
I guess you have checked on things like your subscription with the data site is still valid and other formal stuff. This patch of code you have posted can't yield any clues of what the problem is, on its own.
Anyway, I can start working on this pretty much straight away, if you're interested.
Kind Regards,
Dobri
$40 USD em 0 dia
5,0 (57 avaliações)
5,1
5,1
17 freelancers estão ofertando em média $115 USD for esse trabalho
I have read your project details, and I am interested in offering my services.
I provide 100% satisfaction guaranteed on all my work.
Milestone is required to begin; to be released when the job has been satisfactorily completed.
I estimate a 24-48hr turnaround (including weekends) on this project.
ftp details to your server will be required.
Contact me at your soonest convenience so we may get your solution delivered quickly.
Thanks,
coderXO
Hello!
With 99% completion rate, 720 successfully completed projects, and a 5.00 reputation (maximum possible, 5.0) (Yes, not even 4.99 average rating, can be verified on my profile page https://www.freelancer.com/u/rajeshsonisl.html !!)... you can never go wrong choosing me :)
I look forward to your reply.
Thanks.
Kind Regards,
Rajesh Soni
Hello Sir/Ma'am! we're expert in web development. with more than 100 successful project; we assure you the highest quality of the work. We are expert in PHP, WordPress, SQL, HTML4-HTML5/CSS2-CSS3 works, Can provide you pixel perfect, w3c validated, css based layout, cross browser compatible, neat and clean css, seo optimized and well commented codes. Plz discuss details in pmb. Thanks
Hi
I am interest your project and ready to start right now to solve this problem. I am sure that, I can complete it in a day.
hope to hear from you soon.
Thanks
Hi,
I have sound knowledge about the wordpress and its plugin structure also i have good hand on any types of third party api.
I have confidant i will get it completed
I am new here but i have sound knowledge
I hope we will meet soon
thnaks
Assurance of work being completed on time with full guarantee. Straight away would start working on the project, let me know if i could start .I will complete it in specified time frame, you can just hand over me the project and feel safe for work completed in specified time frame. Our offered services are: .XHTML .HTML .CSS .HTML5 .HTML TO WORDPRESS .PSD TO HTML .RESPONSIVE WEB .BOOTSTRAP .JAVASCRIPT .JQUARY .AJAX .PHOTOSHOP .C/C++ .PHP5/MYSQL .ORACEL9I .MYSQL .MICROSOFT SQL SERVER .MS ACCESS .SQL SCRIPT .GRAPHIES DESIGN .BANNER .PHOTOSHOP .DREAMWEAVER.