priyadi / roundcube-converse.js-xmpp-plugin

XMPP plugin for Roundcube Webmail based on converse.js
48 stars 18 forks source link

chat module doesnot appear #16

Open padrian opened 10 years ago

padrian commented 10 years ago

guys i need help when i setup this module it doesn ot appear in the roundcube interface.

Please help.

Baba

padrian commented 10 years ago

actually when i activate the module, it returns a blank white page.

What could cause this ?

help urgently needed.

priyadi commented 10 years ago

hi, there was a bug that has been fixed a few moments ago. can you try reinstalling again?

padrian commented 10 years ago

Hello, thanks alot for responding to my query.

yes i actually tried to re-install.

but the error persists it just brings a blank white page when i activate the plugin.

I was thinking of downgrading the roundcube.

i am currently using roundcube 0.9.5

Regards.

On Wed, Jan 22, 2014 at 6:47 AM, Priyadi Iman Nurcahyo < notifications@github.com> wrote:

hi, there was a bug that has been fixed a few moments ago. can you try reinstalling again?

— Reply to this email directly or view it on GitHubhttps://github.com/priyadi/roundcube-converse.js-xmpp-plugin/issues/16#issuecomment-32991212 .

priyadi commented 10 years ago

Hello. Roundcube 0.9.5 should be fine. Can you look in your web server log files (or syslog, or wherever your installation of Roundcube sends log into) and see if there's any error message there?

padrian commented 10 years ago

Greetings,

Thanks again for your response, i really appreciate it.

When i check the error logs, this is the error message i get

PHP Parse error: syntax error, unexpected T_FUNCTION, expecting ',' or ';' in /var/www/roundcubemail/plugins/converse/converse.php on line 34

I am currently trying to look into that.

Any ideas as to what could be causing that ?

Kindest Regards.

On Wed, Jan 22, 2014 at 4:06 PM, Priyadi Iman Nurcahyo < notifications@github.com> wrote:

Hello. Roundcube 0.9.5 should be fine. Can you look in your web server log files (or syslog, or wherever your installation of Roundcube sends log into) and see if there's any error message there?

— Reply to this email directly or view it on GitHubhttps://github.com/priyadi/roundcube-converse.js-xmpp-plugin/issues/16#issuecomment-33019722 .

priyadi commented 10 years ago

Hi, that's the error that was recently fixed. try downloading the package again.

padrian commented 10 years ago

ok thanks dude, it the issue of the white page is fixed.

But now i cannot see the chat plugin in the roundcube interface. I know it is supposed to appear in my bottom right corner but its not.

How do i go about that. Sorry if my questions sound a bit retarded i am a newbie.

Kindest Regards.

On Thu, Jan 23, 2014 at 2:33 PM, Priyadi Iman Nurcahyo < notifications@github.com> wrote:

Hi, that's the error that was recently fixed. try downloading the package again.

— Reply to this email directly or view it on GitHubhttps://github.com/priyadi/roundcube-converse.js-xmpp-plugin/issues/16#issuecomment-33116539 .

priyadi commented 10 years ago

can you first follow the procedures outlined in TROUBLESHOOTING.md?

also, there could be something useful in your log files too.

padrian commented 10 years ago

Hi thanks for responding,

yes actually i checked the TROUBLESHOOTING.md. I am using ejabberd and i have made connections with pidgin and everything works fine.

Its just that the plugin is not loaded.

here is what is in my error logs. have u seen this before.

PHP Error: Failed to load plugin file /var/www/roundcubemail/plugins/converse/converse.php in /var/www/roundcubemail/program/lib/Roundcube/rcube_plugin_api.php on line 224 (GET /roundcubemail/?_task=mail&_mbox=INBOX&_folderlist=1&_list=1&_quota=1&_action=refresh&_remote=1&unlock=loading1390479128145&=1390479128151)

maybe you could advise.

Kindest Regards.

On Thu, Jan 23, 2014 at 3:47 PM, Priyadi Iman Nurcahyo < notifications@github.com> wrote:

can you first follow the procedures outlined in TROUBLESHOOTING.md?

also, there could be something useful in your log files too.

— Reply to this email directly or view it on GitHubhttps://github.com/priyadi/roundcube-converse.js-xmpp-plugin/issues/16#issuecomment-33120719 .

priyadi commented 10 years ago

