OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



fatal error when viewing abstract

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

fatal error when viewing abstract

Postby linde111 » Tue Mar 27, 2007 8:15 am

Hi Alec,

We get the following error on the abstract page after clicking an abstract link on the issue page:

Fatal error: Call to a member function getAbstractsDisabled() on a non-object in /usr/local/etc/webroot/virtual/ojs-test/ojs2/cache/t_compile/%%38^38D^38D7420B%%article.tpl.php on line 106

See also: http://relief-test.library.uu.nl/index. ... le/view/16

We've got no clue yet how to solve this problem.

Thanks,

Gerard vd Linde
Utrecht University Library
linde111
 
Posts: 4
Joined: Fri Mar 09, 2007 8:58 am

Postby asmecher » Tue Mar 27, 2007 8:59 am

Hi Gerard,

It looks like your article isn't assigned to a section; probably either the section was deleted, or the submission was imported from an OJS 1.x journal which sometimes allowed sectionless articles. Go to the submission's Summary page and assign it to a section; that should correct the problem.

Regards,
Alec Smecher
Open Journal Systems Team
---
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
http://ocs.sfu.ca/pkp2007/
asmecher
 
Posts: 9050
Joined: Wed Aug 10, 2005 12:56 pm

Re: fatal error when viewing abstract

Postby marlonvanderlinde » Wed Nov 26, 2008 5:31 am

Hi Alec,

We have a fresh new install, and section etc is filled in and chosen, but get the exact same error.
Thought I would mention this, seeing as I am struggling to find a quick fix, and Gerhard seemingly also still requires a fix ( and shares my surname :P )
This is for 2.2.2

Edit: Oh, I see this has been over a year ago, damn.
marlonvanderlinde
 
Posts: 39
Joined: Thu Mar 06, 2008 12:28 am

Re: fatal error when viewing abstract

Postby marlonvanderlinde » Wed Nov 26, 2008 5:51 am

New info on this bug:

/index.php/JEMDSA/manager/editSection/1
(Journal Manager, Sections, NEWS-edit)

The second checkbutton is:
##manager.sections.abstractsDisabled##

Surely something is broken in the code surrounding this "getAbstracts" function?
marlonvanderlinde
 
Posts: 39
Joined: Thu Mar 06, 2008 12:28 am

Re: fatal error when viewing abstract

Postby asmecher » Wed Nov 26, 2008 9:39 am

Hi Marlon,

Are you sure this is a clean 2.2.2 installation? Was it upgraded from an earlier release, and if so, how? If you get ##something.like.this##, it means that the locale key by that name couldn't be found in the locale file (typically locale/en_US/locale.xml).

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9050
Joined: Wed Aug 10, 2005 12:56 pm

Re: fatal error when viewing abstract

Postby marlonvanderlinde » Thu Dec 04, 2008 3:03 am

Hi Alec,

After what you said, we did a clean/new install.
You can add, but when you do an edit meta data later, the same error occurs.
This is 2.2.2, and I am fairly certain that it's a minor bug somewhere, but it isn't coming to me.

What it comes down to, is editing meta data, gives you the form, everything looks fine, and at the end of the page, you get the error:

url: index.php/JEMDSA/editor/viewMetadata/22

Error:
Fatal error: Call to undefined method Section::getAbstractsDisabled() in /home/trudie/public_html/OJS/JEMDSA2/ojs-2.2.2/cache/t_compile/%%58^58F^58F971B1%%metadataEdit.tpl.php on line 278

I hope that someone can assist me on this, so we can find a fix.

Marlon
marlonvanderlinde
 
Posts: 39
Joined: Thu Mar 06, 2008 12:28 am

Re: fatal error when viewing abstract

Postby asmecher » Thu Dec 04, 2008 10:22 am

Hi Marlon,

There must be some old code hanging around; for OJS 2.2.2, the getAbstractsDisabled() function was renamed to getAbstractsNotRequired. The getAbstractsDisabled function no longer appears anywhere in the OJS 2.2.2 codebase.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9050
Joined: Wed Aug 10, 2005 12:56 pm

Re: fatal error when viewing abstract

Postby marlonvanderlinde » Fri Dec 05, 2008 1:36 am

Mornings.

Apparently so.

If that is the case, then the old function name is being referenced still, alot.

