edit: for some reason the forum does not allow EditingProductionStatusNotificationManager in the title
Our site has a lot of these errors: [Wed May 10 11:21:05 2017] [error] [client 193.xxx] PHP Warning: assert(): Assertion failed in /var/www/www.site.fi/public_html/lib/pkp/classes/notification/managerDelegate/EditingProductionStatusNotificationManager.inc.php on line 188, referer: https://site.fi/journal/workflow/index/63165/1
This would indicate that the submission is neither in the stage WORKFLOW_STAGE_ID_PRODUCTION nor WORKFLOW_STAGE_ID_EDITING. To get more details in your error log, turn on show_stacktrace in config.inc.php. This will allow you to trace the PHP calls which triggered the error.
Based on the referring URL, it looks like your entry point is here:
Also getting the same error from the review stage: [Mon May 15 11:14:38 2017] [error] [client 93.xxx] PHP Warning: assert(): Assertion failed in /lib/pkp/classes/notification/managerDelegate/EditingProductionStatusNotificationManager.inc.php on line 188, referer: https://site.fi/journal/workflow/index/59665/3
ok, so it could actually be /$$$call$$$/grid/users/stage-participant/stage-participant-grid/delete-participant
I have a new error in the submission stage as well even after applying your earlier fix: [Mon May 15 13:45:35 2017] [error] [client 93.xxx] PHP Warning: assert(): Assertion failed in /lib/pkp/classes/notification/managerDelegate/EditingProductionStatusNotificationManager.inc.php on line 188, referer: https://site.fi/journal/workflow/index/63132/1
Thanks a lot @ajnyga! I also realized that there are a few more places: for example one could upload a copyedited files also if submission is not in the copyedit stage, which would lead to the message as well. Also, when deleting a discussion. So I will double check all those update notifications – there are not sooooooooo many of them…