Is there any other error message (especially above those ones)? Does the file /var/www/roundcubemail/plugins/converse/converse.php exist and accessible to PHP?

padrian commented 10 years ago

the error messages above is pretty much similar.

PHP Error: Failed to load plugin file /var/www/roundcubemail/plugins/converse/converse.php in /var/www/roundcubemail/program/lib/Roundcube/rcube_plugin_api.php on line 224 (GET /roundcubemail/?_task=mail)

this is the error above; they are all like that.

i have attached the error file.

On Thu, Jan 23, 2014 at 4:08 PM, Priyadi Iman Nurcahyo < notifications@github.com> wrote:

Is there any other error message (especially above those ones)? Does the file /var/www/roundcubemail/plugins/converse/converse.php exist and accessible to PHP?

— Reply to this email directly or view it on GitHubhttps://github.com/priyadi/roundcube-converse.js-xmpp-plugin/issues/16#issuecomment-33121968 .

priyadi commented 10 years ago

Hi. "Failed to load plugin file" means for some reason Roundcube was unable to open the file. And according to the code in rcube_plugin_api.php, it in fact failed to find the file.

You need to make sure the file "/var/www/roundcubemail/plugins/converse/converse.php" exists and has the correct permission (accessible to PHP or your web server).

padrian commented 10 years ago

hi,

the file "converse.php" does exist . and the folder and contents of roundcube all belong to the webserver i.e www-data:www-data.

still i cannot see the plugin on my screen. The errors file has no new additions.

I dont know what could be causing this.

Kindest regards.

On Thu, Jan 23, 2014 at 4:39 PM, Priyadi Iman Nurcahyo < notifications@github.com> wrote:

Hi. "Failed to load plugin file" means for some reason Roundcube was unable to open the file. And according to the code in rcube_plugin_api.php, it in fact failed to find the file.

You need to make sure the file "/var/www/roundcubemail/plugins/converse/converse.php" exists and has the correct permission (accessible to PHP or your web server).

— Reply to this email directly or view it on GitHubhttps://github.com/priyadi/roundcube-converse.js-xmpp-plugin/issues/16#issuecomment-33124075 .

priyadi commented 10 years ago

I can't understand. this is the snippet of Roundcube code that outputs the error:

        if (file_exists($fn)) {
            include $fn;
            ......
        }
        else {
            rcube::raise_error(array('code' => 520, 'type' => 'php',
                'file' => __FILE__, 'line' => __LINE__,
                'message' => "Failed to load plugin file $fn"), true, false);
        }

it looks to me Roundcube cannot see the file for some reason.

Try a simple PHP script like this:

<?php
if (file_exists('/var/www/roundcubemail/plugins/converse/converse.php')) {
  echo 'file exists!';
} else {
  echo 'file doesn't exist';
}

This should output "file doesn't exist".

priyadi commented 10 years ago

Oh, are you using RedHat or derivatives (CentOS, etc)? If you are, can you try disabling SELinux?

padrian commented 10 years ago

No actually i am using ubuntu server 12.04.2 LTS

On Thu, Jan 23, 2014 at 7:18 PM, Priyadi Iman Nurcahyo < notifications@github.com> wrote:

Oh, are you using RedHat or derivatives (CentOS, etc)? If you are, can you try disabling SELinux?

— Reply to this email directly or view it on GitHubhttps://github.com/priyadi/roundcube-converse.js-xmpp-plugin/issues/16#issuecomment-33139200 .

priyadi commented 10 years ago

have you tried the little php script i wrote above? what's its output?

padrian commented 10 years ago

Yes i tried to run it;

It returns the error;

PHP Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/padrian/test on line 5

I created a file called test and entered the code in there. I have attached the file test.

Kindest Regards.

On Thu, Jan 23, 2014 at 10:46 PM, Priyadi Iman Nurcahyo < notifications@github.com> wrote:

have you tried the little php script i wrote above? what's its output?

— Reply to this email directly or view it on GitHubhttps://github.com/priyadi/roundcube-converse.js-xmpp-plugin/issues/16#issuecomment-33160904 .

padrian commented 10 years ago

Btw i nolonger get errors in the errors file but i still cannot see the module on the roundcube interface.

Thanks

On Fri, Jan 24, 2014 at 12:14 PM, Baris Adrian padrian.baba@gmail.comwrote:

