OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



OCS Notify Users email without recipient address

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.

OCS Notify Users email without recipient address

Postby JohnGrobler » Sun Sep 19, 2010 7:37 am

Good day,

In OCS 2.3.3.1, we've found that when trying to use the "Notify Users" page ([url.com]/index.php/[conference]/[conf]/director/notifyUsers):

When trying to send an email notification to all users without selecting any filters (All users associated with this conference, All readers, etc not selected) on the Home > [conference] > User > Email page, the emails are transmitted as expected. But when selecting a filter such as "All published presenters" on this same page, no emails will be delivered. It seems that the generated email To address field is blank for all published presenters emails.

After code inspection we've found the following, which seems to be the cause of the problem, can you please confirm if this is a bug:

In /classes/paper/AuthorDAO.inc.php, the email address is set as a blank string for the allAuthors filter selection.

Code: Select all
                $result =& $this->retrieveRange(
                        'SELECT        DISTINCT CAST(\'\' AS CHAR) AS url,
                                0 AS author_id,
                                0 AS paper_id,
                                CAST(\'\' AS CHAR) AS email,
                                CAST(\'\' AS CHAR) AS biography,
                                0 AS primary_contact,
                                0 AS seq,
                                aa.first_name AS first_name,
                                aa.middle_name AS middle_name,
                                aa.last_name AS last_name,
                                aa.affiliation AS affiliation,
                                aa.country FROM paper_authors aa,
                                papers a,
                                published_papers pa,
                                sched_confs e
                        WHERE        e.sched_conf_id = pa.sched_conf_id
                                AND aa.paper_id = a.paper_id
                                ' . (isset($schedConfId)?'AND a.sched_conf_id = ? ':'') . '
                                AND pa.paper_id = a.paper_id
                                AND a.status = ' . STATUS_PUBLISHED . '
                                AND (aa.last_name IS NOT NULL
                                AND aa.last_name <> \'\')' . $initialSql . ' ORDER BY aa.last_name, aa.first_name',
                        empty($params)?false:$params,
                        $rangeInfo
                );


Thank you,
John Grobler
JohnGrobler
 
Posts: 51
Joined: Mon Dec 07, 2009 1:41 pm

Re: OCS Notify Users email without recipient address

Postby mcrider » Mon Sep 27, 2010 5:32 pm

Hi John,

This looks to have been fixed by http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=5491. Could you apply the patch there and see if that fixes your issue?

Cheers,
Matt
mcrider
 
Posts: 952
Joined: Mon May 05, 2008 10:29 am
Location: Vancouver, BC


Return to OCS Technical Support

Who is online

Users browsing this forum: No registered users and 3 guests