Kayako logo
E-mail Piping Issues E-mail piping issues and related configuration questions are posted here,

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  (#1) Old
Destructo Offline
New Member
 
Posts: 5
Join Date: Aug 2008
PHP errors cause bounce, but Kayako works - 27-08-2008, 08:00 PM

Similar to some problems I've seen here, I can send an email to the email address I've setup for Kayako that pipes the email to the cli script and Kayako properly opens a ticket. The problem is that the email simultaneously bounces because there are some PHP errors that I can't seem to hide. The errors are contained in the bounced email:

Code:
PHP Warning:  PHP Startup: U‰åWVSƒìè: Unable to initialize module
Module compiled with module API=20020429, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
 in Unknown on line 0
My host is completely incompetent and of course blame this on Kayako when it's obvious that it's a Zend module mismatch error.

Anyway, does anyone know how I could hide these startup errors so that the email won't bounce?

I've tried setting my piping to:

Code:
"|/home/site/www/support/cli/index.php > /dev/null"
but the email still bounces. If I move the > /dev/null part outside of the quotes, Kayako doesn't get the email and nothing bounces.

Any tips?
   
Reply With Quote
  (#2) Old
John Haugeland Offline
Developer
 
John Haugeland's Avatar
 
Posts: 670
Join Date: Dec 2007
Location: Idaho
27-08-2008, 08:48 PM

I don't believe you could hide the pipe noise, short of making an intermediary which opens a second pipe to the real target and discards upchannel responses.

If I were you, I'd ask to speak to a supervisor at the ISP. That problem is going to cause memory leaks, which will become a stability problem.


John Haugeland (john.haugeland ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#3) Old
Destructo Offline
New Member
 
Posts: 5
Join Date: Aug 2008
27-08-2008, 09:37 PM

Thanks for the help, John. If I can't get them to resolve it properly, I'll end up writing a wrapper shell script to hide the output.

Hopefully that will work until I find the time to switch hosts.
   
Reply With Quote
  (#4) Old
John Haugeland Offline
Developer
 
John Haugeland's Avatar
 
Posts: 670
Join Date: Dec 2007
Location: Idaho
27-08-2008, 10:53 PM

Ok.


John Haugeland (john.haugeland ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#5) Old
Destructo Offline
New Member
 
Posts: 5
Join Date: Aug 2008
28-08-2008, 01:16 AM

Here's the wrapper I've implemented in case anyone in the future has this problem:
Code:
#!/bin/sh
/www/support/cli/index.php "$@" > /dev/null 2>&1
That's just saved as "wrapper.sh" and I've changed my email forwarder to point to it. Works like a charm.
   
Reply With Quote
  (#6) Old
Jamie Edwards Offline
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 5,445
Join Date: Jan 2006
Location: United Kingdom
28-08-2008, 01:25 AM

Thanks for sharing that - I'm sure others will find it useful


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#7) Old
John Haugeland Offline
Developer
 
John Haugeland's Avatar
 
Posts: 670
Join Date: Dec 2007
Location: Idaho
28-08-2008, 05:31 PM

I do want to remind other people reading this thread, though, that the real problem is that PHP and Zend are out of sync, and that the real fix is what this customer's ISP refuses to do. That script is a last resort. Destructo realizes this, I believe, based on his comment about waiting until he has time to switch ISPs, but I want to make sure other people later who read this understand that as well. The out of sync problem has other consequences, and really should be fixed correctly.

It's quite a neat last resort, though.


John Haugeland (john.haugeland ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Paid Kayako WHMCS LoginShare module v0.0.2 Explovision Modifications & Addon Releases 9 01-09-2008 01:53 AM
How SMTP works in Kayako because.... ccb_support SupportSuite, eSupport and LiveResponse 0 29-09-2007 07:18 PM
Display PHP Errors jreed Developers & Code 8 28-08-2007 07:23 PM
Zend errors after upgrading PHP to 5.1.6 iq13 Installation & Upgrading 3 26-09-2006 09:08 PM
PHP Errors since update Aegis1 SupportSuite, eSupport and LiveResponse 2 06-01-2006 06:34 PM



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 47