Email piping has been working perfectly for us, with no problems from previous upgrades. However, after upgrading to 1.8.1.2 yesterday, piping has stopped working.

Checked permissions for pipe.php and this is set to 755. Then checked system logs - full of errors:

API Error (400) - Unexpected data received.

Any suggestions please?

Thanks.

Please consult your PHP error log and provide us with any errors there.Please provide us with any additional information from Admin panel -> Dashboard -> System Log.

Per earlier post, System, Log has multiple entries of 'API Error (400)'. Not sure where PHP error log resides on our shared hosting (Hostpapa).

As a temporary fix, we have reverted to using class.mailparse.php from version 1.8.1.1 and email piping is now working again.

If it helps here's my notes for each upgrade:Email Piping change line in /api/pipe.php      #!/usr/bin/php -q to #!/opt/php53/bin/php -q         Make /api/pipe.php executable chmod 755 pipe.php #2

Hi!, when i set chmod 755 to /api/pipe.php everything is working fine.

I am also having the same issue. The returned email is stating "local delivery failed".I am also getting API Error (400)

If you're using hostmonster, I had to change my piping hastag to this: #!/usr/php/54/usr/bin/php -qIt was a wild guess, but 54 is the version number of the php i'm using.here was the thread:http://forum.osticket.com/d/discussion//hostmonster-piping-doesn-t-seem-to-work

Thanks for the suggestion but I am not using hostmonster. My hosting company is siteground.com.  

And making the changes in that post did not work for me.

siteground may not have 5.4 installed on their server(s).  You would need to contact them and see if it is an option, and if it is what the path to it is.

I do have 5.4.26 installed and that is what is showing when I got to the About Os Ticket Installation page.The info siteground gives on this is here:http://kb.siteground.com/how_to_pipe_an_email_to_a_php_script/I have #!/usr/bin/php -q as my Hashbang.  This was all working before the upgrade. 

What version of osTicket were you using prior to upgrade?

I am having trouble figuring out what I was on previously. I believe it was 1.8.02

Experiencing the same issue. I upgraded from 1.8.0 to 1.8.1.2 and I am receiving the API Error (400) in System Logs. Mail is also being returned as "local delivery failure". Piping was working prior to upgrade.Server InformationosTicket Versionv1.8.1.2Server SoftwareApachePHP Version5.4.26MySQL Version5.5.36

The following errors are in the log:PHP Fatal error: Class 'AuthenticatedUser' not found in /public_html/osticket/include/class.client.php on line 163PHP Warning: opendir(/public_html/osticket/include/mpdf/tmp): failed to open dir: No such file or directory in /public_html/osticket/include/mpdf/mpdf.php on line 7502

I have changed pipe.php to 755 and I am using the hashbang that worked previously. Any help would be appreciated.

Concerning the API error 400 for mail piping, many apologies. There was bug that was very quickly fixed in the 1.8.1.2 release; however, there were a few downloads before we were able to detect and correct the issue. Please just download and unpack the zip file from the osticket.com download page again. There will be no database migration necessary.

Sorry again for the confusion and inconvenience.

Write a Reply...