Orangescrum emailreply.php wont work

392 views
Skip to first unread message

Bjjen

unread,
Jan 28, 2016, 12:44:11 PM1/28/16
to Orangescrum Community Support
Hi all

I would like a hint regarding the emailreply function of orangescrum. I've installed orangescrum and also successfully configured emailreply - when a user replied to a orangescrum task mail the reply was posted on the task in orangescrum. However at some point this functionality has stopped working. I guess after I upgraded the server to debian8/apache2.4/php5.6/mysql5.5

Everything else works well - emails is sent out and no errors displayed. So far I have looked in the mailserver log - orangescrum logs onto the mail imap account each 5 min. nohup is running. I've checked the actual mail account and mails are getting marked as read after the script has been processed. But still nothing is posted on orangescrum

I've tried to reinstall my mysql database for orangescrum in order to rule out any mismatch in id's etc. It simply won't work. 

Since I can't find any error log and everything seems to be running - I'm a bit stuck.

Does anyone experienced something similar - or maybe have an idea why this function does not work anymore?

Kind regards

Bjjen

unread,
Jan 28, 2016, 2:15:51 PM1/28/16
to Orangescrum Community Support
I found in app/tmp/logs/os-email.log
-----------------------------------------------------------------------
Failed to update:from mail ID-...@example.com
Subject:SV: [Orangescrum]:TEST:#1(TEST)-test task
Sent Date:Thu, 28 Jan 2016 17:24:47 +0100
-----------------------------------------------------------------------

Some fail occurs, well so far so good.

Steve F

unread,
Jan 28, 2016, 2:35:54 PM1/28/16
to Orangescrum Community Support
I posted similar issue https://groups.google.com/forum/#!topic/orangescrum-community-support/lR8vybZ-UDg

are you getting similar message when you run emailreply.php from browser?

Bjjen

unread,
Jan 28, 2016, 3:59:12 PM1/28/16
to Orangescrum Community Support
Well yes, I get the notice undefined constant WWW_ROOT - I guess this constant should have been defined by cakephp. 


Team Orangescrum

unread,
Jan 28, 2016, 11:38:30 PM1/28/16
to Orangescrum Community Support
Hi Bjjen,

Please comment the below line in EmailReply.php:

include_once('../Vendor/ElephantIO/Client.php'); in line number 13.

iotoserver(array('channel' => $row_pid['uniq_id'], 'message' => 'Updated.~~NA~~' . $row['case_no'] . '~~' . 'UPD' . '~~' . stripslashes(html_entity_decode($row['title'], ENT_QUOTES)) . '~~' . $row_pid['short_name'])); in line number 713

Also comment method iotoserver() inline number 1096: 

function iotoserver($messageArr) {
    if (defined('NODEJS_HOST') && trim(NODEJS_HOST)) {
        try {
            $elephant = new ElephantIOClient(NODEJS_HOST, 'socket.io', 1, false, false, true);
            $elephant->setHandshakeTimeout(1000);
            $elephant->init();
            $elephant->send(
                    ElephantIOClient::TYPE_EVENT, null, null, json_encode(array('name' => 'iotoserver', 'args' => $messageArr))
            );
            $elephant->close();
        } catch (Exception $e) {
            echo $e->getMessage();

Steve F

unread,
Jan 29, 2016, 11:08:50 AM1/29/16
to Orangescrum Community Support
Hi,

I tried it, but got exactly the same error.

Also line 1096 says function iotoserver($messageArr) {

not

method iotoserver($messageArr) {

Bjjen

unread,
Jan 31, 2016, 11:18:25 AM1/31/16
to Orangescrum Community Support
I've commented the suggested code out in EmailReply.php. I get the same error in os-email.log and nothing is posted. Seam not to change behavior. Emails get read but not posted on the task.
Message has been deleted

Bjjen

unread,
Feb 4, 2016, 2:32:43 PM2/4/16
to Orangescrum Community Support
Unfortunately I still haven't found a solution that fixes this issue. I find the emailreply script a bit difficult to debug. Since I'm not the only one with this issue - is there any chance for a bugfix from orangescrum?

Kind regards

Georgios Kalligeros

unread,
Mar 15, 2016, 5:11:58 PM3/15/16
to Orangescrum Community Support
I have come across the same issue does anybody know anything ? 

Team Orangescrum

unread,
Apr 18, 2016, 6:56:28 AM4/18/16
to Orangescrum Community Support
Hi Georgios,

Can you please tell us about the following:
PHP version.
Environment(windows, linux).

Bjjen

unread,
Apr 18, 2016, 3:27:10 PM4/18/16
to Orangescrum Community Support
I never solved this issue either. For your info my setup is Debian 8 and PHP Version 5.6.19-0+deb8u1 running FPM/FastCGI

Steve F

unread,
Apr 19, 2016, 5:27:25 PM4/19/16
to Orangescrum Community Support

Can you please tell us about the following:
PHP version. 5.6
Environment(windows, linux). windows XAMPP
 email: ms exchange 2010 sp3
 

cgi19...@gmail.com

unread,
Jun 29, 2016, 4:03:27 AM6/29/16
to Orangescrum Community Support

Steve F

unread,
Aug 4, 2016, 4:44:04 PM8/4/16
to Orangescrum Community Support
I reinstalled Orange  (ver 1.60) on centos 6.8 instead of windows XAMPP  - same problem exactly

I had a chat with Omkar from omkar.rath@andxxxxxx  he promised to look into it, but so far nothing.  We chat on July 17


I saw OrangeScrum having nice reviews, but it seems like open source version  does not see much love from devs.  (but they pretty quick to offer $99 addon)




Reply all
Reply to author
Forward
0 new messages