You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating to 1.9.1 my oldest file attachments where gone. The attachments itself are still there but there is no reference to the files anymore.
I checked the MySQL database and it seems it might be an older bug that just now causes problems. All the affected file attachments where older than 2017-09-24 and did not have the backref column set in utils_filestorage.
Looking at modules/Utils/Attachment/patches/20171024_use_generic_file_field.php shows the problem: Only attachments with backref set are converted in the patch.
The following SQL statement before redoing the update fixed the problem:
UPDATE utils_filestorage, utils_attachment_file SET backref = CONCAT('rb:utils_attachment/', attach_id) WHERE utils_attachment_file.id = SUBSTR(link,17) AND backref IS NULL;
The text was updated successfully, but these errors were encountered:
I just noticed that the files are there after the SQL statement, but file metadata is missing (who it was uploaded by and the number of downloads). The date of upload is still correct. Strange...
After updating to 1.9.1 my oldest file attachments where gone. The attachments itself are still there but there is no reference to the files anymore.
I checked the MySQL database and it seems it might be an older bug that just now causes problems. All the affected file attachments where older than 2017-09-24 and did not have the backref column set in utils_filestorage.
Looking at modules/Utils/Attachment/patches/20171024_use_generic_file_field.php shows the problem: Only attachments with backref set are converted in the patch.
The following SQL statement before redoing the update fixed the problem:
The text was updated successfully, but these errors were encountered: