Kayako logo
SupportSuite, eSupport and LiveResponse Discussion, troubleshooting and feedback related to Kayako's flagship support desk products SupportSuite, eSupport and LiveResponse.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1) Old
AndyW Offline
Member
 
Posts: 49
Join Date: Aug 2006
IRS error on upgrade to 3.11.01 - 14-09-2007, 04:20 PM

Upgraded to 3.11.01 and IRS gives error

Code:
Invalid SQL: SELECT kbarticlelinks.kbarticleid, MATCH(kbarticledata.contents) AGAINST ('asd') AS relevance FROM `kbarticledata` AS kbarticledata LEFT JOIN `kbarticlelinks` AS kbarticlelinks ON (kbarticledata.kbarticleid = kbarticlelinks.kbarticleid) LEFT JOIN `tgroupassigns` AS tgroupassigns ON (kbarticlelinks.kbcategoryid = tgroupassigns.toassignid AND tgroupassigns.type = '5') LEFT JOIN `swkbcategories` AS kbcategories ON (kbarticlelinks.kbcategoryid = kbcategories.kbcategoryid) WHERE (tgroupassigns.tgroupid = '1' OR kbarticlelinks.kbcategoryid = '0') AND MATCH(kbarticledata.contents) AGAINST('asd') LIMIT 5; (Table 'kayako.swkbcategories' doesn't exist)
Setup completed and gave message 'Your version is now up to date'

What can this be?
   
Reply With Quote
  (#2) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,956
Join Date: Aug 2006
Location: Mumbai, India
14-09-2007, 09:21 PM

Seems like the issue is with your database. The error suggest the table 'kayako.swkbcategories' no longer exist. Seems like your DB got corrupted. Restore your back up database and re-run the upgrade script. That should fix the issue.



Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support
Our Skins and Services - http://www.supportskins.com/store/
SupportSkins.com - http://www.supportskins.com/
   
Reply With Quote
  (#3) Old
AndyW Offline
Member
 
Posts: 49
Join Date: Aug 2006
15-09-2007, 02:34 AM

supportskins,

Yes I though so too, but apparently it was a table naming issue. The script wanted 'swkbcategories' while the table was available as 'kbcategories'.

Apparently tabes have been prefixed with 'sw' since version 3. But our install was working perfectly without any 'sw' prefix.

Kunal from Kayako, was kind enough to put in a fix and get it working.

Last edited by AndyW; 15-09-2007 at 05:53 AM.. Reason: correction
   
Reply With Quote
  (#4) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,956
Join Date: Aug 2006
Location: Mumbai, India
15-09-2007, 08:31 AM

Thanks for sharing that information and I am glad the issue has been fixed.



Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support
Our Skins and Services - http://www.supportskins.com/store/
SupportSkins.com - http://www.supportskins.com/
   
Reply With Quote
  (#5) Old
Eric Offline
New Member
 
Posts: 18
Join Date: Oct 2003
11-11-2007, 12:19 AM

I have just upgraded and i get this error too.

I fixed the problem myself.
This is a coding error by kayako.

You hardcoded the table prefix as "sw" in functions_irs.php

Code:
LEFT JOIN `swkbcategories` AS kbcategories
should be
Code:
LEFT JOIN `". TABLE_PREFIX ."kbcategories` AS kbcategories
   
Reply With Quote
  (#6) Old
Jamie Edwards Offline
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 5,664
Join Date: Jan 2006
Location: United Kingdom
11-11-2007, 12:44 AM

Hi Eric,

I am sorry for this; we will fix it on Monday.


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#7) Old
Jamie Edwards Offline
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 5,664
Join Date: Jan 2006
Location: United Kingdom
11-11-2007, 05:23 PM

Fixed and pushed to the CVS.


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#8) Old
ganesh.rao Offline
Member
 
ganesh.rao's Avatar
 
Posts: 32
Join Date: Sep 2007
12-11-2007, 05:36 PM

Hello,

I too have this problem. But mine is a fresh new install of the latest stable build.

Do I need to open a new ticket to get this thing fixed?

Best Regards,
Ganesh Rao


Infinite Technologies - Specializing in VPS and Dedicated Servers
Toll Free: +1 (888) WEB-5333 - Contact Us

Shared Web Hosting - Reseller Hosting - Virtual Servers (VPS) - Dedicated Servers - Colocation
   
Reply With Quote
  (#9) Old
Jamie Edwards Offline
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 5,664
Join Date: Jan 2006
Location: United Kingdom
12-11-2007, 05:39 PM

Hi Ganesh,

Are you running the latest STABLE release or the latest CVS release under Builds tab)?


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#10) Old
ganesh.rao Offline
Member
 
ganesh.rao's Avatar
 
Posts: 32
Join Date: Sep 2007
13-11-2007, 01:02 PM

Hello Jamie,

The latest STABLE release. The one that is found on https://members.kayako.net/index.php?_m=home

I am using the Zend Encoded release.

Best Regards,
Ganesh Rao


Infinite Technologies - Specializing in VPS and Dedicated Servers
Toll Free: +1 (888) WEB-5333 - Contact Us

Shared Web Hosting - Reseller Hosting - Virtual Servers (VPS) - Dedicated Servers - Colocation
   
Reply With Quote
  (#11) Old
Jamie Edwards Offline
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 5,664
Join Date: Jan 2006
Location: United Kingdom
13-11-2007, 01:09 PM

Hi Ganesh,

The fix is only available in the latest CVS build. You can either install this (backup before you do) or wait for the next stable build (coming soon).


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#12) Old
ganesh.rao Offline
Member
 
ganesh.rao's Avatar
 
Posts: 32
Join Date: Sep 2007
13-11-2007, 01:20 PM

Hello Jamie,

Is there any changelog or something I can use to know which is the file which contains the fix and only update that file instead of moving to the CVS?

I'm a kind of person who doesn't like problems at all. Stable, I will stay at all times.

You can't move me outta that.

I have a seen a help desk which fixes this problem without using the CVS. Right in the stable version, now how did they do this?

Best Regards,
Ganesh Rao


Infinite Technologies - Specializing in VPS and Dedicated Servers
Toll Free: +1 (888) WEB-5333 - Contact Us

Shared Web Hosting - Reseller Hosting - Virtual Servers (VPS) - Dedicated Servers - Colocation
   
Reply With Quote
  (#13) Old
Jamie Edwards Offline
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 5,664
Join Date: Jan 2006
Location: United Kingdom
13-11-2007, 01:25 PM

You can try and replace this file: swift/modules/knowledgebase/functions_irs.php - it is unlikely, but there may be dependancies in other files I have not found.

You can view the build logs here:

http://builds.kayako.net


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#14) Old
ganesh.rao Offline
Member
 
ganesh.rao's Avatar
 
Posts: 32
Join Date: Sep 2007
13-11-2007, 02:31 PM

Hello Jamie,

According to "Files Affected: 1" (11 Nov 2007 05:20 PM - mslaria), I guess there is no compatibility or dependencies. I'll just rename the current file (STABLE) and then upload this and check, if it works. Good, else delete the file and revert the rename.

Best Regards,
Ganesh Rao


Infinite Technologies - Specializing in VPS and Dedicated Servers
Toll Free: +1 (888) WEB-5333 - Contact Us

Shared Web Hosting - Reseller Hosting - Virtual Servers (VPS) - Dedicated Servers - Colocation
   
Reply With Quote
  (#15) Old
ganesh.rao Offline
Member
 
ganesh.rao's Avatar
 
Posts: 32
Join Date: Sep 2007
14-11-2007, 10:40 PM

Hello,

Any update to what I said in my above post? Is it true, that there is no dependencies?

Id like it if a developer could make a reply here.

Best Regards,
Ganesh Rao


Infinite Technologies - Specializing in VPS and Dedicated Servers
Toll Free: +1 (888) WEB-5333 - Contact Us

Shared Web Hosting - Reseller Hosting - Virtual Servers (VPS) - Dedicated Servers - Colocation
   
Reply With Quote
Reply

Tags
irs, upgrade

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
IRS in staffcp to work like it does in the client si Siora Wont Implement / Already Implemented 1 03-05-2007 03:53 PM
Upgrading and Rolling back an upgrade Darren Installation & Upgrading 1 13-06-2006 06:02 PM



Powered by vBulletin® Version 3.7.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Help desk software by Kayako.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48