Yes i tried to run it;

It returns the error;

PHP Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/padrian/test on line 5

I created a file called test and entered the code in there. I have attached the file test.

Kindest Regards.

On Thu, Jan 23, 2014 at 10:46 PM, Priyadi Iman Nurcahyo < notifications@github.com> wrote:

have you tried the little php script i wrote above? what's its output?

— Reply to this email directly or view it on GitHubhttps://github.com/priyadi/roundcube-converse.js-xmpp-plugin/issues/16#issuecomment-33160904 .

padrian commented 10 years ago

Ok there has been a new development. Below is the error being output.

PHP Fatal error: Call to undefined function curl_init() in /var/www/roundcubemail/plugins/converse/php/xmpp-prebind-php/lib/XmppPrebind.php on line 444

How do i go about that ?

Regards.

On Fri, Jan 24, 2014 at 12:15 PM, Baris Adrian padrian.baba@gmail.comwrote:

Btw i nolonger get errors in the errors file but i still cannot see the module on the roundcube interface.

Thanks

On Fri, Jan 24, 2014 at 12:14 PM, Baris Adrian padrian.baba@gmail.comwrote:

Yes i tried to run it;

It returns the error;

PHP Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/padrian/test on line 5

I created a file called test and entered the code in there. I have attached the file test.

Kindest Regards.

On Thu, Jan 23, 2014 at 10:46 PM, Priyadi Iman Nurcahyo < notifications@github.com> wrote:

have you tried the little php script i wrote above? what's its output?

— Reply to this email directly or view it on GitHubhttps://github.com/priyadi/roundcube-converse.js-xmpp-plugin/issues/16#issuecomment-33160904 .

priyadi commented 10 years ago

Enable the 'curl' extension in PHP. In Ubuntu I believe it is 'sudo apt-get install php5-curl', and then restarting Apache.

padrian commented 10 years ago

Hey Priyadi,

Thanks a bunch; your method works. The toogle chat button can now be viewed.

but how can i enable the chat plugin to use the current user credentials to log into the chat session ?

I have been looking through your page but i havent seen what can help me pull this off. I am using ejjerbard xmpp server and i already tested and it works with pidgin.

Any advice will be greatly appreciated.

Kindest regards.

On Fri, Jan 24, 2014 at 1:38 PM, Priyadi Iman Nurcahyo < notifications@github.com> wrote:

Enable the 'curl' extension in PHP. In Ubuntu I believe it is 'sudo apt-get install php5-curl', and then restarting Apache.

— Reply to this email directly or view it on GitHubhttps://github.com/priyadi/roundcube-converse.js-xmpp-plugin/issues/16#issuecomment-33212753 .

priyadi commented 10 years ago

Hi, the plugin is designed to use Roundcube credentials. If you are not logged in automatically, then you need to edit config.inc.php to suit your configuration. You also need to ensure both Roundcube and your XMPP server use the same credentials.

There might be some info in your log files on why you are not logged in automatically.

padrian commented 10 years ago

Hey,

Thanks for your responses.

I have been trying your advice. Tried changing a few things but still the plugin doesnot automatically login.

And i did not understand you when you said that roundcube and my ejjaberd need to use the same credentials because for roundcube i only need to set it up once and the different users have their own separate logins so what did you mean by roundcube and xmpp using the same credentials.

I have attached my confing.php.inc file maybe there is something i am missing.

Best regards

On Sat, Jan 25, 2014 at 7:38 AM, Priyadi Iman Nurcahyo < notifications@github.com> wrote:

Hi, the plugin is designed to use Roundcube credentials. If you are not logged in automatically, then you need to edit config.inc.php to suit your configuration. You also need to ensure both Roundcube and your XMPP server use the same credentials.

There might be some info in your log files on why you are not logged in automatically.

Reply to this email directly or view it on GitHubhttps://github.com/priyadi/roundcube-converse.js-xmpp-plugin/issues/16#issuecomment-33281054 .

priyadi commented 10 years ago

Hi,

That means Roundcube and XMPP server needs to use the same username and password. It is possible to use different username if there's a similar pattern between them (example: Roundcube uses 'user', XMPP uses 'user@example.com'). Or it may be possible to use totally different username if you can query the mapping somewhere.

The most common way of implementing unified login is to use LDAP authentication for both your IMAP and XMPP server.