OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



How to know if Reviewer Reminders are sent

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.

How to know if Reviewer Reminders are sent

Postby kennymatthew » Tue Apr 16, 2013 1:48 am

I am hosting OJS on a go daddy shared linux server. I have set the automated emails to be sent 1 days after the final date. But I cannot see any emails sent in the history logs and I also confirmed with thee reviewers that they have not received the automated reminders.
kennymatthew
 
Posts: 127
Joined: Wed Jan 09, 2013 11:49 pm

Re: How to know if Reviewer Reminders are sent

Postby asmecher » Tue Apr 16, 2013 8:02 am

Hi kennymatthew,

Have you set up the associated cron job?

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

Re: How to know if Reviewer Reminders are sent

Postby kennymatthew » Tue Apr 16, 2013 9:45 pm

during setup section 2.2 its an option to send reviewers reminders.... Do we need to make a crone job for it ? shouldnt it be taken careof by OJS ?
kennymatthew
 
Posts: 127
Joined: Wed Jan 09, 2013 11:49 pm

Re: How to know if Reviewer Reminders are sent

Postby asmecher » Wed Apr 17, 2013 10:02 am

Hi kennymatthew,

That option depends on the server occasionally invoking OJS to perform periodic tasks with a mechanism like cron. See docs/README under "Scheduled Tasks".

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

Re: How to know if Reviewer Reminders are sent

Postby kennymatthew » Sat Apr 27, 2013 11:01 pm

Hi,

Thanks alot this has solved my problem.
kennymatthew
 
Posts: 127
Joined: Wed Jan 09, 2013 11:49 pm

Re: How to know if Reviewer Reminders are sent

Postby kennymatthew » Sun May 12, 2013 3:08 am

Hi,

I finally had time to test what you said.... I made a cron job called reminder.sh
Code: Select all
#!/bin/bash
$HOME/html/jer/tools/runScheduledTasks.php

I am using shared linux server from Go daddy, so i added the file to cron jobs tab and making it run in an hourly basis. But i got the following error

/var/html/jer/tools/runScheduledTasks.php: line 1: ?php: No such file or directory
/var/html/jer/tools/runScheduledTasks.php: line 3: /bin: is a directory
/var/html/jer/tools/runScheduledTasks.php: line 4: /usr/bin/crontab: Permission denied
/var/html/jer/tools/runScheduledTasks.php: line 5: /usr/bin/crontab: Permission denied

Please advice. I have another cron job that runs daily to take the database backup and it runs without any errors.
kennymatthew
 
Posts: 127
Joined: Wed Jan 09, 2013 11:49 pm

Re: How to know if Reviewer Reminders are sent

Postby kennymatthew » Sun May 12, 2013 11:01 pm

I am running the cron job ever hour, now i am gettin this error

/var/html/jer/tools/runScheduledTasks.php: line 1: ?php: No such file or directory
/var/html/jer/tools/runScheduledTasks.php: line 4: //: is a directory
/var/html/jer/tools/runScheduledTasks.php: line 7: syntax error near unexpected token `dirname'
/var/html/jer/tools/runScheduledTasks.php: line 7: `require(dirname(__FILE__) . '/bootstrap.inc.php');'
kennymatthew
 
Posts: 127
Joined: Wed Jan 09, 2013 11:49 pm

Re: How to know if Reviewer Reminders are sent

Postby asmecher » Mon May 13, 2013 9:24 am

Hi kennymatthew,

Follow the instructions in docs/README for creating a cron job -- the script you wrote is not correct. You can't execute a PHP script as though it was a binary.

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

Re: How to know if Reviewer Reminders are sent

Postby kennymatthew » Tue May 14, 2013 12:49 am

Hi,

I updated the reminder.sh file to
Code: Select all
#!/bin/bash
/web/cgi-bin/php5  $HOME/html/jer/tools/runScheduledTasks.php


But now I am getting this error :
NOTICE: Undefined index: SCRIPT_NAME (/home/jer/lib/pkp/classes/core/PKPRequest.inc.php:156)
Set-Cookie: OJSSID=5oi3d2bveqfh34amdf3h0pptj5; path=/
Content-type: text/html
kennymatthew
 
Posts: 127
Joined: Wed Jan 09, 2013 11:49 pm

Re: How to know if Reviewer Reminders are sent

Postby kennymatthew » Tue May 14, 2013 1:11 am

Hi,

I was just checking the history logs for papers and can see lots of automated reminders sent today. So I assume its working ??? Any idea what the error is about ? And if the job runs multiple times will it resend the reminder again ? how often must i run this job ?
kennymatthew
 
Posts: 127
Joined: Wed Jan 09, 2013 11:49 pm

Re: How to know if Reviewer Reminders are sent

Postby asmecher » Tue May 14, 2013 8:11 am

Hi Kenny,

You're calling the PHP CGI binary, which is intended to be invoked by the web server in CGI mode. You should use instead the command-line PHP binary, which is probably also named "php", but probably in the "cli" directory.

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


Return to OJS Technical Support

Who is online

Users browsing this forum: msengulj and 2 guests