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
Logan Harbour Offline
New Member
 
Posts: 7
Join Date: Jun 2007
PHP Error, and Piping Questions - 06-06-2007, 01:54 AM

Hello, I just recently purchased the Kayako SupportSuite and absolutely love it! There is one problem though, I cannot get e-mail piping to work.

Our webhost runs cPanel on our server. I found it very easy to set everything up, except I keep getting the same error no matter what I try to fix. The weird thing is that I get the error after sending an e-mail (as client), but it submits it to the support desk!

I recieve this mail back almost instantly after I (as the client) send a support ticket or reply to a ticket (the top part, the rest is the message):

Quote:
This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

pipe to |/home/******/public_html/helpdesk/cli/index.php
generated by support@******.com

The following text was generated during the delivery attempt:

------ pipe to |/home/******/public_html/helpdesk/cli/index.php
generated by support@******.com ------

Failed loading 1: 1: cannot open shared object file: No such file or directory

------ This is a copy of the message, including all the headers. ------
I receive this error whenever I try to reply to a ticket that was sent by a staff member, or when submitting a new ticket via email.

I made sure the permissions were set correctly, and I did the test to make sure ionCube was installed.

PHP Code:
root@server [/home/******/public_html/helpdesk/cli]# ./index.php -h
Failed loading 1:  1cannot open shared object fileNo such file or directory
====================
SWIFT CLI Debug
====================