Code: Select all
jamsakk@dedi1147:~/public_html$ grep -ri "getAbstractsDisabled(" * | grep -v cache
templates/sectionEditor/submission/metadata.tpl:<h4>{if $section->getAbstractsDisabled()}{translate key="article.title"}{else}{translate key="submission.titleAndAbstract"}{/if}</h4>
templates/sectionEditor/submission/metadata.tpl:   {if !$section->getAbstractsDisabled()}
templates/search/searchResults.tpl:      {if !$section->getAbstractsDisabled() && $publishedArticle->getArticleAbstract() != ""}
templates/search/titleIndex.tpl:         <a href="{url journal=$journal->getPath() page="article" op="view" path=$publishedArticle->getBestArticleId($journal)}" class="file">{if $section->getAbstractsDisabled()}{translate key="article.details"}{else}{translate key="article.abstract"}{/if}</a>
templates/search/authorDetails.tpl:      <a href="{url page="article" op="view" path=$article->getBestArticleId()}" class="file">{if $section->getAbstractsDisabled()}{translate key="article.details"}{else}{translate key="article.abstract"}{/if}</a>
templates/submission/metadata/metadataEdit.tpl:<h3>{if $section->getAbstractsDisabled()}{translate key="article.title"}{else}{translate key="submission.titleAndAbstract"}{/if}</h3>
templates/submission/metadata/metadataEdit.tpl:   {if !$section->getAbstractsDisabled()}
templates/submission/metadata/metadataView.tpl:<h3>{if $section->getAbstractsDisabled()}{translate key="article.title"}{else}{translate key="submission.titleAndAbstract"}{/if}</h3>
templates/submission/metadata/metadataView.tpl:   {if !$section->getAbstractsDisabled()}
templates/rt/rt.tpl:      {if $journalRt->getAbstract() && $galley && !$section->getAbstractsDisabled()}<li><a href="{url page="article" op="view" path=$articleId}" target="_parent">{translate key="article.abstract"}</a></li>{/if}
templates/rt/metadata.tpl:   <td>{if $section && !$section->getAbstractsDisabled()}{$article->getArticleAbstract()|strip_unsafe_html|nl2br}{/if}</td>
templates/rt/printerFriendly.tpl:   {if !$section->getAbstractsDisabled()}
templates/author/submission/metadata.tpl:<h4>{if $section->getAbstractsDisabled()}{translate key="article.title"}{else}{translate key="submission.titleAndAbstract"}{/if}</h4>
templates/author/submission/metadata.tpl:   {if !$section->getAbstractsDisabled()}
templates/author/submit/step2.tpl:<h3>{if $section->getAbstractsDisabled()==1}{translate key="article.title"}{else}{translate key="submission.titleAndAbstract"}{/if}</h3>
templates/author/submit/step2.tpl:{if $section->getAbstractsDisabled()==0}
templates/article/article.tpl:   {if !$section->getAbstractsDisabled()}


Any advice?
I'm thinking, grep and subsitute all <oldname> with <newname> of the function :x

PS: the above is on a new 2.2.2 install
marlonvanderlinde
 
Posts: 39
Joined: Thu Mar 06, 2008 12:28 am

Re: fatal error when viewing abstract

Postby marlonvanderlinde » Fri Dec 05, 2008 1:48 am

oh. Doh....
Crud...

:oops: :oops: :oops: :oops: :oops:

riiiight.
marlonvanderlinde
 
Posts: 39
Joined: Thu Mar 06, 2008 12:28 am

Re: fatal error when viewing abstract

Postby samuelwan » Mon Jan 05, 2009 6:08 pm

I get this bug too. Rare repro step:

1) Modify section so that the Indexing option "Do not require abstracts" is checked to true.
2) Create a submission
3) View summary by going to editor > submissions > (unassigned) > [number of submission] > summary
4) Scroll down, click on Edit Metadata

I couldn't reproduce this after the first time. Was there a resolution? The previous post hinted at some kind of insight.
samuelwan
 
Posts: 7
Joined: Mon Jan 05, 2009 9:11 am

Re: fatal error when viewing abstract

Postby lschiff » Wed Jan 16, 2013 4:39 pm

One of our users just encountered this problem with the new method on OJS 2.3.3.1
lschiff
 
Posts: 13
Joined: Tue Mar 29, 2011 10:47 am


Return to OJS Technical Support

Who is online

Users browsing this forum: No registered users and 3 guests