Page 1 of 1

Piping Issue?

Posted: Thu Feb 23, 2012 12:52 am
by GeekPlaya
Script URL: http://support.adventurelobbies.com/
Version of script: 2.3
Hosting company: StableHost
URL of phpinfo.php: http://support.adventurelobbies.com/pi/ (User: connect; Pass: connect)
URL of session_test.php: [?]
What terms did you try when SEARCHING for a solution: I tried searching the board for the issue, found one post without a solution.
=====================
Alright, so I setup in cPanel the proper path to the piping file, set the piping file's permissions to 755, and sent an e-mail to my support address..

The following error was returned:
------ pipe to |/***/***/***/support/inc/mail/hesk_pipe.php
generated by support@adventurelobbies.com ------

Error in argument 1, char 3: option not found
Usage: php [-q] [-h] [-s] [-v] [-i] [-f <file>]
php <file> [args...]
-a Run interactively
-C Do not chdir to the script's directory
-c <path>|<file> Look for php.ini file in this directory
-n No php.ini file will be used
-d foo[=bar] Define INI entry foo with value 'bar'
-e Generate extended information for debugger/profiler
-f <file> Parse <file>. Implies `-q'
-h This help
-i PHP information
-l Syntax check only (lint)
-m Show compiled in modules
-q Quiet-mode. Suppress HTTP Header output.
-s Display colour syntax highlighted source.
-v Version number
-w Display source with stripped comments and whitespace.
-z <file> Load Zend extension <file>.
Any ideas as to why?

Re: Piping Issue?

Posted: Thu Feb 23, 2012 2:16 am
by GeekPlaya
Resolved:

Code: Select all

$ tr -d '\r' < hesk_pipe.php > hesk_pipe.php.tmp
$ mv hesk_pipe.php.tmp hesk_pipe.php

Re: Piping Issue?

Posted: Thu Feb 23, 2012 7:42 am
by Klemen
Correct, for others with same problems here is also a modified file:
viewtopic.php?f=13&t=3877&p=16671&hilit=pipe#p16671

Re: Piping Issue?

Posted: Tue Mar 13, 2012 8:26 am
by ncompass
For those looking for a CPanel method, or those who are unfamiliar with SSH etc. You can use the CPanel file manager to edit the file... when you make your changes it will convert the hesk_pipe.php into a Unix format and then it will work.

Hope this gives an additional solution to this problem.

Re: Piping Issue?

Posted: Sat Mar 24, 2012 8:18 am
by davidsons
Hello,

I've spent quite a few hours trying to get this email piping thing to work. I installed the script with Softaculous in Cpanel.

I have followed the setup precisely. The script is installed and working at thefunkychicken.ph/helpdesk/index.php. I just can't seem to get the email piping to work. I have the forwarding setup right. I have the .php file set at 755. Everything in the Admin Settings is good....
HESK version: 2.3 (Check for updates)
/hesk_settings.inc.php Exists, Writable
/attachments Exists, Writable

Everytime I send an email to my designated email address that I setup it bounces back with the below error..

Thanks for the help in advance.

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/docebu/www.thefunkychicken.ph/helpdesk/inc/mail/hesk_pipe.php
generated by helpdesk@thefunkychicken.ph

The following text was generated during the delivery attempt:

------ pipe to |/home/docebu/www.thefunkychicken.ph/helpdesk/inc/mail/hesk_pipe.php
generated by helpdesk@thefunkychicken.ph ------

Error in argument 1, char 3: option not found
Usage: php [-q] [-h] [-s] [-v] [-i] [-f <file>]
php <file> [args...]
-a Run interactively
-b <address:port>|<port> Bind Path for external FASTCGI Server mode
-C Do not chdir to the script's directory
-c <path>|<file> Look for php.ini file in this directory
-n No php.ini file will be used
-d foo[=bar] Define INI entry foo with value 'bar'
-e Generate extended information for debugger/profiler
-f <file> Parse <file>. Implies `-q'
-h This help
-i PHP information
-l Syntax check only (lint)
-m Show compiled in modules
-q Quiet-mode. Suppress HTTP Header output.
-s Display colour syntax highlighted source.
-v Version number
-w Display source with stripped comments and whitespace.
-z <file> Load Zend extension <file>.
-T <count> Measure execution time of script repeated <count> times.

------ This is a copy of the message, including all the headers. ------

