Change in APC for Magento stops SimplePie from working -



Change in APC for Magento stops SimplePie from working -

we have been using simplepie on our magento install pull our blog posts our home page without issue several months now. due other issues magento, had our web host turn off opcode in apc. 1 time did that, next hourly update of simplepie stopped loading of home page , returns next error in apache:

[wed jan 18 09:59:57 2012] [error] php fatal error: class 'zend_log' not found in {server root}/lib/simplepie/simplepie.inc on line 738

i @ bit of loss on happening , prepare it. simplepie delivered banner/widget if set on different category page same results. (page stops @ simplepie command) hoping simple alter forcing old chached rss remain , can not modified not sure.

any help appreciated! code simplepie unaltered , version 1.2.1. have page /app/design/frontend/default/default/template/page/html/blog.phtml has next code.

<div class="col-narrow right sidebar-blog"> <h2>our gardening blog</h2> <?php // create sure simplepie included. may need alter match location of require_once('lib/simplepie/simplepie.inc'); // we'll process feed of default options. $feed = new simplepie(); // set feed process. $feed->set_feed_url('http://blog.americanmeadows.com/feed/'); // run simplepie. $feed->init(); // makes sure content sent browser text/html , utf-8 $feed->handle_content_type(); /* here, we'll loop through of items in feed, , $item represents current item in loop. */ foreach ($feed->get_items(0,2) $rss_item): ?> <div class="article-teaser"> <p><span><?php echo $rss_item->get_date('f j, y'); ?></span></p> <h2 class="article-title"><a href="<?php echo $rss_item->get_permalink(); ?>"><?php echo $rss_item->get_title(); ?></a></h2> <?php if ($rss_item->get_item_tags('', 'thumbnail')) {$thumbnail = $rss_item->get_item_tags('', 'thumbnail'); echo "<img src='" . $thumbnail[0]['data'] . "'>"; } ?> <p><?php echo $rss_item->get_description(); ?> <a class="more" href="<?php echo $rss_item->get_permalink(); ?>" target="_blank">continue reading</a></p> </div> <?php endforeach; ?> </div>

i have banner calls following

{{block type="page/html" template="page/html/blog.phtml"}}

i include banner in left column widget on our home page have display.

the lines in simplepie throwing error

function simplepie($feed_url = null, $cache_location = null, $cache_duration = null) { // other objects, instances created here can set options on them $this->sanitize =& new simplepie_sanitize; /* error thrown here */ // set options if they're passed constructor if ($cache_location !== null) { $this->set_cache_location($cache_location); }

i think need happy post more.

my thought here somewhere setting zend_log error logger. check set_error_handler() in code , see if that's beingness registered anywhere. (you double check causing error trigger_error() , seeing happens.)

as why error occurring, i'd hazard guess @ beingness because you're using 1.2.1 php 4, give e_deprecated errors when assigning new reference (such on line).

magento apc simplepie

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -