OJS 3.3.0.8 not sending notification to user on announciation

Hello!
I’ve made an update to OJS in december 21 to OJS 3.3.0.8 and since then it stopped sending the news announciation to registered users e-mail.
I’ve tried on two sites using the same version of OJS.

It is a known bug of this version?
There is anything i can do to fix it until i make a further update?

Thanks guys!

Hi @Hugo_Melo

Email issues may have many causes, take a look at this post with a troubleshooting:

Best regards,

Josh Noronha (he/him)
Systems Administrator
PKP|PS Support Team

Subscribe to the PS Bulletin for quarterly updates on
PKP software, support, and community events

All mails from the journal is working fine, except those from announcements.

Hi @Hugo_Melo

Have you checked if bulk email is enabled in site > settings?

Best,
Josh

I couldn’t find this option in settings of OJS. Could you give more details about finding it?
Thx

You will need admin privileges to do this, in administration > site settings.

Best regards,

Josh Noronha (he/him)
Systems Administrator
PKP|PS Support Team

Subscribe to the PS Bulletin for quarterly updates on
PKP software, support, and community events

Thank you for your reply.
I found the option, it was unabled (strange since my journal always sent the news to all users before update).
However, after I enabled this option, the annoucement still wasn’t send to the users.

Any help is apreciated.

Take a look at the email error log to see if there’s some error from your server.

Best regards,

Josh Noronha (he/him)
Systems Administrator
PKP|PS Support Team

Subscribe to the PS Bulletin for quarterly updates on
PKP software, support, and community events

Hi, I am having the same issue I just installed the latest version of ojs and anytime a now article is uploaded the user recieved an error message that email cannot be send try again later or contact your system administrator, I have contacted my hosting company and there’s no error coming from the, I have been through the community and try all the guides given but I still can’t send email please kindly look into this

but i’m not test with "bulk email "

hi, i have set the smtp to point to my official email find below my smtp setting:

;;;;;;;;;;;;;;;;;;
; Email Settings ;
;;;;;;;;;;;;;;;;;;

[email]

; Use SMTP for sending mail instead of mail()
smtp = On

; SMTP server settings
smtp_server = mail.wnjms.com.ng
smtp_port = 456

; Enable SMTP authentication
; Supported smtp_auth: ssl, tls (see PHPMailer SMTPSecure)
smtp_auth = ssl
smtp_username = journal@wnjms.com.ng
smtp_password = *******************
;
; Supported smtp_authtype: RAM-MD5, LOGIN, PLAIN, XOAUTH2 (see PHPMailer AuthType)
; (Leave blank to try them in that order)
; smtp_authtype =

; The following are required for smtp_authtype = XOAUTH2 (e.g. GMail OAuth)
; (See Using Gmail with XOAUTH2 · PHPMailer/PHPMailer Wiki · GitHub)
; smtp_oauth_provider = Google
; smtp_oauth_email =
; smtp_oauth_clientid =
; smtp_oauth_clientsecret =
; smtp_oauth_refreshtoken =

; Enable suppressing verification of SMTP certificate in PHPMailer
; Note: this is not recommended per PHPMailer documentation
smtp_suppress_cert_check = On

; Allow envelope sender to be specified
; (may not be possible with some server configurations)
allow_envelope_sender = On

; Default envelope sender to use if none is specified elsewhere
default_envelope_sender = journal@wnjms.com.ng

; Force the default envelope sender (if present)
; This is useful if setting up a site-wide no-reply address
; The reply-to field will be set with the reply-to or from address.
; force_default_envelope_sender = Off

; Force a DMARC compliant from header (RFC5322.From)
; If any of your users have email addresses in domains not under your control
; you may need to set this to be compliant with DMARC policies published by
; those 3rd party domains.
; Setting this will move the users address into the reply-to field and the
; from field wil be rewritten with the default_envelope_sender.
; To use this you must set force_default_enveloper_sender = On and
; default_envelope_sender must be set to a valid address in a domain you own.
; force_dmarc_compliant_from = Off

; The display name to use with a DMARC compliant from header
; By default the DMARC compliant from will have an empty name but this can
; be changed by adding a text here.
; You can use ‘%n’ to insert the users name from the original from header
; and ‘%s’ to insert the localized sitename.
; dmarc_compliant_from_displayname = ‘%n via %s’

; Amount of time required between attempts to send non-editorial emails
; in seconds. This can be used to help prevent email relaying via OJS.
time_between_emails = 3600

; Maximum number of recipients that can be included in a single email
; (either as To:, Cc:, or Bcc: addresses) for a non-privileged user
max_recipients = 10

; If enabled, email addresses must be validated before login is possible.
require_validation = Off

; Maximum number of days before an unvalidated account expires and is deleted
validation_timeout = 14


and on checking my error log this is what I am see find it below

thrown in /home/wnjmscom/public_html/journal/lib/pkp/lib/vendor/phpmailer/phpmailer/src/PHPMailer.php on line 1729
[18-Jun-2022 15:18:07 Africa/Lagos] PHP Warning: escapeshellcmd() has been disabled for security reasons in /home/wnjmscom/public_html/journal/lib/pkp/lib/vendor/phpmailer/phpmailer/src/PHPMailer.php on line 1729
[18-Jun-2022 15:18:07 Africa/Lagos] Could not instantiate mail function.
[18-Jun-2022 15:18:07 Africa/Lagos] PHP Warning: escapeshellcmd() has been disabled for security reasons in /home/wnjmscom/public_html/journal/lib/pkp/lib/vendor/phpmailer/phpmailer/src/PHPMailer.php on line 1729
[18-Jun-2022 15:18:07 Africa/Lagos] Could not instantiate mail function.
[18-Jun-2022 15:18:07 Africa/Lagos] PHP Warning: escapeshellcmd() has been disabled for security reasons in /home/wnjmscom/public_html/journal/lib/pkp/lib/vendor/phpmailer/phpmailer/src/PHPMailer.php on line 1729
[18-Jun-2022 15:18:07 Africa/Lagos] Could not instantiate mail function.
[18-Jun-2022 15:18:07 Africa/Lagos] Invalid address: (From): root@localhost
[18-Jun-2022 16:16:09 Africa/Lagos] PHP Warning: escapeshellcmd() has been disabled for security reasons in /home/wnjmscom/public_html/journal/lib/pkp/lib/vendor/phpmailer/phpmailer/src/PHPMailer.php on line 1729
[18-Jun-2022 16:16:09 Africa/Lagos] Could not instantiate mail function.
[18-Jun-2022 16:16:09 Africa/Lagos] PHP Warning: escapeshellcmd() has been disabled for security reasons in /home/wnjmscom/public_html/journal/lib/pkp/lib/vendor/phpmailer/phpmailer/src/PHPMailer.php on line 1729
[18-Jun-2022 16:16:09 Africa/Lagos] Could not instantiate mail function.
[18-Jun-2022 16:16:09 Africa/Lagos] PHP Warning: escapeshellcmd() has been disabled for security reasons in /home/wnjmscom/public_html/journal/lib/pkp/lib/vendor/phpmailer/phpmailer/src/PHPMailer.php on line 1729
[18-Jun-2022 16:16:09 Africa/Lagos] Could not instantiate mail function.
[18-Jun-2022 16:16:09 Africa/Lagos] Invalid address: (From): root@localhost
[21-Jun-2022 01:22:46 Africa/Lagos] PHP Warning: escapeshellcmd() has been disabled for security reasons in /home/wnjmscom/public_html/journal/lib/pkp/lib/vendor/phpmailer/phpmailer/src/PHPMailer.php on line 1729
[21-Jun-2022 01:22:46 Africa/Lagos] Could not instantiate mail function.
[21-Jun-2022 01:37:35 Africa/Lagos] PHP Warning: Use of undefined constant SUBMISSION_FILE_DEPENDENT - assumed ‘SUBMISSION_FILE_DEPENDENT’ (this will throw an Error in a future version of PHP) in /home/wnjmscom/public_html/journal/lib/pkp/controllers/api/file/FileApiHandler.inc.php on line 56
[21-Jun-2022 01:37:36 Africa/Lagos] PHP Warning: Use of undefined constant SUBMISSION_FILE_DEPENDENT - assumed ‘SUBMISSION_FILE_DEPENDENT’ (this will throw an Error in a future version of PHP) in /home/wnjmscom/public_html/journal/lib/pkp/controllers/api/file/FileApiHandler.inc.php on line 56
[21-Jun-2022 01:41:41 Africa/Lagos] PHP Warning: Use of undefined constant SUBMISSION_FILE_DEPENDENT - assumed ‘SUBMISSION_FILE_DEPENDENT’ (this will throw an Error in a future version of PHP) in /home/wnjmscom/public_html/journal/lib/pkp/controllers/api/file/FileApiHandler.inc.php on line 56
[21-Jun-2022 01:41:42 Africa/Lagos] PHP Warning: Use of undefined constant SUBMISSION_FILE_DEPENDENT - assumed ‘SUBMISSION_FILE_DEPENDENT’ (this will throw an Error in a future version of PHP) in /home/wnjmscom/public_html/journal/lib/pkp/controllers/api/file/FileApiHandler.inc.php on line 56
[21-Jun-2022 01:46:09 Africa/Lagos] PHP Warning: Use of undefined constant SUBMISSION_FILE_DEPENDENT - assumed ‘SUBMISSION_FILE_DEPENDENT’ (this will throw an Error in a future version of PHP) in /home/wnjmscom/public_html/journal/lib/pkp/controllers/api/file/FileApiHandler.inc.php on line 56
[21-Jun-2022 01:46:09 Africa/Lagos] PHP Warning: Use of undefined constant SUBMISSION_FILE_DEPENDENT - assumed ‘SUBMISSION_FILE_DEPENDENT’ (this will throw an Error in a future version of PHP) in /home/wnjmscom/public_html/journal/lib/pkp/controllers/api/file/FileApiHandler.inc.php on line 56
[21-Jun-2022 01:48:13 Africa/Lagos] PHP Warning: Use of undefined constant SUBMISSION_FILE_DEPENDENT - assumed ‘SUBMISSION_FILE_DEPENDENT’ (this will throw an Error in a future version of PHP) in /home/wnjmscom/public_html/journal/lib/pkp/controllers/api/file/FileApiHandler.inc.php on line 56
[21-Jun-2022 01:48:14 Africa/Lagos] PHP Warning: Use of undefined constant SUBMISSION_FILE_DEPENDENT - assumed ‘SUBMISSION_FILE_DEPENDENT’ (this will throw an Error in a future version of PHP) in /home/wnjmscom/public_html/journal/lib/pkp/controllers/api/file/FileApiHandler.inc.php on line 56
[21-Jun-2022 01:49:40 Africa/Lagos] PHP Warning: Use of undefined constant SUBMISSION_FILE_DEPENDENT - assumed ‘SUBMISSION_FILE_DEPENDENT’ (this will throw an Error in a future version of PHP) in /home/wnjmscom/public_html/journal/lib/pkp/controllers/api/file/FileApiHandler.inc.php on line 56
[21-Jun-2022 01:49:41 Africa/Lagos] PHP Warning: Use of undefined constant SUBMISSION_FILE_DEPENDENT - assumed ‘SUBMISSION_FILE_DEPENDENT’ (this will throw an Error in a future version of PHP) in /home/wnjmscom/public_html/journal/lib/pkp/controllers/api/file/FileApiHandler.inc.php on line 56
[21-Jun-2022 01:50:13 Africa/Lagos] PHP Warning: Use of undefined constant SUBMISSION_FILE_DEPENDENT - assumed ‘SUBMISSION_FILE_DEPENDENT’ (this will throw an Error in a future version of PHP) in /home/wnjmscom/public_html/journal/lib/pkp/controllers/api/file/FileApiHandler.inc.php on line 56
[21-Jun-2022 01:50:13 Africa/Lagos] PHP Warning: Use of undefined constant SUBMISSION_FILE_DEPENDENT - assumed ‘SUBMISSION_FILE_DEPENDENT’ (this will throw an Error in a future version of PHP) in /home/wnjmscom/public_html/journal/lib/pkp/controllers/api/file/FileApiHandler.inc.php on line 56
[21-Jun-2022 01:51:10 Africa/Lagos] PHP Warning: Use of undefined constant SUBMISSION_FILE_DEPENDENT - assumed ‘SUBMISSION_FILE_DEPENDENT’ (this will throw an Error in a future version of PHP) in /home/wnjmscom/public_html/journal/lib/pkp/controllers/api/file/FileApiHandler.inc.php on line 56
[21-Jun-2022 01:51:10 Africa/Lagos] PHP Warning: Use of undefined constant SUBMISSION_FILE_DEPENDENT - assumed ‘SUBMISSION_FILE_DEPENDENT’ (this will throw an Error in a future version of PHP) in /home/wnjmscom/public_html/journal/lib/pkp/controllers/api/file/FileApiHandler.inc.php on line 56
[21-Jun-2022 01:53:10 Africa/Lagos] PHP Warning: escapeshellcmd() has been disabled for security reasons in /home/wnjmscom/public_html/journal/lib/pkp/lib/vendor/phpmailer/phpmailer/src/PHPMailer.php on line 1729
[21-Jun-2022 01:53:10 Africa/Lagos] Could not instantiate mail function.
[21-Jun-2022 01:53:10 Africa/Lagos] PHP Warning: escapeshellcmd() has been disabled for security reasons in /home/wnjmscom/public_html/journal/lib/pkp/lib/vendor/phpmailer/phpmailer/src/PHPMailer.php on line 1729
[21-Jun-2022 01:53:10 Africa/Lagos] Could not instantiate mail function.
[21-Jun-2022 19:42:02 Africa/Lagos] PHP Warning: Use of undefined constant SUBMISSION_FILE_DEPENDENT - assumed ‘SUBMISSION_FILE_DEPENDENT’ (this will throw an Error in a future version of PHP) in /home/wnjmscom/public_html/journal/lib/pkp/controllers/api/file/FileApiHandler.inc.php on line 56
[21-Jun-2022 23:05:02 Africa/Lagos] PHP Fatal error: Uncaught Error: Call to a member function getId() on null in /home/wnjmscom/public_html/journal/lib/pkp/controllers/grid/notifications/TaskNotificationsGridHandler.inc.php:40
Stack trace:
#0 /home/wnjmscom/public_html/journal/lib/pkp/classes/controllers/grid/GridHandler.inc.php(314): TaskNotificationsGridHandler->loadData(Object(Request), NULL)
#1 /home/wnjmscom/public_html/journal/lib/pkp/classes/controllers/grid/GridHandler.inc.php(1032): GridHandler->getGridDataElements(Object(Request))
#2 /home/wnjmscom/public_html/journal/lib/pkp/classes/controllers/grid/GridHandler.inc.php(923): GridHandler->renderGridBodyPartsInternally(Object(Request))
#3 /home/wnjmscom/public_html/journal/lib/pkp/classes/controllers/grid/GridHandler.inc.php(643): GridHandler->doSpecificFetchGridActions(Array, Object(Request), Object(TemplateManager))
#4 /home/wnjmscom/public_html/journal/lib/pkp/classes/core/PKPRouter.inc.php(395): GridHandler->fetchGrid(Array, Object(Request))
#5 /home/wnjmscom/public_html/journal/lib/pkp/classes/co in /home/wnjmscom/public_html/journal/lib/pkp/controllers/grid/notifications/TaskNotificationsGridHandler.inc.php on line 40
[21-Jun-2022 23:23:25 Africa/Lagos] PHP Fatal error: Uncaught Error: Call to a member function getLocalizedTitle() on null in /home/wnjmscom/public_html/journal/lib/pkp/controllers/grid/notifications/NotificationsGridCellProvider.inc.php:157
Stack trace:
#0 /home/wnjmscom/public_html/journal/lib/pkp/controllers/grid/notifications/NotificationsGridCellProvider.inc.php(44): NotificationsGridCellProvider->_getTitle(Object(Notification))
#1 /home/wnjmscom/public_html/journal/lib/pkp/classes/controllers/grid/GridCellProvider.inc.php(56): NotificationsGridCellProvider->getCellActions(Object(Request), Object(GridRow), Object(GridColumn))
#2 /home/wnjmscom/public_html/journal/lib/pkp/classes/controllers/grid/GridHandler.inc.php(1104): GridCellProvider->render(Object(Request), Object(GridRow), Object(GridColumn))
#3 /home/wnjmscom/public_html/journal/lib/pkp/classes/controllers/grid/GridHandler.inc.php(1011): GridHandler->_renderCellInternally(Object(Request), Object(GridRow), Object(GridColumn))
#4 /home/wnjmscom/public_html/journal/lib/pkp/classes/controllers/grid/Gri in /home/wnjmscom/public_html/journal/lib/pkp/controllers/grid/notifications/NotificationsGridCellProvider.inc.php on line 157
[21-Jun-2022 23:31:11 Africa/Lagos] Invalid address: (From): root@localhost
[21-Jun-2022 23:31:11 Africa/Lagos] Invalid address: (From): root@localhost
[21-Jun-2022 23:31:11 Africa/Lagos] Invalid address: (From): root@localhost
[21-Jun-2022 23:31:11 Africa/Lagos] Invalid address: (From): root@localhost
[21-Jun-2022 23:31:11 Africa/Lagos] Invalid address: (From): root@localhost
[21-Jun-2022 23:31:11 Africa/Lagos] Invalid address: (From): root@localhost
[21-Jun-2022 23:37:33 Africa/Lagos] SMTP connect() failed. Troubleshooting · PHPMailer/PHPMailer Wiki · GitHub
[21-Jun-2022 23:37:35 Africa/Lagos] SMTP connect() failed. Troubleshooting · PHPMailer/PHPMailer Wiki · GitHub
[21-Jun-2022 23:37:37 Africa/Lagos] SMTP connect() failed. Troubleshooting · PHPMailer/PHPMailer Wiki · GitHub
[21-Jun-2022 23:37:37 Africa/Lagos] Invalid address: (From): root@localhost
[21-Jun-2022 23:47:08 Africa/Lagos] SMTP connect() failed. Troubleshooting · PHPMailer/PHPMailer Wiki · GitHub
[21-Jun-2022 23:50:38 Africa/Lagos] SMTP connect() failed. Troubleshooting · PHPMailer/PHPMailer Wiki · GitHub
[21-Jun-2022 23:54:20 Africa/Lagos] SMTP connect() failed. Troubleshooting · PHPMailer/PHPMailer Wiki · GitHub
[21-Jun-2022 23:55:15 Africa/Lagos] SMTP connect() failed. Troubleshooting · PHPMailer/PHPMailer Wiki · GitHub
[21-Jun-2022 23:56:07 Africa/Lagos] SMTP connect() failed. Troubleshooting · PHPMailer/PHPMailer Wiki · GitHub
[21-Jun-2022 23:57:19 Africa/Lagos] SMTP connect() failed. Troubleshooting · PHPMailer/PHPMailer Wiki · GitHub
[21-Jun-2022 23:58:02 Africa/Lagos] PHP Fatal error: Uncaught Error: Call to a member function getLocalizedTitle() on null in /home/wnjmscom/public_html/journal/lib/pkp/controllers/grid/notifications/NotificationsGridCellProvider.inc.php:157
Stack trace:
#0 /home/wnjmscom/public_html/journal/lib/pkp/controllers/grid/notifications/NotificationsGridCellProvider.inc.php(44): NotificationsGridCellProvider->_getTitle(Object(Notification))
#1 /home/wnjmscom/public_html/journal/lib/pkp/classes/controllers/grid/GridCellProvider.inc.php(56): NotificationsGridCellProvider->getCellActions(Object(Request), Object(GridRow), Object(GridColumn))
#2 /home/wnjmscom/public_html/journal/lib/pkp/classes/controllers/grid/GridHandler.inc.php(1104): GridCellProvider->render(Object(Request), Object(GridRow), Object(GridColumn))
#3 /home/wnjmscom/public_html/journal/lib/pkp/classes/controllers/grid/GridHandler.inc.php(1011): GridHandler->_renderCellInternally(Object(Request), Object(GridRow), Object(GridColumn))
#4 /home/wnjmscom/public_html/journal/lib/pkp/classes/controllers/grid/Gri in /home/wnjmscom/public_html/journal/lib/pkp/controllers/grid/notifications/NotificationsGridCellProvider.inc.php on line 157
[21-Jun-2022 23:59:58 Africa/Lagos] SMTP connect() failed. Troubleshooting · PHPMailer/PHPMailer Wiki · GitHub

please not that I am running version 3.3.0.11

Hi @Amolowe2021

I’ve answered your original post. Please, don’t post the same question in different threads because it clutters the forum.

Best,
Israel