We are moving to Git Issues for bug tracking in future releases. During transition, content will be in both tools. If you'd like to file a new bug, please create an issue.

Bug 7025 - Call to undefined method PublishedArticle::getDateModified() in atom.tpl
Call to undefined method PublishedArticle::getDateModified() in atom.tpl
Status: RESOLVED DUPLICATE of bug 6729
Product: OJS
Classification: Unclassified
Component: Plug-ins
All All
: P3 normal
Assigned To: James MacGregor
Depends on:
  Show dependency treegraph
Reported: 2012-01-16 12:22 PST by Charles Parker
Modified: 2012-03-12 10:44 PDT (History)
1 user (show)

See Also:
Version Reported In:
Also Affects:


Note You need to log in before you can comment on or make changes to this bug.
Description Charles Parker 2012-01-16 12:22:55 PST
PHP Fatal error:
Call to undefined method PublishedArticle::getDateModified()
in cache/t_compile/%%83^834^8342F6E1%%atom.tpl.php on line 24

lines 17-25:

{* Figure out feed updated date *}
{assign var=latestDate value=$issue->getDatePublished()}
{foreach name=sections from=$publishedArticles item=section}
  {foreach from=$section.articles item=article}
    {if $article->getDateModified() > $latestDate}
      {assign var=latestDate value=$article->getDateModified()}

PublishedArticle::getDateModified() is not a function.

The closest thing I see is on the parent object:
Comment 1 Alec Smecher 2012-01-17 06:06:10 PST
James, this is related to the Google Scholar metadata changes.
Comment 2 James MacGregor 2012-03-12 10:44:23 PDT

*** This bug has been marked as a duplicate of bug 6729 ***