Return-path: <xxx@yahoo.com>
Received: from nm9.bullet.mail.sp2.yahoo.com ([98.139.91.79])
by server.docebu.com with smtp (Exim 4.69)
(envelope-from <xxx@yahoo.com>)
id 1SBM6a-0007EG-Bq
for helpdesk@thefunkychicken.ph; Sat, 24 Mar 2012 11:13:44 +0300
Received: from [98.139.91.70] by nm9.bullet.mail.sp2.yahoo.com with NNFMP; 24 Mar 2012 08:13:42 -0000
Received: from [98.139.91.49] by tm10.bullet.mail.sp2.yahoo.com with NNFMP; 24 Mar 2012 08:12:42 -0000
Received: from [127.0.0.1] by omp1049.mail.sp2.yahoo.com with NNFMP; 24 Mar 2012 08:12:42 -0000
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 928410.35631.bm@omp1049.mail.sp2.yahoo.com
Received: (qmail 68292 invoked by uid 60001); 24 Mar 2012 08:12:42 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1332576762; bh=SFh6Ql7WCdpLZXbSBGLRlpFhjK1vE6lZ6iexWw5g22M=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=prJ2/rwpDbjux7qMA8OxBlb0CflDks3cQMRpSBRRUMvWOd4J+yoM2I2tYHVdbM+R6MYSh4VWrxFGsrlluSUqSu0xXZHG//I8fjQPW99OvHb3VSLiLOITKw8PJW3k5Bu/d3tQeTG4R9E0Sag3bPu1Ox1c6k2nwd+Ereafoa6HbN8=
DomainKey-Signature:a=rsa-sha1; q=dns; c=nofws;
s=s1024; d=yahoo.com;
h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type;
b=glZAEtMyxYP8YcQLrgsBgcIOtaFJkZXWtMROA6ZddgblfiYkrWTSbFahJ4hJNprMlCTbaN+vJLCHglwZVKW5OIbiR+INQKuQkPRFAYL3Ke8r4gPYYwejZX7iLrf4/x0MMzyOw7UCd6vORYugx1LqP/PlhGdNcgyYsgLeH5aP3y0=;
X-YMail-OSG: Uluy0HsVM1n58MiPXn8QBhGr9V3mBaCBAp8Dbyk4Klh8.0t
Ck1mVLxxoNib8ihzyienhqWFnABseUcPHV4AH9HlHe75h.miIxuVP_FK.N.q
r.vXkqtoImKhYhd.exTC9qmPcR968BWIUkwaoWIAOHGyALpBahBef5mMIWaA
5y07OvPw0tS5HKIzxYx52it7Mn7GqEhTYTUVlPM0u1nAGhedjPZAMVYS2etp
30w0d4uA3sG_NSvYuB07kxv_KSoPIIfAjkUptJfAY.Cnu_9uhlo3sPGpiCL4
EjDfkxH8SJRracQwQb.ErwYJWqu6k7QExchNgmAUmAil_p5led6QaIjwSQK4
672LH8nTrjWrvIKuh.lFRiW58P_tNUt6.COkNnDqNP_wH.jo8cljfSEU21Dw
nkDwNIHSPCdmYLvGWBOUSHqJl6l8N7Ilv
Received: from [204.95.39.14] by web114511.mail.gq1.yahoo.com via HTTP; Sat, 24 Mar 2012 01:12:42 PDT
X-Mailer: YahooMailWebService/0.8.117.340979
Message-ID: <1332576762.67995.YahooMailNeo@web114511.mail.gq1.yahoo.com>
Date: Sat, 24 Mar 2012 01:12:42 -0700 (PDT)
From: xxx
Reply-To: xxx
Subject: TESTING
To: Admin <helpdesk@thefunkychicken.ph>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="1874678057-539449987-1332576762=:67995"

--1874678057-539449987-1332576762=:67995
Content-Type: text/plain; charset=us-ascii

TESTING

--1874678057-539449987-1332576762=:67995
Content-Type: text/html; charset=us-ascii

<html><body><div style="color:; background-color:; font-family:times new roman, new york, times, serif;font-size:12pt"><div>TESTING</div></div></body></html>
--1874678057-539449987-1332576762=:67995--

Re: Piping Issue?

Posted: Sat Mar 24, 2012 9:03 am
by Klemen
Looks like you are having problems with line endings, try this file instead:
http://www.phpjunkyard.com/extras/hesk_23_pipe_nocr.zip

Double-check that it is uploaded in ASCII mode to the server.


If that doesn't work try this tip from "ncompass":
Converting the file to a UNIX format can also be done by editing the file in CPanel... just open hesk_pipe.php using the File Manager and resave it. Much easier for those unfamiliar with SSH - thanks

Re: Piping Issue?

Posted: Sat Mar 24, 2012 9:31 pm
by davidsons
It seems that by doing a fresh Hesk install using Softaculous instead of FTP, it runs into problems. I must of uninstalled and installed the script 50 times and double checked everything was setup correctly. I couldn't ever get the system to generate tickets by email.

I deleted the original hesk_pipe.php file that Softaculous installed and FTPd your replacement file in ASCII mode to the server. It did the trick. Hope this helps others. Many Thanks!

Re: Piping Issue?

Posted: Thu Jan 16, 2014 5:53 pm
by cormierjimmy
Same issue with Piping of Pop3
Error in argument 1, char 3: option not found

-Recopy file as you mentionned
-755 on hesk_pop3.php

Any idea ?

Error in argument 1, char 3: option not found
Usage: php [-q] [-h] [-s] [-v] [-i] [-f <file>]
php <file> [args...]
-a Run interactively
-b <address:port>|<port> Bind Path for external FASTCGI Server mode
-C Do not chdir to the script's directory
-c <path>|<file> Look for php.ini file in this directory
-n No php.ini file will be used
-d foo[=bar] Define INI entry foo with value 'bar'
-e Generate extended information for debugger/profiler
-f <file> Parse <file>. Implies `-q'
-h This help
-i PHP information
-l Syntax check only (lint)
-m Show compiled in modules
-q Quiet-mode. Suppress HTTP Header output.
-s Display colour syntax highlighted source.
-v Version number
-w Display source with stripped comments and whitespace.
-z <file> Load Zend extension <file>.
-T <count> Measure execution time of script repeated <count> times.

Re: Piping Issue?

Posted: Thu Jan 16, 2014 6:41 pm
by Klemen
Try uploading these two files to your "inc/mail" folder:
http://www.hesk.com/extras/hesk_25_pipe_EOL.zip

1. do not open/modify them in any text editor
2. make sure they are uploaded in ASCII mode

Re: Piping Issue?

Posted: Sat Jan 18, 2014 9:12 pm
by cormierjimmy
Working well. Thank you