Zend Framework

Call to undefined function getCommentCount()

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.9.5
  • Fix Version/s: 1.9.6
  • Component/s: Zend_Feed_Reader
  • Labels:
    None

Description

When importing the following feed:

http://vermontdailynews.com/feed/atom/

and then iterating through the Entries and calling getCommentCount() on each, I get the following error:

Fatal error: Call to undefined function getCommentCount() in path\to\library\Zend\Feed\Reader\Entry\Atom.php on line 298

Activity

Hide
Thierry Jossermoz added a comment - - edited

Hi,

There was a typo in Zend_Feed_Reader_Entry_Atom on line 298:

$commentcount = $this->getExtension('Thread')>getCommentCount();

Attached patch fixes the issue:

$commentcount = $this->getExtension('Thread')->getCommentCount();

Show
Thierry Jossermoz added a comment - - edited Hi, There was a typo in Zend_Feed_Reader_Entry_Atom on line 298: $commentcount = $this->getExtension('Thread')>getCommentCount(); Attached patch fixes the issue: $commentcount = $this->getExtension('Thread')->getCommentCount();
Hide
Pádraic Brady added a comment -

Fixed in r19192.

Extremely silly oversight on my part - I've added a task to add test coverage for the method in Atomland which is apparently missing. May have missed it in a commit previously.

Show
Pádraic Brady added a comment - Fixed in r19192. Extremely silly oversight on my part - I've added a task to add test coverage for the method in Atomland which is apparently missing. May have missed it in a commit previously.
Hide
Pádraic Brady added a comment -

Reopen to set fix version to next mini release

Show
Pádraic Brady added a comment - Reopen to set fix version to next mini release
Hide
Bradley Holt added a comment -

Seems to be working fine now, thanks!

Show
Bradley Holt added a comment - Seems to be working fine now, thanks!

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: