OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Fatal error assigning section editor

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 assigning section editor

Postby ernesto » Tue May 09, 2006 4:26 am

We had the folling error when we tray to assign a Section Editor to one article:

Fatal error: Call to a member function on a non-object in /var/www/namejournal/ojs/classes/mail/ArticleMailTemplate.inc.php on line 55

Regards
ernesto
 
Posts: 19
Joined: Tue Dec 16, 2003 11:53 am
Location: Spain

Postby asmecher » Tue May 09, 2006 10:33 am

Hi Ernesto,

Odd -- is this a stock installation of OJS 2.1.0-1, or have you modified any of the classes?

Regards,
Alec Smecher
Open Journal Systems Team
asmecher
 
Posts: 8903
Joined: Wed Aug 10, 2005 12:56 pm

Postby asmecher » Tue May 09, 2006 3:30 pm

Hi Ernesto,

Could you double-check to make sure that your template compile path (cache/t_compile) and its contents are writable by the web server's user?

Regards,
Alec Smecher
Open Journal Systems Team
asmecher
 
Posts: 8903
Joined: Wed Aug 10, 2005 12:56 pm

Postby ernesto » Wed May 10, 2006 3:36 am

asmecher wrote:Hi Ernesto,

Odd -- is this a stock installation of OJS 2.1.0-1, or have you modified any of the classes?

Could you double-check to make sure that your template compile path (cache/t_compile) and its contents are writable by the web server's user


Hi Alec:

It's a clean installation 2.1.0.1 and we have not modified any of the classes

>../ojs/
drwxr-xr-x 6 www-data www-data 4096 May 9 23:21 cache

>../ojs/cache/
drwxr-xr-x 12 www-data www-data 96 May 9 00:57 _db
drwxr-xr-x 2 www-data www-data 6 Feb 3 22:26 t_cache
drwxr-xr-x 2 www-data www-data 8192 May 10 11:59 t_compile
drwxr-xr-x 2 www-data www-data 6 Feb 3 22:26 t_config

==> /var/log/apache2/access.log <==
[10/May/2006:12:20:14 +0200] "GET /ojs/index.php/namejorunal/editor/assignEditor?articleId=&editorId=4 HTTP/1.1" 200 167

We can add an Editor and also several Section Editors with 0 active reviews but the problem comes when we want to add one Section Editors with 10 active works. The email to the section editor is not generated and get the Fatal error.

p.e.
http://.../editor/assignEditor?articleId=16&editorId=89
...the Section Editor 89 is added

http://.../editor/assignEditor?articleId=&editorId=4
... the Section Editor 4 is not added and the Falta error is shown.

I can deceive the system if i add the arcicleID=16 on the browser

I know that is very strange.

Regards,
ernesto
 
Posts: 19
Joined: Tue Dec 16, 2003 11:53 am
Location: Spain

Postby ernesto » Wed May 10, 2006 4:08 am

asmecher wrote:Hi Ernesto,

Could you double-check to make sure that your template compile path (cache/t_compile) and its contents are writable by the web server's user?


I have found the bug. It is on the second page of the Select Section Editor.
The links of ASSIGN of all that section editor second page do not add the articleID=number

Regards
ernesto
 
Posts: 19
Joined: Tue Dec 16, 2003 11:53 am
Location: Spain

Postby asmecher » Wed May 10, 2006 10:52 am

Hello Ernesto,

Thanks -- see http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=2173 for the Bugzilla entry and a patch against OJS 2.1.0-1. This is easy to correct -- find the line (approx. line 78) in templates/editor/selectSectionEditor.tpl that looks like:
Code: Select all
<td colspan="3" align="right">{page_links name="editors" iterator=$editors searchField=$searchField searchMatch=$searchMatch search=$search dateFromDay=$dateFromDay dateFromYear=$dateFromYear dateFromMonth=$dateFromMonth dateToDay=$dateToDay dateToYear=$dateToYear dateToMonth=$dateToMonth}</td>
Add an attribute to the page_links call called articleId:
Code: Select all
<td colspan="3" align="right">{page_links name="editors" iterator=$editors searchField=$searchField searchMatch=$searchMatch search=$search dateFromDay=$dateFromDay dateFromYear=$dateFromYear dateFromMonth=$dateFromMonth dateToDay=$dateToDay dateToYear=$dateToYear dateToMonth=$dateToMonth articleId=$articleId}</td>

Regards,
Alec Smecher
Open Journal Systems Team
asmecher
 
Posts: 8903
Joined: Wed Aug 10, 2005 12:56 pm


Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot], michaelortiz and 3 guests