Author Topic: google_contacts internal server error  (Read 11495 times)

Offline lobsterman

  • Jr. Member
  • **
  • Posts: 24
google_contacts internal server error
« 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.
« Last Edit: September 01, 2012, 09:06:07 PM by lobsterman »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
Re: google_contacts internal server error
« Reply #1 on: September 02, 2012, 04:36:38 AM »
Whats in the error log?

Offline lobsterman

  • Jr. Member
  • **
  • Posts: 24
Re: google_contacts internal server error
« Reply #2 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

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
Re: google_contacts internal server error
« Reply #3 on: September 02, 2012, 12:39:30 PM »
The error log should be in <RC root>/logs/errors

Offline lobsterman

  • Jr. Member
  • **
  • Posts: 24
Re: google_contacts internal server error
« Reply #4 on: September 02, 2012, 02:26:13 PM »
Thanks, that helped! Looks like a Zend issue; I'll have to work on it.

Offline lobsterman

  • Jr. Member
  • **
  • Posts: 24
Re: google_contacts internal server error
« Reply #5 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

Any pointers that might help?

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
Re: google_contacts internal server error
« Reply #6 on: September 03, 2012, 01:35:19 AM »
What does your <RC root>/program/libs/ folder structure look like?

Offline Volnhar

  • Jr. Member
  • **
  • Posts: 39
    • http://www.andrew.stoker.name/wp
Re: google_contacts internal server error
« Reply #7 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.

Offline lobsterman

  • Jr. Member
  • **
  • Posts: 24
Re: google_contacts internal server error
« Reply #8 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.
« Last Edit: September 03, 2012, 09:37:01 AM by lobsterman »

Offline lobsterman

  • Jr. Member
  • **
  • Posts: 24
Re: google_contacts internal server error
« Reply #9 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.

Offline Yoni

  • Full Member
  • ***
  • Posts: 164
    • MyRoundcube
Re: google_contacts internal server error
« Reply #10 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.

Offline lobsterman

  • Jr. Member
  • **
  • Posts: 24
Re: google_contacts internal server error
« Reply #11 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)

Offline Yoni

  • Full Member
  • ***
  • Posts: 164
    • MyRoundcube
Re: google_contacts internal server error
« Reply #12 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?

Offline lobsterman

  • Jr. Member
  • **
  • Posts: 24
Re: google_contacts internal server error
« Reply #13 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
« Last Edit: September 08, 2012, 05:48:43 PM by lobsterman »

Offline Yoni

  • Full Member
  • ***
  • Posts: 164
    • MyRoundcube
Re: google_contacts internal server error
« Reply #14 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.