I could identify my issue, in my case I was using an email to send automatic notifications to the users e.g. journal@university.com but this email is not been used by one user, so in this case OJS put sender_id as zero.
So, I commend this to keep in mind in case someone has the same issue or similar…
@asmecher the issue is the same as describing @Taomach above, the Editorial History does not work in some submissions and when I see the database with this query:
SELECT from_address FROM email_log WHERE sender_id=0;
Like 200 records appear with sender_id=0, some of them occur randomly, I think like to @Taomach. But in my particular case, one record is repeated. The repeated record with sender_id=0 is generated when the system sends automatic emails for remembering to reviewers make the reviews.
I think this record sender_id=0 occur because does not exist one user with the email that I was using to send the automatic emails. For example, I am using something like this journal@university.com, but in the user table no one has this email, so it is impossible for the system put a sender_id because the user never exists.
I solve this just assigning the email to the admin and change these cases sender_id=0 to 1 (1 is the admin id)
Hmm, on some local testing with OJS 3.1.1-x, sender_id=0 seems not to cause problems. Can you clarify what version of OJS you were using? You mentioned a git pre-release version of some variety.
Regards,
Alec Smecher
Public Knowledge Project Team
thank you @asmecher, so (if I understand) when occur some problem in the database and sender_is is 0 the Editorial History will not stop work? just some entries will be NULL, may be show null in the display or similar, right?
The sender_id = 0 entries are valid according to OJS’s data model, but a change somewhere along the line made the presentation of that data stop working. The patch linked above will fix that problem, resulting in a blank name being presented when sender_id = 0 rather than an error being triggered.
Regards,
Alec Smecher
Public Knowledge Project Team
I get “Call to a member function getStageId() on null in lib/pkp/classes/submission/PKPSubmissionFileDAO.inc.php:762” when “Editorial History” is clicked on some submissions.
I can’t tell if the above issue is the same one, but I can’t test the patch either since it is for code that doesn’t exist in this version. Any suggestions? Thanks.