(
1Check for Zend/ionCube Loader
(2) Exit

Please Type your Choice1
[ERROR]: Zend Optimizer
[OK]: ionCube Loader 
^ Notice you also see the error before the help menu pops up ^

I also edited the cli/index.php file once to make sure it knew where the functions file was and swift.php:

PHP Code:
#!/usr/local/bin/php -q
<?php
//=======================================
//###################################
// Kayako Web Solutions
//
// Source Copyright 2001-2004 Kayako Infotech Ltd.
// Unauthorized reproduction is not allowed
// License Number: $%LICENSE%$
// $Author: vshoor $ ($Date: 2006/08/16 11:45:01 $)
// $RCSfile: index.php,v $ : $Revision: 1.9 $ 
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//                   www.kayako.com
//###################################
//=======================================

define("SWIFT_AREA"60);

chdir(dirname(__FILE__)."/../");
require_once (
"/home/******/public_html/helpdesk/includes/functions_cli.php");
$cli = new CLI;


if (
in_array($argv[1], array('--help''-help''-h''-?')))
{
    
$cli->writeln($cli->green('===================='));
    
$cli->writeln($cli->yellow("SWIFT CLI Debug"));
    
$cli->writeln($cli->green('===================='));
    
$cli->writeln();

    
$result $cli->prompt("", array("1" => "Check for Zend/ionCube Loader""2" => "Exit"));
    if (
$result == "1")
    {
        if (
extension_loaded('Zend Optimizer'))
        {
            
$cli->message("Zend Optimizer"CLI_OK);
        } else {
            
$cli->message("Zend Optimizer"CLI_ERROR);
        }
        if (
extension_loaded('ionCube Loader'))
        {
            
$cli->message("ionCube Loader"CLI_OK);
        } else {
            
$cli->message("ionCube Loader"CLI_ERROR);
        }
    }

} else if (
in_array($argv[1], array('--rebuildindex''-rebuildindex'))) {
    require_once (
"/home/******/public_html/helpdesk/swift.php");

    
$cli = new CLI;

    if (!
$events->triggerEvent(EVENT_CLI)) {
        
// Try to do a callback on tickets module for email piping, if unsuccesfull then display default message
        
if (!$events->triggerCallback("tickets""clirebuildindex"))
        {
            echo 
sprintf($_SWIFT["language"]["clidefault"], SWIFTPRODUCT$settings->getKey("core""version"), date("Y"));
        }
    }

} else {
    require_once (
"/home/******/public_html/helpdesk/swift.php");

    if (
in_array($argv[1], array('--debug''-debug''-d')) || in_array($argv[3], array('--debug''-debug''-d')))
    {
        
$_SWIFT["clidebug"] = true;
        
$_SWIFT["dbgfilename"] = "clidbg_".buildHash();
    }

    if (
in_array($argv[1], array('--load''-load''-l')) && !empty($argv[2]))
    {
        
$_SWIFT["clifileload"] = $argv[2];
    }

    if (!
$events->triggerEvent(EVENT_CLI)) {
        
// Try to do a callback on tickets module for email piping, if unsuccesfull then display default message
        
if (!$events->triggerCallback("parser""cliparser"))
        {
            echo 
sprintf($_SWIFT["language"]["clidefault"], SWIFTPRODUCT$settings->getKey("core""version"), date("Y"));        
        }
    }
}
?>
That didn't work so I set the file back to it's normal.

I even debugged it and got the same error:

PHP Code:
root@server [/home/******/public_html/helpdesk/cli]# ./index.php --debug
Failed loading 1:  1cannot open shared object fileNo such file or directory 
To sum it all up, a client tries to send an e-mail to start a ticket or reply to a ticket, but recieves a Mail Delivery Error with the error being Failed loading 1: 1: cannot open shared object file: No such file or directory. But, the ticket reply or new ticket is in fact submitted to the support desk!

Last edited by Logan Harbour; 06-06-2007 at 02:01 AM.
   
Reply With Quote
  (#2) Old
Chris Boulton Offline
Member
 
Posts: 146
Join Date: Jun 2003
Location: Sydney, Australia
06-06-2007, 02:46 AM

Hi,

When you execute the following command via the terminal, do you receive the same error?

/usr/local/bin/php -q

Just to establish if it is a CLI configuration problem with PHP or a direct problem with SupportSuite.
   
Reply With Quote
  (#3) Old
Logan Harbour Offline
New Member
 
Posts: 7
Join Date: Jun 2007
06-06-2007, 02:57 AM

Quote:
Originally Posted by Chris Boulton View Post
Hi,

When you execute the following command via the terminal, do you receive the same error?

/usr/local/bin/php -q

Just to establish if it is a CLI configuration problem with PHP or a direct problem with SupportSuite.
It seems that it is a CLI problem

PHP Code:
root@server [/home/******/public_html/helpdesk/cli]# /usr/local/bin/php -q
Failed loading 1:  1cannot open shared object fileNo such file or directory 
Any suggestions?
   
Reply With Quote
  (#4) Old
Chris Boulton Offline
Member
 
Posts: 146
Join Date: Jun 2003
Location: Sydney, Australia
06-06-2007, 03:09 AM

Contact your host and get them to check their PHP configuration files (get them to execute "locate php.ini" to find them).

At a guess, there is something funny going on with loading PHP extensions.

Also - try executing "php -q" via the CLI and see if you get the same result. They could have two installations of the CLI version of PHP and one is slightly more broken than the other.
   
Reply With Quote
  (#5) Old
Logan Harbour Offline
New Member
 
Posts: 7
Join Date: Jun 2007
06-06-2007, 03:13 AM

We own the server. I will look around at the PHP config, is there anything I should be looking for in specific?
   
Reply With Quote
  (#6) Old
Adam12 Offline
Member
 
Posts: 92
Join Date: Sep 2005
Location: Los Angeles, CA, USA
06-06-2007, 04:08 AM

Quote:
Originally Posted by Logan Harbour View Post
We own the server. I will look around at the PHP config, is there anything I should be looking for in specific?
Hey,

Do

Code:
which php
In SSH and see what path that gives you.

Do you run any Control Panels, IE cPanel, etc?

You may just want to recompile PHP.

From,
Adam


===
www.eastsolid.com <-- The hosts host.
Shared Hosting, Reseller Hosting, Dedicated Server Hosting, Backup Services and Server Management.
Now with Enterprise Hosting (No more then 20 accounts per server!)
   
Reply With Quote
  (#7) Old
Logan Harbour Offline
New Member
 
Posts: 7
Join Date: Jun 2007
06-06-2007, 04:44 AM

Hello Adam, thanks for the response.

PHP Code:
root@server [/root]# which php
/usr/local/bin/php 
We run cPanel. We lately have had huge apache problems, and ended up recompiling apache down to 1.3. I would recompile PHP but I am afraid I am going to interfere with our apache recompile.
   
Reply With Quote
  (#8) Old
Chris Boulton Offline
Member
 
Posts: 146
Join Date: Jun 2003
Location: Sydney, Australia
06-06-2007, 01:08 PM

Don't go recompiling for the sake of it - especially because you're on a server with cPanel which is picky about lots of things.

In your php.ini, make sure there are no extension loading lines which are empty/invalid in one way or another.

What version of PHP is it?
   
Reply With Quote
  (#9) Old
Logan Harbour Offline
New Member
 
Posts: 7
Join Date: Jun 2007
06-06-2007, 05:35 PM

We had our tech look it up, he seemed to fix CLI and everything works great now
   
Reply With Quote
  (#10) Old
mwep Offline
New Member
 
Posts: 1
Join Date: Jul 2007
14-07-2007, 09:23 PM

Do you know what your tech did ? We had the same problems as you, tried the same things you did with the same result.

Thanks!!!
   
Reply With Quote
Reply

Tags
php, piping

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



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