You are viewing the PKP Support Forum | PKP Home Wiki

serious BUG in Submission Acknowledgment [RESOLVED]

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

Moderators: jmacgreg, michael, John

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

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. Please note that this FAQ is OJS-centric, but most issues are applicable to both platforms.

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 OCS Conference Support and Discussion subforum; if you have a development question, try the OCS Development subforum.

serious BUG in Submission Acknowledgment [RESOLVED]

Postby m.giordano » Thu Jan 31, 2008 2:39 am

Hi all,

we are experiencing a serious bug in proposal submission process.
If author doesn't input any keyword in step 2, the Submission Acknowledgment mail works fine.
Otherwise, when even one keyword is specified, the following errors occur:
    the Submission Acknowledgment mail is sent but with a blank body and the keywords put in the subject in place of 'Submission Acknowledgment'
    the keywords input by author are definitely lost in the submission record

Giving a first glance to the code it seems that in file templates\presenter\submit\step2.tpl, line 264, the name of the keyword text box goes in conflict with the subject property of the mail object somewhere.
We are studying the code to find a suitable workaround but we need help because we hardly understand the implications of any modification...

Thank you


PS: OCS 2.0.0-1 on a LAMP box
Posts: 29
Joined: Wed Jan 09, 2008 4:02 am

Re: serious BUG in Submission Acknowledgment

Postby m.gori » Thu Jan 31, 2008 5:25 am

Hello everyboy,

we found the way to workaround this problem.

As long as the conflict was with the "subject" form field at line 264, in templates\presenter\submit\step2.tpl, I then modified it in something else,
for example "metasubject". So we now have:
[...] <input type="text" class="textField" name="metasubject" id="metasubject" [...]
I guess the latter change is useless, but, well, you never know..... :wink:

After that, other modifications are to be made in classes\presenter\form\submit\PresenterSubmitStep2Form.inc.php, which is the code invoked "after" step 2 in the submission process:
- at line 104 'subject' becomes 'metasubject' (i.e. take the "metasubject" value from the form and paste it in the form object property, named "metasubject" as well);
- at line 171 the instruction becomes: $paper->setSubject($this->getData('metasubject')); (i.e. assign to the paper the "metasubject" property belonging to the fom object).

Maybe there are other (and more "structural") ways to solve this, but anyway everything seems to work fine now, both with keywords inserting and aknowledgment email contents :D

At your service for any other details on this issue.

Posts: 8
Joined: Thu Dec 20, 2007 7:23 am

Re: serious BUG in Submission Acknowledgment

Postby asmecher » Thu Jan 31, 2008 10:05 am

Hi Marco,

This is bug #3072 (http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=3072); there's a patch there to correct it. This fix will be included with the next release, OCS 2.1.

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

Re: serious BUG in Submission Acknowledgment

Postby m.gori » Fri Feb 01, 2008 4:34 am

Hello Alec :oops: sorry, we missed that patch ...

it was useful and interesting anyway to surf through the (powerful) system and handle with the code :wink:
Thanks again

Posts: 8
Joined: Thu Dec 20, 2007 7:23 am

Return to OCS Technical Support

Who is online

Users browsing this forum: No registered users and 1 guest