Gdata -> Fatal error: Call to undefined method Zend_Gdata_HttpClient::createUser() in

131 views
Skip to first unread message

Shamil

unread,
Oct 11, 2012, 12:17:40 AM10/11/12
to google-app...@googlegroups.com
We have begun to write our own password recovery procedure for our GoogleMail users with Provisioning API but we have faced with a problem. Here are conditions for reproducing our problem.
When we are executing below code, 
  1. require_once 'Zend/Loader.php';
  2. Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
  3. Zend_Loader::loadClass('Zend_Gdata_Gapps');
  4. $client = Zend_Gdata_ClientLogin::getHttpClient("amdminuser", "adminpsw", Zend_Gdata_Gapps::AUTH_SERVICE_NAME);
  5. $client->createUser($username, $givenName, $familyName, $password, $passwordHashFunction=null, $quota=null)
it gives error 
Fatal error: Call to undefined method Zend_Gdata_HttpClient::createUser() in ....

Then we run the installation checker but it showed us this error. 

Fatal error: Uncaught exception 'Zend_Gdata_App_Exception' with message 'DOMDocument cannot parse XML: DOMDocument::loadXML(): Extra content at the end of the document in Entity, line: 1' in /web/web2/apache2/htdocs/test/per_ak/google/library/Zend/Gdata/App.php:830 Stack trace: #0 /web/web2/apache2/htdocs/test/per_ak/google/library/Zend/Gdata/App.php(789): Zend_Gdata_App::importString('importUrl('https://gdata.y...', 'Zend_Gdata_YouT...', NULL) #2 /web/web2/apache2/htdocs/test/per_ak/google/library/Zend/Gdata.php(162): Zend_Gdata_App->getFeed('https://gdata.y...', 'Zend_Gdata_YouT...') #3 /web/web2/apache2/htdocs/test/per_ak/google/library/Zend/Gdata/YouTube.php(405): Zend_Gdata->getFeed('https://gdata.y...', 'Zend_Gdata_YouT...') #4 /web/web2/apache2/htdocs/test/per_ak/google/InstallationChecker.php(282): Zend_Gdata_YouTube->getTopRatedVideoFeed() #5 /web/web2/apache2/htdocs in /web/web2/apache2/htdocs/test/per_ak/google/library/Zend/Gdata/App.php on line 830

We have downloaded http://packages.zendframework.com/releases/ZendGdata-1.12.0/ZendGdata-1.12.0.zip, installed and set appropriate include_path in php.ini. But why we face this problem. We are waiting for your help.
Thank you,
Shamil

Shamil

unread,
Oct 15, 2012, 5:49:11 AM10/15/12
to google-app...@googlegroups.com
can you help me with this issue.
Reply all
Reply to author
Forward
0 new messages