by aleskl » Mon Oct 01, 2012 1:24 pm
Thank you Jason, I have checked the database and it is like you wrote: 'email_log' table with 'assoc_id' column. Perhaps the function retrieving data was not updated properly? But in that case no emails would be shown. Only the new ones are shown here.
Then I looked at the values in the 'assoc-id' column. Quite a lot of records have NULL in that column. When I manually entered the number of the paper, where I first observed this problem, the email appeared in the email log! So the database is structured as it should be and the functions work ok. The problem is the NULL values in 'assoc_id'.
So the problem is not date, but apparently all emails did not get a value for 'assoc_id'. Also 'event_type' column is often NULL and there seems to be a correlation, both columns are often NULL together. I should probably check the database from the backup, but I don't know how to browse a database from an archive?
Ok, there is some connection also with the date. The last NULL assoc_id is recorded 2012-09-11 and after that a few dozens of emails were sent that all got their 'assoc_id' number. Perhaps the NULL values were introduced (randomly?) during database upgrade?
Regards,
Ales