ACCORD5
Add a reply

ACCORD5 Company Forums » Trellis Desk » Peer-to-Peer Support

Email piping not working

 
  • Started 1 year ago by fulfillinghappiness
  • 5 posts in this topic
  • Latest reply from JohnCounsel
  1. Hi,

    I have been trying to set up email piping for about a week now and can't get it to work. I have tried many different things as well as contacting Host Gator support and still every time I send a test email to the designated address: info@fulfillinghappiness.com, I check my trellis desk and there's no tickets there.

    According to Host Gator, the problem is the following:

    It looks like your trellis software is trying to use relative PATHs:

    [root@gator1219 ~]# sudo -u aleksinp php /home/aleksinp/public_html/tickets/sources/pipe.php
    PHP Warning: require_once(../includes/ifthd.php): failed to open stream: No such file or directory in /home/aleksinp/public_html/tickets/sources/pipe.php on line 65

    Warning: require_once(../includes/ifthd.php): failed to open stream: No such file or directory in /home/aleksinp/public_html/tickets/sources/pipe.php on line 65
    PHP Fatal error: require_once(): Failed opening required '../includes/ifthd.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/aleksinp/public_html/tickets/sources/pipe.php on line 65

    Fatal error: require_once(): Failed opening required '../includes/ifthd.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/aleksinp/public_html/tickets/sources/pipe.php on line 65

    This will not work unless the environment that the email is sent from is setup properly. I would recommend using the full PATH for these includes so that the php script works no matter what your working directory happens to be. Please let us know if you have any other questions.

    I replied and said that I was confused by the response and asked if they could make the recommended changes, but they say it is beyond their scope.

    Is anyone able to shed any light on this? I would normally go in and try to figure this out for myself, but as I said I've tried many things already and given that I am very close to launching my membership site I really would appreciate some help on this issue!

    Thank you

    Aleks

    Posted 1 year ago #
  2. User has not uploaded an avatar

    rxt

    offline
    Member

    You have two quick fixes: edit the pipe.php file (make a backup first) and add the hard path, or go with pop3 instead of piping.

    Find the following line in pipe.php:
    require_once HD_INC . "ifthd.php";

    Change it into:
    require_once "/home/aleksinp/public_html/tickets/includes/ifthd.php";

    Then try again.

    Posted 1 year ago #
  3. eni8ma

    eni8ma

    offline
    Member

    Actually the code that needs to be changed is line 54 of sources/pipe.php:

    define( "HD_PATH", "../" );

    change to

    $fullpath = dirname(dirname(__FILE__));
    define( "HD_PATH", $fullpath );

    dirname(__FILE__) will return "full path to/sources"
    dirname(dirname(__FILE__)) will return the full path to the folder above.

    Posted 1 year ago #
  4. User has not uploaded an avatar

    ladle

    offline
    Member

    I had to have my host install the PEAR package before it would work, and after that still needed to chmod the pipe.php to 755 before it would work.

    Posted 1 year ago #
  5. pipe.php has to have 755 permission anyway (see documentation).

    Posted 1 year ago #

RSS feed for this topic

Reply to this topic

You must log in to post.