Zend Gdata - missing HeaderValue.php

So I am following this and I'm trying to run his first php example. I get the following error:

PHP Warning: require_once(Zend/Http/Header/HeaderValue.php): failed to open stream: No such file or directory in /opt2/sites/gdataApi/ZendGdata-1.12.13/library/Zend/Http/Client.php on line 45

I checked and the file is in fact not there. So I added it from the minimial 1.12 download. It then says Zend/Xml/Security.php doesn't exist so i add it.

Now I am getting the following error:

PHP Notice: Undefined offset: 1 in /opt2/sites/gdataApi/ZendGdata-1.12.13/library/Zend/Gdata/ClientLogin.php on line 150 PHP Stack trace: PHP 1. {main}() /opt2/sites/gdataApi/test.php:0 PHP 2. Google_Spreadsheet->__construct() /opt2/sites/gdataApi/test.php:11 PHP 3. Google_Spreadsheet->login()/opt2/sites/gdataApi/Google_Spreadsheet.php:40 PHP 4. Zend_Gdata_ClientLogin::getHttpClient() /opt2/sites/gdataApi/Google_Spreadsheet.php:223 PHP Notice: Undefined variable: php_errormsg in /opt2/sites/gdataApi/ZendGdata-1.12.13/library/Zend/Gdata/App.php on line 834 PHP Stack trace: PHP 1. {main}() /opt2/sites/gdataApi/test.php:0 PHP 2. Google_Spreadsheet->addRow() /opt2/sites/gdataApi/test.php:24 PHP 3. Google_Spreadsheet->getSpreadsheetId() /opt2/sites/gdataApi/Google_Spreadsheet.php:62 PHP 4. Zend_Gdata_Spreadsheets->getSpreadsheetFeed() /opt2/sites/gdataApi/Google_Spreadsheet.php:252 PHP 5. Zend_Gdata->getFeed() /opt2/sites/gdataApi/ZendGdata-1.12.13/library/Zend/Gdata/Spreadsheets.php:150 PHP 6. Zend_Gdata_App->getFeed() /opt2/sites/gdataApi/ZendGdata-1.12.13/library/Zend/Gdata.php:162 PHP 7. Zend_Gdata_App->importUrl() /opt2/sites/gdataApi/ZendGdata-1.12.13/library/Zend/Gdata/App.php:213 PHP 8. Zend_Gdata_App::importString() /opt2/sites/gdataApi/ZendGdata-1.12.13/library/Zend/Gdata/App.php:792 PHP Fatal error: Uncaught exception 'Zend_Gdata_App_Exception' with message 'DOMDocument cannot parse XML: ' in /opt2/sites/gdataApi/ZendGdata-1.12.13/library/Zend/Gdata/App.php:833 Stack trace: #0 /opt2/sites/gdataApi/ZendGdata-1.12.13/library/Zend/Gdata/App.php(792): Zend_Gdata_App::importString('', 'Zend_Gdata_Spre...', NULL, NULL) #1 /opt2/sites/gdataApi/ZendGdata-1.12.13/library/Zend/Gdata/App.php(213): Zend_Gdata_App->importUrl('https://spreads...', 'Zend_Gdata_Spre...', NULL) #2 /opt2/sites/gdataApi/ZendGdata-1.12.13/library/Zend/Gdata.php(162): Zend_Gdata_App->getFeed('https://spreads...', 'Zend_Gdata_Spre...') #3 /opt2/sites/gdataApi/ZendGdata-1.12.13/library/Zend/Gdata/Spreadsheets.php(150): Zend_Gdata->getFeed('https://spreads...', 'Zend_Gdata_Spre...') #4 /opt2/sites/gdataApi/Google_Spreadsheet.php(252): Zend_Gdata_Spreadsheets->getSpreadsheetFeed() #5 /opt2/sites/gdataApi/Google_Spreadsheet.php(62): Google_Spreadsheet->getSpreadsheetId('test spreadshee...') #6 /opt2/sites/gdataApi/test.php(24): Google_Spreadsheet in /opt2/sites/gdataApi/ZendGdata-1.12.13/library/Zend/Gdata/App.php on line 833

I have a google spreadsheet that I would like to update programatically using php. Can you tell me whats going wrong with this script? Seems like this is an old article. Are there more recent articles I am missing?

--------------Solutions-------------

Download Zend framework minimal version. Then extract archive and copy /library/Zend/Http/Header directory to your GData's /Zend/Http/ directory.

Category:php Time:2018-11-08 Views:1

