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

Reply
 
LinkBack (1) Thread Tools Search this Thread Display Modes
  1 links from elsewhere to this Post. Click to view. (#1) Old
Solvent LLC Offline
Member
 
Posts: 59
Join Date: Jul 2007
Invalid argument supplied for foreach() ... functions_ticketsui.php on line 840 - 02-08-2007, 07:46 AM

I get this error at the top of my Ticket manager screen sometimes:
Warning: Invalid argument supplied for foreach() in /home/solvellc/public_html/help/modules/tickets/functions_ticketsui.php on line 840

anyone know why this is happening??
it happens erratically... from time to time I get it (usually after deleting the contents of the /cache directory in my kayako folder) and then I can always "clear up" this problem by just clicking on a ticket and then clicking back to the main dashboard page.

Anyone know what it is, or If it can be fixed?
i'm running 3.11.00 STABLE

thanks
   
Reply With Quote
  (#2) Old
craigbrass Offline
Senior Member
 
Posts: 5,394
Join Date: Jun 2005
Location: Cumbria, UK
02-08-2007, 08:14 AM

Did you run the upgrade tool after you uploaded the latest files?


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#3) Old
Chris Boulton Offline
Member
 
Posts: 146
Join Date: Jun 2003
Location: Sydney, Australia
02-08-2007, 10:08 AM

Hi,

Can you open up /modules/tickets/functions_ticketsui.php

Find:
Code:
		if (count($_customfieldvalues))
Replace with:
Code:
		if (count($_customfieldvalues[$record["ticketid"]]))
Should work fine then - you can report it as a bug to Kayako too if you wish - description would be along the lines of tickets without custom fields assigned whilst there are some that do have assigned custom fields cause an error.
   
Reply With Quote
  (#4) Old
Solvent LLC Offline
Member
 
Posts: 59
Join Date: Jul 2007
02-08-2007, 03:53 PM

Wow, thanks. I will certainly report this bug! I applied your patch, So far so good.....

edit: ok I have submitted it to bugs.kayako.com as #225

Last edited by Solvent LLC; 02-08-2007 at 03:57 PM.
   
Reply With Quote
  (#5) Old
craigbrass Offline
Senior Member
 
Posts: 5,394
Join Date: Jun 2005
Location: Cumbria, UK
02-08-2007, 06:38 PM

Gotta love some of the coders on here who really do go out of their way to help people. Nice job Chris!


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#6) Old
Jamie Edwards Offline
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 5,123
Join Date: Jan 2006
Location: United Kingdom
02-08-2007, 06:53 PM

Thanks for posting that, Chris


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
  • New to the forum? New user's guide here.
  • Submit bug reports here.
  • Submit support tickets via the members area.
  • Submit sales queries either via live chat or via e-mail.
  • There is no official ETA on Version 4.
   
Reply With Quote
  (#7) Old
jnet Offline
Member
 
Posts: 511
Join Date: Mar 2008
29-03-2008, 05:15 PM

I do not have this

if (count($_customfieldvalues))
in my file and I am using the latest but I still get errors
   
Reply With Quote
  (#8) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,566
Join Date: Aug 2006
Location: Mumbai, India
29-03-2008, 06:14 PM

Make the staff user you are accessing the helpdesk with is assigned to atleast 1 department and more so to the department in which the ticket is assigned to.



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
  (#9) Old
jnet Offline
Member
 
Posts: 511
Join Date: Mar 2008
29-03-2008, 06:53 PM

I removed the staff
even me as admin when I try to go to staff area I get the same error
   
Reply With Quote
  (#10) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,566
Join Date: Aug 2006
Location: Mumbai, India
30-03-2008, 10:07 AM

Can you please post a screenshot of the admin user details which you can find under:
Admin CP > Staff > Manage Staff > admin > Edit



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
  (#11) Old
iczeh Offline
New Member
 
Posts: 8
Join Date: May 2008
31-08-2008, 01:59 PM

We just upgraded from 3.20 to 3.30.02 and we have the same error. When we upgraded we had mysql 5.0 php 5.2. After failure we downgraded to mysql4.11 -> no success. Then downgrade to php4 -> no success, then downgrade to eSupport 3.20 (restoring the database from backup before upgrade), we have the same result. What could be the problem?
   
Reply With Quote
  (#12) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,566
Join Date: Aug 2006
Location: Mumbai, India
01-09-2008, 10:20 AM

Can you please post a screenshot of the admin user details which you can find under:
Admin CP > Staff > Manage Staff > admin > Edit



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
  (#13) Old
iczeh Offline
New Member
 
Posts: 8
Join Date: May 2008
02-09-2008, 01:17 PM

I attached the screenshot. This is the setting of the previous working version which shouldn't have change during the upgrade.
Following this thread I checked this setting also during troubleshoot, and it was the same
Attached Images
File Type: jpg admin.jpg (101.6 KB, 3 views)
   
Reply With Quote
  (#14) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,566
Join Date: Aug 2006
Location: Mumbai, India
02-09-2008, 01:32 PM

The ticket you are accessing, in which department does it exist?



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
  (#15) Old
iczeh Offline
New Member
 
Posts: 8
Join Date: May 2008
02-09-2008, 01:43 PM

Those are in another department which is also attached to the user (double checked)
   
Reply With Quote
Reply

Tags
840, argument, foreach, functionsticketsuiphp, invalid, line, supplied

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

LinkBacks (?)
LinkBack to this Thread: http://forums.kayako.com/f56/invalid-argument-supplied-foreach-functions_ticketsui-php-line-840-a-13035/
Posted By For Type Date
Kayako Bug Tracker - Viewing Bug #225 - Invalid argument supplied for foreach() ... functions_ticketsui.php on line 840 This thread Refback 16-12-2007 02:45 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem ! graziano68 SupportSuite, eSupport and LiveResponse 2 08-11-2006 08:07 AM
Swift CLI problem joshopkins SupportSuite, eSupport and LiveResponse 2 02-09-2006 06:12 AM



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


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