Bin,
The error message you provided isn't really very specific and I don't know
what your method useRest does specifically. So I'd recommend some basic
troubleshooting steps to start with.
First, I'd say you have one of two things going on: something changed that
broke your script or your script always had a defect and you hit some edge
case that manifested the defect. I don't mean to be Captian Obvious, but
sometimes when you are tracking a bug you forget the obvious stuff and start
taking drastic measures (like reverting back to an older version of Ubuntu.)
Or maybe that's just me.
1) Think about what changed. Did you get a new version of PHP with the
upgrade? What about curl? And how likely do you think it would be that
these changes would break your app (small, I'd think).
2) make sure the url you are giving curl is a valid one. You can simply do
this via the command line by using curlto access the url. Perhaps the
changes that borked stuff for you wasn't the version of Linux you were
running, but instead the uri of the RESTful service you are trying to hit.
Or maybe the service was down. Or maybe you had network problems. Can you
connect to the uri using methods other than curl?
3) Use the source. I don't know what is those methods you are calling are
trying to do. But look at the source code and check to see if perhaps you
are hitting some condition that was never seen before. That might equip you
to ask a more specific question if nothing else.
HTH
Chris Moyers | Biodiversity Heritage Library | MO Botanical Garden
On Wed, Dec 10, 2008 at 10:53 AM, Bin Zhang <[log in to unmask]> wrote:
> Hi,
>
>
>
> We have a local application that searches and plays youtube videos using
> the Services_YouTube module. It has been working fine, until we upgraded
> ubuntu to hardy. Here is the error:
>
>
> Fatal error: Uncaught <table border="1" cellspacing="0"> <tr><td
> colspan="3" bgcolor="#ff9999"> <b>Services_YouTube_Exception</b>: Curl
> returned non-null errno 26:Failed to open/read local data from
> file/application in <b>/usr/share/php/Services/YouTube.php</b> on line
> <b>310</b></td></tr> <tr><td colspan="3" bgcolor="#aaaaaa"
> align="center"><b>Exception trace</b></td></tr> <tr><td align="center"
> bgcolor="#cccccc" width="20"><b>#</b></td><td align="center"
> bgcolor="#cccccc"><b>Function</b></td><td align="center"
> bgcolor="#cccccc"><b>Location</b></td></tr> <tr><td
> align="center">0</td><td>Services_YouTube->useRest('youtube.videos.l…',
> Array)</td><td>/usr/share/php/Services/YouTube.php:310</td></tr> <tr><td
> align="center">1</td><td>Services_YouTube->sendRequest('youtube.videos.',
> 'list_by_tag',
> Array)</td><td>/usr/share/php/Services/YouTube.php:252</td></tr> <tr><td
> align="center">2</td><td>Services_YouTube->listByTag('obama')</td><td>/data/www/locus/YouTubeAPI.class.php:132</td></tr>
> <tr><td align="center">3</td><td in /usr/share/php/Services/YouTube.php on
> line 354
>
>
>
> Has anyone seen this or know what could be done to fix?
>
>
>
> Thanks!
>
>
>
> Bin Zhang
>
> Digital Information Services Librarian
>
> Library Systems & Information Technology Services
>
> California State University, Sacramento
>
> 2000 State University Drive, East, Sacramento, CA 95819-6039
>
> +1 916 278-5664 (office); +1 916 278-3891 (fax)
>
> [log in to unmask]
>
>
>
>
>
>
>
>
|