atom feed2 messages in com.googlegroups.google-docs-data-apisRe: PHP Fatal error: Class 'Zend_Gdat...
FromSent OnAttachments
jwopitzMay 17, 2008 1:27 am 
jwopitzMay 18, 2008 5:28 pm 
Subject:Re: PHP Fatal error: Class 'Zend_Gdata_AuthSub' not found in
From:jwopitz (jwop@gmail.com)
Date:May 18, 2008 5:28:39 pm
List:com.googlegroups.google-docs-data-apis

Ok so I figured out what my issue was. For others who might encounter similar issues:

Even though my include_path in the php.ini files was pointing to the correct locations, it was not picking those classes up. include_path = ".:/Applications/MAMP/bin/php5/lib/php:/usr/local/Zend"

So I basically created a link called /Applications/MAMP/bin/php5/lib/ Zend which points the Zend install location. Then I pointed with this: include_path = ".:/Applications/MAMP/bin/php5/lib"

Now it works. Maybe it was some issue with MAMP's PHP locating that additional file location. Who knows.

Hello folks.

I am just now diving into the Docs API using the PHP client lib to work with a Flex GUI. Right now I am just trying to do something simple to get a multi-user authorization token. I keep getting - PHP Fatal error: Class 'Zend_Gdata_AuthSub' not found in ... my specific file.

I am running PHP5, via MAMP on Leopard. According to the phpInfo I do have openSSL enabled and I do have the Zend framework installed with the php.ini pointing to it.

Any suggestions? Any help is greatly appreciated. Thanks in advance.

Enclosed (& neatly sectioned off for easy reading) are my php log output and some choice bits from my phpinfo and the php file that I am trying to do the authorization token.

///////////////////////////// PHP LOG ////////////////////////// [17-May-2008 04:24:42] PHP Warning: include_once(/usr/local/Zend/ Gdata/AuthSub.php) [<a href='function.include-once'>function.include- once</a>]: failed to open stream: No such file or directory in /proj/ server/taskboardApp/services/authSubToken.php on line 3 [17-May-2008 04:24:42] PHP Warning: include_once() [<a href='function.include'>function.include</a>]: Failed opening '/usr/ local/Zend/Gdata/AuthSub.php' for inclusion (include_path='.:/ Applications/MAMP/bin/php5/lib/php:/usr/local/Zend') in /proj/server/ taskboardApp/services/authSubToken.php on line 3 [17-May-2008 04:24:42] PHP Fatal error: Class 'Zend_Gdata_AuthSub' not found in /proj/server/taskboardApp/services/authSubToken.php on line 12

//////////////////////////////// PHP INFO ////////////////////////////// PHP Version 5.2.5

System Darwin justin-opitzs-macbook-pro.local 9.2.2 Darwin Kernel Version 9.2.2: Tue Mar 4 21:17:34 PST 2008; root:xnu-1228.4.31~1/ RELEASE_I386 i386 Build Date Nov 29 2007 09:28:09 Configure Command './configure' '--with-mysql=/Applications/MAMP/ Library' '--with-apxs2=/Applications/MAMP/Library/bin/apxs' '--with- gd' '--with-jpeg-dir=/Applications/MAMP/Library' '--with-png-dir=/ Applications/MAMP/Library' '--with-zlib' '--with-freetype-dir=/ Applications/MAMP/Library' '--prefix=/Applications/MAMP/bin/php5' '-- exec-prefix=/Applications/MAMP/bin/php5' '--sysconfdir=/Applications/ MAMP/conf/php5' '--with-soap' '--with-config-file-path=/Applications/ MAMP/conf/php5' '--enable-track-vars' '--enable-bcmath' '--enable-ftp' '--enable-gd-native-ttf' '--with-bz2=/usr' '--with-ldap' '--with- mysqli=/Applications/MAMP/Library/bin/mysql_config' '--with-sqlite' '-- with-ttf' '--with-t1lib=/Applications/MAMP/Library' '--enable- mbstring=all' '--with-curl=/Applications/MAMP/Library' '--enable-dbx' '--enable-sockets' '--enable-bcmath' '--with-imap=shared,/Applications/ MAMP/Library/lib/imap-2006i' '--enable-soap' '--with-kerberos' '-- enable-calendar' '--with-pgsql=shared,/Applications/MAMP/Library/pg' '--enable-dbase' '--enable-exif' '--with-libxml-dir=/Applications/MAMP/ Library' '--with-gettext=shared,/Applications/MAMP/Library' '--with- xsl=/Applications/MAMP/Library' '--with-pdo-mysql=shared,/Applications/ MAMP/Library' '--with-pdo-pgsql=shared,/Applications/MAMP/Library/pg' '--with-mcrypt=shared,/Applications/MAMP/Library' '--with-openssl' Server API Apache 2.0 Handler Virtual Directory Support disabled Configuration File (php.ini) Path /Applications/MAMP/conf/php5 Loaded Configuration File /Applications/MAMP/conf/php5/php.ini PHP API 20041225 PHP Extension 20060613 Zend Extension 220060519 Debug Build no Thread Safety disabled Zend Memory Manager enabled IPv6 Support enabled Registered PHP Streams php, file, data, http, ftp, compress.bzip2, compress.zlib, https, ftps Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls Registered Stream Filters string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, bzip2.*, zlib.*

//////////////////////////// THE SAMPLE FILE I AM TRYING TO FIRE OFF ////////////////////////////// <?php

include_once '/usr/local/Zend/Gdata/AuthSub.php';

function getAuthSubUrl() { $next = 'http://localhost:8888/taskboardApp/TaskboardApp.html'; $scope = 'http://docs.google.com/feeds/documents'; $secure = false; $session = true;

return Zend_Gdata_AuthSub::getAuthSubTokenUri($next, $scope, $secure, $session);

}

/*$gData = 'https://www.google.com/accounts/AuthSubRequest'; $next = 'http://localhost:8888/taskboardApp/TaskboardApp.html'; $scope = 'http://docs.google.com/feeds/documents'; $secure = 0; $session = 1;*/

$authSubUrl = getAuthSubUrl(); //$gData . '?next=' . urlencode($next) . '&scope=' . urlencode($scope) . '&session=' . urlencode($session); echo '<a href="' . $authSubUrl . '">Click here to authenticate</a>';