Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: lobsterman on September 01, 2012, 09:03:44 PM

Title: google_contacts internal server error
Post by: lobsterman on September 01, 2012, 09:03:44 PM
Has this been solved?

Running RC on a Bluehost shared server and all works well but the g_c plugin always throws an INTERNAL SERVER ERROR, with no error code.

RC 0.8.1

Grateful for any pointers.
Title: Re: google_contacts internal server error
Post by: SKaero on September 02, 2012, 04:36:38 AM
Whats in the error log?
Title: Re: google_contacts internal server error
Post by: lobsterman on September 02, 2012, 10:08:19 AM
/rcinstall/error_log

I cleared the log, re-enabled the plugin, entered the g_c login info (which I know to be valid), click on AB/Google Contacts and it throws the error.

Return to the log, no entry showing.

debug_level is set to "1"

Running on what I think is Redhat at Bluehost:
PHP version   5.2.17
MySQL version   5.1.65-community-log
Architecture   x86_64
Operating system   linux
Title: Re: google_contacts internal server error
Post by: SKaero on September 02, 2012, 12:39:30 PM
The error log should be in <RC root>/logs/errors
Title: Re: google_contacts internal server error
Post by: lobsterman on September 02, 2012, 02:26:13 PM
Thanks, that helped! Looks like a Zend issue; I'll have to work on it.
Title: Re: google_contacts internal server error
Post by: lobsterman on September 02, 2012, 03:05:58 PM
This is the error:
Quote[02-Sep-2012 12:58:22 -0600]: Plugin google_contacts: Zend GData API not installed (http://framework.zend.com/download/webservices)

I've tried following this page for the install but with no luck.
http://www.grosseosterhues.com/2011/08/adding-google-contacts-to-roundcube-webmail/#Installation_of_Zend_package (http://www.grosseosterhues.com/2011/08/adding-google-contacts-to-roundcube-webmail/#Installation_of_Zend_package)

Any pointers that might help?
Title: Re: google_contacts internal server error
Post by: SKaero on September 03, 2012, 01:35:19 AM
What does your <RC root>/program/libs/ folder structure look like?
Title: Re: google_contacts internal server error
Post by: Volnhar on September 03, 2012, 02:15:16 AM
Your programs directory for Zend should look like this.

/roundcube/program/lib/Zend

Under Zend, you'll have a lot of other files and a few directories as well.

I've used this under RC8 and now RC9 Git. I can't remember if I had to make any changes to get it working, pretty sure 8 should be ok.
Title: Re: google_contacts internal server error
Post by: lobsterman on September 03, 2012, 06:48:22 AM
That's how it looks. Still no luck after re-loading the files and disabling, re-enabling it.

Zend: ZendGdata-1.12.0

Error log:

Quote[03-Sep-2012 04:42:47 -0600]: Plugin google_contacts: Zend GData API not installed (http://framework.zend.com/download/webservices)
[03-Sep-2012 10:42:47 UTC] PHP Fatal error:  Class 'Zend_Gdata_ClientLogin' not found in /home1/myDomain/public_html/rc/plugins/google_contacts/google_contacts.php on line 578

(changed the user item in that string)

This is on a shared host at Bluehost.
Title: Re: google_contacts internal server error
Post by: lobsterman on September 06, 2012, 03:59:16 PM
Is there some way to test the Zend GData install? The directory structure appears to be correct.
Title: Re: google_contacts internal server error
Post by: Yoni on September 07, 2012, 10:29:05 PM
Just download Zend GData, extract it and upload the Zend folder into your .../program/lib/ folder. That's all

I have a working version if you need it I can provide a download link if absolutely necessary.
Title: Re: google_contacts internal server error
Post by: lobsterman on September 08, 2012, 10:32:14 AM
I think I have that correct and now it throws a Bad Authentication error and causes Google to make me change my password as gmail thinks the login attempt is suspicious.

Error log:

Quote[08-Sep-2012 08:28:50 -0600]: PHP Error: Deprecated hook name. imap_init -> storage_init in /home1/myUsernameOnServer/public_html/rc/program/include/rcube_plugin_api.php on line 221 (GET /rc/?_task=mail&_action=check-recent&_mbox=INBOX&_list=1&_quota=1&_remote=1&_unlock=0&_=1347114531132)
Title: Re: google_contacts internal server error
Post by: Yoni on September 08, 2012, 12:51:54 PM
Which version of the plugin are you using?

I just tested it and I cannot replicate the bad authentication issue. Can you please try with our online demos?
Title: Re: google_contacts internal server error
Post by: lobsterman on September 08, 2012, 05:46:43 PM
RC:       0.8.1
G-C:     google_contacts-2.11.tar.gz
Zend:   ZendGdata-1.12.0

shared hosting at Bluehost

Sure, where are those demos?

Edited main.inc.php so google_contacts is th eonly plugin enabled:

Quote$rcmail_config['plugins'] = array('google_contacts');

Here are the latest error log entries:

Quote[08-Sep-2012 15:43:36 -0600]: Plugin google_contacts: Zend GData API not installed (http://framework.zend.com/download/webservices)
[08-Sep-2012 21:43:36 UTC] PHP Fatal error:  Class 'Zend_Gdata_ClientLogin' not found in /home1/suiattl1/public_html/rc/plugins/google_contacts/google_contacts.php on line 578
Title: Re: google_contacts internal server error
Post by: Yoni on September 08, 2012, 06:23:22 PM
Demos can be found at http://myroundcube.com

My signature has a link to one of them too.
Title: Re: google_contacts internal server error
Post by: lobsterman on September 16, 2012, 03:12:31 PM
Quote from: Yoni on September 08, 2012, 12:51:54 PM
Which version of the plugin are you using?

I just tested it and I cannot replicate the bad authentication issue. Can you please try with our online demos?

g_c 2.11

OK, problem solved, I guess.

Google kept thinking my account was being hacked so it force-changed my password every attempt. I finally sorted it out by going to this page:

http://support.google.com/mail/bin/answer.py?hl=en&answer=14257&p=client_login (http://support.google.com/mail/bin/answer.py?hl=en&answer=14257&p=client_login)

which in turn led me to item 3 in the list on that page:

http://www.google.com/accounts/DisplayUnlockCaptcha (http://www.google.com/accounts/DisplayUnlockCaptcha)

and it gives you a ten minute window to sign in the with google_contacts setup.

The README for this plugin needs an explanation about this potential I think.

Thanks for your patience!