Related post

  • A windows php stand-alone compiler that works with the Zend GData library and PHP 5.2x? 2010-08-16

    I am hoping there exists a: " php stand-alone compiler that works with the Zend GData library and PHP 5.2x." For using with the following php GCAL sync software for a software called todolist. --------------Solutions------------- There are only a sma

  • Get a list of Worksheets using Zend Gdata API for PHP 2010-09-29

    I want to list all the worksheets with the name of the sheet and the "worksheetid" which is used in the API to reference the sheet. --------------Solutions------------- Here is a script you can use to output all of the worksheets and their ids for a

  • Zend Gdata - setVisibility for newEventEntry? (specify events for multiple calendars) 2009-07-23

    I know that you can use setVisibility('private-abcdefg') for newEventQuery() in order to specify a particular calendar. My question is, can I use the same concept for newEventEntry()? $gdataCal = new Zend_Gdata_Calendar($client); $newEvent = $gdataCa

  • "Unknown authorization header" while fetching google contacts using php, (zend) gdata and 2 legged oauth 2011-09-20

    I am writing a 2 Legged OAuth app (Google Marketplace app) using zend gdata library. I need to fetch google contacts. Code as given below. require_once 'Zend/Oauth/Consumer.php'; $oauthOptions = array( 'requestScheme' => Zend_Oauth::REQUEST_SCHEME

  • How to correct Zend_Uri_Exception (YouTube API with PHP Zend Gdata) 2009-01-15

    I am using Zend Gdata to interface with the YouTube API from a PHP script. I actually had this working fine, and suddenly I am getting a fatal error about a 'Zend_Uri_Exception' with message 'Invalid URI supplied'. How can I correct the exception? CO

  • PHP Fatal error: require_once(): Failed opening required 'Zend/Gdata/Extension.php' 2009-08-22

    For some strange reason I cannot figure out right now, NoEmbed.php fails with a fatal error when trying to include a file. include path is set correctly, I've verified that like below (right before the require_once directive in NoEmbed.php): $s = ini

  • Zend Gdata include path issue (Loader.php) 2011-04-28

    I've been trying to install Zend Gdata. I'm running from a dev environment so have access to php.ini. I've set the include path and when I run the verification script I get the following.. Ran PHP Installation Checker on 2011-04-28T02:25:20+00:00 PHP

  • Zend Gdata PHP API - How to set/get 'color' property for events 2011-08-11

    Possible Duplicate: Google Calendar API - PHP - set event’s color How do you set/get the 'color' property for events in Google Calendar? There is no documentation for this. It should be a case of simply... $event->color = "red"; like you would do

  • php zend gdata put a document/file into a category/folder Google Docs 2012-04-24

    How to attach a document/file to a category or folder using Zend gdata (oauth) in Google Docs ? Thank you! --------------Solutions------------- You can use Zend_Gdata_Docs::insertDocument() to add a resource to a collection/folder. See also the Googl

  • I'm using Zend gdata to open documents with hopes to read and write spreadsheet cells 2008-11-23

    I'm not good at programming and my trying to open one of my spreadsheet documents. Below in the basic login im using, I then request a list all my spreadsheet, which is returned in $feed. And now I'm worried I'm not on the right track with opening a

  • Get AuthSub current user in Zend GData 2010-09-20

    I'm using Zend Gdata to connect users to a shared Google Docs spreadsheet that serves as a backend to a custom interface. I need to track which user most recently changed the value in a particular column. I'm not aware of a way to do this using Googl

  • Zend GData YouTube API errors 2011-01-22

    Greetings, Having quite a bit of difficulty with the YouTube API. I added the Zend Gdata folder to my include_path and all of the API tests run fine, but when I try to load the YouTube API Demo App, I get the following error: Warning: include_once(Ze

  • zend gdata api showing white screen :( 2011-03-10

    I am using byethost for my project.. I am trying to install zend gdata on the server.. I copied all the file to server to "root/ladert/Zend/library" I tried running the zend installation checker.. but it gives white screen.. NO output( even in view s

  • How to parse repeating events with Zend GData? 2011-05-28

    there are plenty of tutorials on how to request and parse a list of events from Google Calendar using Zend GData. But all tutorials assume that events never repeat. (Kind of, they describe how to set up repeating events, but not how to parse / displa

  • How to create an empty spreadsheet using Zend GData 2011-07-20

    How to create a new, empty spreadsheet using Zends GData Library? --------------Solutions------------- According to the Google Documents List API, to create a new, empty spreadsheet: follow the instructions in Creating a new document or file with met

  • Getting call to non-object error while writing a row in Zend Gdata 2011-08-22

    I'm trying a very simple process of adding a row to a GoogleDocs spreadsheet using Zend GData. Just to make sure I can access the spreadsheet okay, I'm having it pull the data from the spreadsheet and print it out, then see if it can write a row. As

  • Error inserting row in Google Spreadsheet using Zend Gdata 2011-09-17

    I'm trying the simplest possible scenario to insert row in Google Spreadsheet using Zend Gdata 1.11 library. Spreadsheet has word 'Kolona' in cell A1. Here is entire php file: <?php require_once 'Zend/Loader.php'; Zend_Loader::loadClass('Zend_Gdat

  • Using Zend Gdata in Yii framework 2011-09-21

    I am trying to fetch some photos from Picasa by Zend Gdata. This is my code: public function getAlbumFeed($albumName){ require_once('Zend/Loader.php'); spl_autoload_unregister(array('YiiBase','autoload')); spl_autoload_register(array('Zend_Loader_Aut

  • Error Loading Zend Gdata framework into Wordpress 2011-10-31

    I am trying to use the Zend Gdata framework with wordpress but I am having some issues. Now everything works perfectly fine when I test on localhost with XAMPP. However on my web server my code breaks down. Here is my code to include the framework. `

Copyright (C) pcaskme.com, All Rights Reserved.

processed in 0.904 (s). 15 q(s)