Abstract Views and PDF Download Counts no longer working in OJS 3.5.0.1

I have upgraded to OJS 3.5.0.1 and since then my Abstract Views and Download Counter no longer works and is showing Server Error 500.

Here’s the code I added to templates/frontend/objects/article_summary.tpl

<li><span class="cmp_button_wire" ><i class="fa fa-eye"></i> {$article->getViews()} </span></li>
<li><span class="cmp_button_wire" ><i class="fa fa-download"></i> {$galley->getViews()} </span></li>

However, in OJS 3.5.0.1, these codes are throwing 500 error. Can anyone help me with the updated code please.

Thank you.

Rahul Ranjan

Hi @1amrahulranjan,

Have you checked your PHP error logs for messages there? That might provide more clues.

-Roger
PKP Team

PHP message: PHP Fatal error:  Uncaught Error: Call to undefined method APP\submission\Submission::getViews() in /home/www/jom.htp.ac.id/cache/t_compile/ecff5f98702ff1f13016ec56f91cc894676856e4^7cf1cd52b8ba8108de77f197078de34b733dd394_0.app.frontendobjectsarticle_summary.tpl.php:108