Editing Queue Error [RESOLVED]

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
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
joannal
Posts: 32
Joined: Mon Dec 03, 2007 6:33 pm

Editing Queue Error [RESOLVED]

Postby joannal » Wed Feb 06, 2008 2:06 pm

Hello!

I was hoping someone could shed some light on this. After an author submits something, they see this message.

Submission complete. Thank you for your interest in publishing with Eye Care Review.
If this submission is in a format that is ready to be published without further review, editing, or layout work, it can be placed directly in the last stage of the Editing queue by Clicking here. (Note: Only journal editors have this option for their submissions.)

When they click on the "Clicking here" link to bypass to the Editing Queue they seem to be getting this error:

Fatal error: Call to a member function on a non-object in /home/httpd/vhosts/eyecarereview.ca/httpdocs/journal/classes/submission/editor/EditorAction.inc.php on line 130

I am hoping that there is an easy fix this since I don't know how to dabble in php.

Thanks very much!

jmacgreg
Posts: 4191
Joined: Tue Feb 14, 2006 10:50 am
Contact:

Re: Editing Queue Error

Postby jmacgreg » Wed Feb 06, 2008 2:20 pm

Hi Joannal,

This is an issue with OJS 2.1.1, and has been fixed in 2.2. Please see: http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=2346 for a patch. If you have problems with applying the patch, please let me know.

Cheers,
James

joannal
Posts: 32
Joined: Mon Dec 03, 2007 6:33 pm

Re: Editing Queue Error

Postby joannal » Wed Feb 06, 2008 2:34 pm

Thanks for the quick response!

Ok - here comes the hard part. Unfortunately, I do not know how to apply this patch and would love to have your help.

Where do I start?

jmacgreg
Posts: 4191
Joined: Tue Feb 14, 2006 10:50 am
Contact:

Re: Editing Queue Error

Postby jmacgreg » Wed Feb 06, 2008 2:47 pm

Hi Joannal,

No worries. Do you have server access, ie., can you log in via ssh and edit OJS files? You'll need to be able to do that.

The following instructions assume that you're operating with OJS 2.1.1. Please let me know if you are using a different version.

I think that perhaps the easiest way for you to apply the patch is manually. The file you have to edit is on the server in your OJS directory: classes/submission/editor/EditorAction.inc.php.

If you look at the patch (http://pkp.sfu.ca/cvs/cvsweb.cgi/ojs2/c ... 37;r2=1.38) you'll see lines with a '-' beside them, and lines with a '+' beside them. The lines with the - are in the file, and have to be removed and replaced with the + lines. So you'll want to find

Code: Select all

* $Id: EditorAction.inc.php,v 1.37 2006/06/12 23:25:54 alec Exp $


and replace it with

Code: Select all

* $Id: EditorAction.inc.php,v 1.38 2006/07/24 16:01:06 alec Exp $


(that one isn't really mandatory; it's just good to have for file version tracking purposes).

You will then have to replace two lines:

Code: Select all

$editorFile = $sectionEditorSubmission->getEditorFile();
SectionEditorAction::setCopyeditFile($sectionEditorSubmission, $editorFile->getFileId(), $editorFile->getRevision());


with

Code: Select all

$reviewFile = $sectionEditorSubmission->getReviewFile();
SectionEditorAction::setCopyeditFile($sectionEditorSubmission, $reviewFile->getFileId(), $reviewFile->getRevision());


If you don't have ssh access, you can grab the file by ftp, make the changes, and then ftp it back in place, and everything should work. Give it a try, and let me know how it turns out.

You may want to back up the original file to be on the safe side.

Cheers,
James

joannal
Posts: 32
Joined: Mon Dec 03, 2007 6:33 pm

Re: Editing Queue Error

Postby joannal » Thu Feb 07, 2008 1:06 pm

Thank you so much - it worked!


Return to “OJS Technical Support”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests