ufo8mydog Posted May 8, 2009 Share Posted May 8, 2009 Just a question to John from Kayako; when the fix is ready will there be an announcement on Kayako's "News and Announcements" section, and will it be rolled into the next stable version or deployed as a separate patch? 0 Quote Link to comment Share on other sites More sharing options...
Chad Posted May 8, 2009 Share Posted May 8, 2009 Just my findings so not an official solution but the issue appears to be that the kayako integration relies on a variable defined on the page to identify who is logged in rather than taking the value from the session. Try this, open modules/support/kayako/integrate.php and change: if (!empty($GLOBALS['clientsdetails']['id'])) { require_once ("./includes/clientfunctions.php"); $GLOBALS['whmcsuser'] = getclientsdetails($GLOBALS['clientsdetails']['id']); to if (!empty($_SESSION['uid'])) { require_once ("./includes/clientfunctions.php"); $GLOBALS['whmcsuser'] = getclientsdetails($_SESSION['uid']); Matt I just downloaded (again) the whmcs 4 zip file and there is no modules/support folder at all 0 Quote Link to comment Share on other sites More sharing options...
mhugo Posted May 8, 2009 Share Posted May 8, 2009 I just downloaded (again) the whmcs 4 zip file and there is no modules/support folder at all The "integrate" folder is in the kayako zip not the whmcs. 0 Quote Link to comment Share on other sites More sharing options...
Chad Posted May 8, 2009 Share Posted May 8, 2009 Ok, re-uploaded the files fresh from kayako folder (which I just downloaded too) and tried Matt's method, blank page. If I leave integrate untouch, except swiftpath my support ticket (kayako's) DOES show up but with the strange issue of name and email fields being frozen out, not able to type into these two fields. Therefore, no one can submit tickets. This is my integrate file: <?php //======================================= //################################### // Kayako Infotech Ltd. - SWIFT Framework // // Source Copyright 2001-2007 Kayako Infotech Ltd. // Unauthorized reproduction is not allowed // License Number: $%LICENSE%$ // $Author: vshoor $ ($Date: 2007/11/23 08:13:48 $) // $RCSfile: integrate.php,v $ : $Revision: 1.1 $ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // www.kayako.com //################################### //======================================= /** * ############################################### * Change the following value to the absolute path to your swift directory. * Make sure there is a trailing slash at the very end. * ############################################### */ define("SWIFTPATH", "/home/user/public_html/support/"); // ======= DO NOT CHANGE ANYTHING BELOW THIS POINT ======= define("WORKINGDIR", getcwd()); define("ISWHMCS", true); if (!empty($GLOBALS['clientsdetails']['id'])) { require_once ("./includes/clientfunctions.php"); $GLOBALS['whmcsuser'] = getclientsdetails($GLOBALS['clientsdetails']['id']); } chdir(SWIFTPATH); ob_start(); require_once (SWIFTPATH."index.php"); ob_end_flush(); chdir(WORKINGDIR); ?> 0 Quote Link to comment Share on other sites More sharing options...
Chad Posted May 8, 2009 Share Posted May 8, 2009 This is a screenshot of the name/email fields being greyed out, unable to type into them 0 Quote Link to comment Share on other sites More sharing options...
TheHostingHeroes Posted May 8, 2009 Share Posted May 8, 2009 Change: WHMCS/modules/support/kayako/integrate.php to the below, update: define("SWIFTPATH", "/home/Kayako_username/public_html/"); <?php //======================================= //################################### // Kayako Infotech Ltd. - SWIFT Framework // // Source Copyright 2001-2007 Kayako Infotech Ltd. // Unauthorized reproduction is not allowed // License Number: $%LICENSE%$ // $Author: vshoor $ ($Date: 2007/11/23 08:13:48 $) // $RCSfile: integrate.php,v $ : $Revision: 1.1 $ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // www.kayako.com //################################### //======================================= /** * ############################################### * Change the following value to the absolute path to your swift directory. * Make sure there is a trailing slash at the very end. * ############################################### */ define("SWIFTPATH", "/home/Kayako_username/public_html/"); // ======= DO NOT CHANGE ANYTHING BELOW THIS POINT ======= define("WORKINGDIR", getcwd()); define("ISWHMCS", true); if (!empty($_SESSION['uid'])) { require_once ("./includes/clientfunctions.php"); $GLOBALS['whmcsuser'] = getclientsdetails($_SESSION['uid']); } chdir(SWIFTPATH); ob_start(); require_once (SWIFTPATH."index.php"); ob_end_flush(); chdir(WORKINGDIR); ?> 0 Quote Link to comment Share on other sites More sharing options...
Tim|EVO Posted May 8, 2009 Share Posted May 8, 2009 (edited) This is my integrate file: Chad, after applying the fix look carefully at the integrate.php file - find the line that says: define("SWIFTPATH", "/home/user/public_html/support/"); Change the path to the correct path for Kayako.. If you don't then you'll get a blank screen.. Edited May 8, 2009 by Tim|EVO 0 Quote Link to comment Share on other sites More sharing options...
Chad Posted May 8, 2009 Share Posted May 8, 2009 Chad, after applying the fix look carefully at the integrate.php file - find the line that says: define("SWIFTPATH", "/home/user/public_html/support/"); Change the path to the correct path for Kayako.. If you don't then you'll get a blank screen.. That is the correct path to my kayako folder, its called "support" and 'user' is just there for obvious security reasons, but I had my actual username there. 0 Quote Link to comment Share on other sites More sharing options...
Chad Posted May 8, 2009 Share Posted May 8, 2009 Change: WHMCS/modules/support/kayako/integrate.php to the below, update: define("SWIFTPATH", "/home/Kayako_username/public_html/"); <?php //======================================= //################################### // Kayako Infotech Ltd. - SWIFT Framework // // Source Copyright 2001-2007 Kayako Infotech Ltd. // Unauthorized reproduction is not allowed // License Number: $%LICENSE%$ // $Author: vshoor $ ($Date: 2007/11/23 08:13:48 $) // $RCSfile: integrate.php,v $ : $Revision: 1.1 $ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // www.kayako.com //################################### //======================================= /** * ############################################### * Change the following value to the absolute path to your swift directory. * Make sure there is a trailing slash at the very end. * ############################################### */ define("SWIFTPATH", "/home/Kayako_username/public_html/"); // ======= DO NOT CHANGE ANYTHING BELOW THIS POINT ======= define("WORKINGDIR", getcwd()); define("ISWHMCS", true); if (!empty($_SESSION['uid'])) { require_once ("./includes/clientfunctions.php"); $GLOBALS['whmcsuser'] = getclientsdetails($_SESSION['uid']); } chdir(SWIFTPATH); ob_start(); require_once (SWIFTPATH."index.php"); ob_end_flush(); chdir(WORKINGDIR); ?> That works thank you 0 Quote Link to comment Share on other sites More sharing options...
TheHostingHeroes Posted May 8, 2009 Share Posted May 8, 2009 Great, the one you pasted earlier did not include the new code matt said to change note they is still some bugs i posted earlier that kayako will need to fix. 0 Quote Link to comment Share on other sites More sharing options...
John Haugeland at Kayako Posted May 8, 2009 Share Posted May 8, 2009 Just a question to John from Kayako; when the fix is ready will there be an announcement on Kayako's "News and Announcements" section, and will it be rolled into the next stable version or deployed as a separate patch? One would expect all three. The patch would go out for people's immediate needs, the long term fix would go out in next stable, and Jamie will notify people, which probably means at least the forums and maybe several other ways too (communications aren't my job, not really sure what the avant garde is.) The patch will go out as soon as Kayako is done checking it; the new version is a bit off, because we're in the middle of making some significant upgrades to characterset translation and some other internal details, and it's really not a good time to be pushing new code out (we need to do a code review and a testing phase first.) No, I won't comment on how long until a new version; I don't know, and the decision doesn't belong to me. Sorry. 0 Quote Link to comment Share on other sites More sharing options...
LicenseChef Posted May 8, 2009 Share Posted May 8, 2009 Anybody have the problem that the departments aren't showing up after applying that fix ? checked, all the departments have assigned to the whmcs login share 0 Quote Link to comment Share on other sites More sharing options...
TheHostingHeroes Posted May 8, 2009 Share Posted May 8, 2009 Anybody have the problem that the departments aren't showing up after applying that fix ? checked, all the departments have assigned to the whmcs login share Hi, does any of the other options work ie downloads integration? 0 Quote Link to comment Share on other sites More sharing options...
John Haugeland at Kayako Posted May 8, 2009 Share Posted May 8, 2009 Matt's fix is confirmed correct, no surprises there. To those who have already installed Matt's fix, you're done, and there's nothing more to see here. To those who haven't installed Matt's fix, you may use his steps if you find them convenient, or you may download a patch from us; they're literally the same thing. Our patch is distributed here: http://forums.kayako.com/f56/updated-integration-whmcs-v4-22372/ The next stable release of our product will include this fix, and should be around shortly, along with many other improvements. This patch is in CVS (should be in customer CVS tomorrow after the nightly build), but CVS is the developer's repo and has much untested code in it, so we strongly recommend against using it. We at Kayako appreciate Matt's quick response to this matter. 0 Quote Link to comment Share on other sites More sharing options...
LicenseChef Posted May 8, 2009 Share Posted May 8, 2009 Hi, does any of the other options work ie downloads integration? No, the announcement/knowledge page also doesn't work. 0 Quote Link to comment Share on other sites More sharing options...
XN-Matt Posted May 15, 2009 Share Posted May 15, 2009 I'm getting this strange error on the Kayako side of things now... Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /home/WHMCSuser/public_html/includes/hookfunctions.php on line 0 0 Quote Link to comment Share on other sites More sharing options...
XN-Matt Posted May 15, 2009 Share Posted May 15, 2009 No, the announcement/knowledge page also doesn't work. Knowledge base works perfectly here. 0 Quote Link to comment Share on other sites More sharing options...
jack10k Posted May 16, 2009 Share Posted May 16, 2009 Everything works except that it opens in a page where the only way to get back is by clicking the browser back button. Also the open tickets do not show in the home page. Any ideas?? Thank you 0 Quote Link to comment Share on other sites More sharing options...
XN-Matt Posted May 16, 2009 Share Posted May 16, 2009 Everything works except that it opens in a page where the only way to get back is by clicking the browser back button. Also the open tickets do not show in the home page. Any ideas?? Thank you Open tickets have never shown on the front page (from memory). You'll have to code something yourself to do that.. It's fairly easy. 0 Quote Link to comment Share on other sites More sharing options...
jack10k Posted May 16, 2009 Share Posted May 16, 2009 Sorry, What I meant was on the client main page. This was working on the previous version where it will show the open tickets. Any help with the other issue? 0 Quote Link to comment Share on other sites More sharing options...
jack10k Posted May 20, 2009 Share Posted May 20, 2009 anyone go a fix for this yet? 0 Quote Link to comment Share on other sites More sharing options...
TheHostingHeroes Posted May 20, 2009 Share Posted May 20, 2009 nope, all waiting on kayako getting back to us. 0 Quote Link to comment Share on other sites More sharing options...
webbytech Posted May 26, 2009 Share Posted May 26, 2009 All i get is blank pages on submitticket.php 0 Quote Link to comment Share on other sites More sharing options...
XN-Matt Posted May 26, 2009 Share Posted May 26, 2009 Are you running suPHP? or DSO? 0 Quote Link to comment Share on other sites More sharing options...
Chad Posted May 26, 2009 Share Posted May 26, 2009 Open tickets have never shown on the front page (from memory). You'll have to code something yourself to do that.. It's fairly easy. Anyone know how to do this? 0 Quote Link to comment 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.