Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-31-2007, 03:39 PM
Junior Member
 
Join Date: Oct 2007
Posts: 1
Default Zend_Feed problem

I recently had to recover a web server by installing everything from scratch. It appears I was only about 95% accurate in recovering the environment. Most everything seems to be working. The exception is a program module I wrote using the Zend Framework Zend_Feed classes. This was working perfectly prior to my reinstallation. The PHP program has not changed, but now I get an Error 500 from the “new” web server. My guess is I do not have the environment set up the same way. Can anyone help me discover what could be missing? I have checked the php.ini file and the httpd.conf files and cannot find anything. The new OS is Linux Fedora 7; the old OS was FC 6. I also upgraded the Zend Framework to a newer version.

Here is the code that is not working. Pretty much right out of the example in Zend Framework.

require_once 'Zend/Feed.php';
// Fetch the latest Slashdot headlines
try {
$slashdotRss = Zend_Feed::import($site);
} catch (Zend_Feed_Exception $e) {
// feed import failed
echo "Exception caught importing feed: {$e->getMessage()}\n";
echo "<br />report problem to webmaster<br />";
// exit;
}// Initialize the channel data array

It dies when trying never reaches the catch exception. The $site variable is set correctly. The URL works from the browser address line so I know it is still there. Any help would be appreciated.

Last edited by johnsereno : 11-16-2007 at 12:25 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:21 AM.