Hi Ádám,
Would you please file an issue in the issue tracker for this, if one
does not already exist, so we can track the problem through to resolution?
http://framework.zend.com/issues/secure/CreateIssue!default.jspa
Thanks!
Best regards,
Darby
Joó Ádám wrote:
On Sat, Mar 1, 2008 at 5:03 PM, Joó Ádám <[EMAIL PROTECTED]> wrote:
Hello List,
It took my a while to figure this out, but I think I found a strange
bug. Generating an Atom feed using Zend_Feed, produces only two empty
lines of output, if the provided description is longer than 1378
characters. RSS works fine.
Ádám
I still have this problem, now using RSS too. I just can't figure out
its reason. It seems that the length of the description that can be
passed in varies. But I found that, regardless of the format (Atom
description cannot contain HTML), if I wrap my description into HTML
paragraphs, it passes through.
Could somebody please help me? I don't want to put my site online,
until I don't have working feeds.
Thanks,
Ádám
PS.: Here's my code; this does not work; wrap description into <p></p>
or use shorter text and it works fine.
--------------------------------------------------
Zend_Controller_Front::getInstance()->getResponse()->setHeader('Content-Type',
'text/xml; charset="utf-8"');
$feed = array(
'charset' => 'utf-8',
'description' => 'Description',
'language' => 'hu',
'link' => 'http://example.com/feed'),
'title' => 'Title',
);
foreach ($this->items as $item) {
$feed['entries'][] = array(
'description' => 'Lorem ipsum dolor sit amet, consectetuer
adipiscing elit. Fusce accumsan. Proin volutpat velit. Fusce nec nulla
quis sem dapibus tristique.
Curabitur molestie sodales mauris. Donec massa dui, commodo bibendum,
sagittis ut, congue nec, sem. Nam molestie augue sit amet tortor.
Morbi turpis enim, semper at, convallis non, tincidunt sit amet, erat.
Aenean metus tellus, lacinia ut, egestas vitae, laoreet quis, quam.
Pellentesque volutpat feugiat risus.
Ut sit amet nunc. Nunc mollis interdum ante. Mauris sit amet odio a
enim volutpat euismod. Mauris ligula. Sed pede orci, posuere in,
egestas quis, volutpat eu, ante. In ac turpis.kjfkjfgkdjghkj dkfg
kdfgdkfjgkdjfgkj hdkfjg dkfjgdkfjghk jfhdkjfghkd jfhgdkjfghkjfg kjfkdj
gdjfgh kdjghdk jhdkjf g kjfkjfgkdjghkj dkfg kdfgdkfjgkdjfgkj hdkfjg
dkfjgdkfjghk jfhdkjfghkd jfhgdkjfghkjfg kjfkdj gdjfgh kdjghdk jhdkjf g
kjfkjfgkdjghkj dkfg kdfgdkfjgkdjfgkj',
'guid' => 'http://example.com/' . $item['id']),
'link' => 'http://example.com/' . $item['id'],
'title' => $item['name'],
);
}
$feed = Zend_Feed::importArray($feed, 'rss');
$feed->send();
--------------------------------------------------