This feed used to work on my old server, and now that I have moved it over to a new server, I get the following error message:
Fatal error: Call to undefined function: fetch_rss() in /homepages/38/d134451434/htdocs/wsc134451438/includes/footer.php on line 47
I made sure to move over all of the Magpie files, and it still isn't working. Here is the page below:
PHP Code:
<div id="footer">
<div id="footercontentleft">
<div id="newsletter">
<h2 id="h2_newsletter">Newsletter</h2>
<?php
if (isset($_POST['newslettersubmit'])) {
// Initialize error array
$errors = array();
// Gather variables
if (!empty($_POST['newsletteremail'])) {
$newsletteremail = stripslashes($_POST['newsletteremail']);
} else {
$errors[] = "You must enter an EMAIL ADDRESS.";
$newsletteremail = NULL;
}
if (empty($errors)) {
// Send confirmation email
$body = "A request has been sent to add the following email address to your email newsletter list:\n\n";
$body .= "$newsletteremail";
mail ("info@jameswebdevelopment.com","Alchemy Theatre - Email Newsletter Request",$body,"From: $newsletteremail");
echo "Thanks for signing up!";
} else {
echo '<h3>Error!</h3>';
foreach ($errors as $msg) {
echo "<p>$msg</p>";
}
}
}
?>
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<div><label for="newsletteremail">Email</label><input type="text" name="newsletteremail" /></div>
<div><input type="submit" name="newslettersubmit" src="http://www.alchemytheatre.org/pics/buttons/newslettersignup.png" /></div>
</form>
</div>
<div id="sponsors">
<h2 id="h2_sponsors">Sponsors</h2>
<p>The Alchemy Theatre Company of Manhattan is a resident theatre company at…</p>
<p><a href="http://www.theatrerow.org"><img src="http://www.alchemytheatre.org/pics/theatrerow.png" alt="Theatre Row on 42nd Street" /></a></p>
</div>
</div>
<div id="footercontentright">
<div id="latestblogpost">
<h2 id="h2_latestblogpost">Latest Blog Post</h2>
<?php
include ('http://www.alchemytheatre.org/magpie/rss_fetch.inc');
error_reporting(E_ERROR);
$rss = fetch_rss("http://www.alchemytheatre.org/blog/?feed=rss2");
if ($rss) {
echo '<h3><a href="' . $rss->items[0]['link'] . '">' . $rss->items[0]['title'] . '</a></h3>' . "\n";
echo '<p>' . $rss->items[0]['description'] . '</p>' . "\n";
echo '<p>Published ' . $rss->items[0]['pubdate'] . '.</p>' . "\n";
} else {
echo '<h3>Error:</h3><p>'.magpie_error().'</p>';
}
@ini_restore('error_reporting');
?>
</div>
<div id="navbarbottom">
<p>Alchemy Theatre | c/o Theatre Row | 410 W. 42nd Street, Office 4E3 | New York, NY 10036<br />T: (212) 967-0901 | F: (646) 304-5657 | E-mail: <a href="mailto:info@alchemytheatre.org">info@alchemytheatre.org</a></p>
<p class="nomargin">Copyright © 2009, Alchemy Theatre Company of Manhattan. All rights reserved.</p>
<p class="nomargin"><a href="http://www.alchemytheatre.org/buytickets/">Buy Tickets</a> | <a href="http://www.alchemytheatre.org/ourseason/">Our Season</a> | <a href="http://www.alchemytheatre.org/aboutus/">About Us</a> | <a href="http://www.alchemytheatre.org/support/">Support</a> | <a href="http://www.alchemytheatre.org/ourcommunity/">Linking to our Community</a> | <a href="http://www.alchemytheatre.org/press/">Press</a><br /><a href="http://www.alchemytheatre.org/contactus/">Contact Us</a> | <a href="http://www.alchemytheatre.org/blog/">Blog</a> | <a href="http://www.alchemytheatre.org/privacy.php">Privacy</a> | <a href="mailto:info@jameswebdevelopment.com">Webmaster</a></p>
<div class="clear"> </div>
</div>
</div>
</div>
I have triple checked that the path to rss_fetch.inc is right, so I know that isn't the issue.
Any thoughts?
Bookmarks