Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chat module doesnot appear #16

Open
padrian opened this issue Jan 21, 2014 · 25 comments
Open

chat module doesnot appear #16

padrian opened this issue Jan 21, 2014 · 25 comments

Comments

@padrian
Copy link

padrian commented Jan 21, 2014

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

Please help.

Baba

@padrian
Copy link
Author

padrian commented Jan 21, 2014

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

What could cause this ?

help urgently needed.

@priyadi
Copy link
Owner

priyadi commented Jan 22, 2014

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

@padrian
Copy link
Author

padrian commented Jan 22, 2014

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 <
[email protected]> 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//issues/16#issuecomment-32991212
.

@priyadi
Copy link
Owner

priyadi commented Jan 22, 2014

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
Copy link
Author

padrian commented Jan 23, 2014

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 <
[email protected]> 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//issues/16#issuecomment-33019722
.

@priyadi
Copy link
Owner

priyadi commented Jan 23, 2014

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

@padrian
Copy link
Author

padrian commented Jan 23, 2014

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 <
[email protected]> 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//issues/16#issuecomment-33116539
.

@priyadi
Copy link
Owner

priyadi commented Jan 23, 2014

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

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

@padrian
Copy link
Author

padrian commented Jan 23, 2014

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 <
[email protected]> 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//issues/16#issuecomment-33120719
.

@priyadi
Copy link
Owner

priyadi commented Jan 23, 2014

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
Copy link
Author

padrian commented Jan 23, 2014

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 <
[email protected]> 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//issues/16#issuecomment-33121968
.

@priyadi
Copy link
Owner

priyadi commented Jan 23, 2014

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
Copy link
Author

padrian commented Jan 23, 2014

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 <
[email protected]> 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//issues/16#issuecomment-33124075
.

@priyadi
Copy link
Owner

priyadi commented Jan 23, 2014

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
Copy link
Owner

priyadi commented Jan 23, 2014

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

@padrian
Copy link
Author

padrian commented Jan 23, 2014

No actually i am using ubuntu server 12.04.2 LTS

On Thu, Jan 23, 2014 at 7:18 PM, Priyadi Iman Nurcahyo <
[email protected]> 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//issues/16#issuecomment-33139200
.

@priyadi
Copy link
Owner

priyadi commented Jan 23, 2014

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

@padrian
Copy link
Author

padrian commented Jan 24, 2014

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 <
[email protected]> 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//issues/16#issuecomment-33160904
.

@padrian
Copy link
Author

padrian commented Jan 24, 2014

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 [email protected]:

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 <
[email protected]> 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//issues/16#issuecomment-33160904
.

@padrian
Copy link
Author

padrian commented Jan 24, 2014

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 [email protected]:

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 [email protected]:

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 <
[email protected]> 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//issues/16#issuecomment-33160904
.

@priyadi
Copy link
Owner

priyadi commented Jan 24, 2014

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

@padrian
Copy link
Author

padrian commented Jan 24, 2014

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 <
[email protected]> 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//issues/16#issuecomment-33212753
.

@priyadi
Copy link
Owner

priyadi commented Jan 25, 2014

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
Copy link
Author

padrian commented Jan 29, 2014

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 <
[email protected]> 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//issues/16#issuecomment-33281054
.

@priyadi
Copy link
Owner

priyadi commented Jan 31, 2014

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 '[email protected]'). 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants