Fethi.dz Well-known member Jul 8, 2018 #1 Affected version 2.0.7 Hello, Reproducing steps: Go to --> ACP --> Contents --> Attachments Select to view: "Conversation messages" Now try to delete any attachment and you will get the error "Please enter a number that is at least 0."
Hello, Reproducing steps: Go to --> ACP --> Contents --> Attachments Select to view: "Conversation messages" Now try to delete any attachment and you will get the error "Please enter a number that is at least 0."
Fethi.dz Well-known member Jul 8, 2018 #2 I used @AndyB add-on (https://xenforo.com/community/resources/delete-conversations.6196/) to delete conversations. Now the conversations are deleted but from ACP those conversations attachments are still exist and when try to delete them I get the above error.
I used @AndyB add-on (https://xenforo.com/community/resources/delete-conversations.6196/) to delete conversations. Now the conversations are deleted but from ACP those conversations attachments are still exist and when try to delete them I get the above error.
Fethi.dz Well-known member Jul 8, 2018 #3 This is not a Bug related to XF Core. So, feel free to close this thread. I found a way around to solve my problem by deleting all the conversations attachments. This is what I did since XF will delete all the attachments marked as "attach_coun = 0" with the "Hourly clean up" Corn. So, I have just updated the "attach_count" for all the attachments related to the conversation and run that Cron. SQL: UPDATE xf_attachment_data INNER JOIN xf_attachment ON xf_attachment.data_id = xf_attachment_data.data_id SET xf_attachment_data.attach_count = '0' WHERE xf_attachment.content_type LIKE 'conversation_message'
This is not a Bug related to XF Core. So, feel free to close this thread. I found a way around to solve my problem by deleting all the conversations attachments. This is what I did since XF will delete all the attachments marked as "attach_coun = 0" with the "Hourly clean up" Corn. So, I have just updated the "attach_count" for all the attachments related to the conversation and run that Cron. SQL: UPDATE xf_attachment_data INNER JOIN xf_attachment ON xf_attachment.data_id = xf_attachment_data.data_id SET xf_attachment_data.attach_count = '0' WHERE xf_attachment.content_type LIKE 'conversation_message'
Jake B. Well-known member Jul 8, 2018 #4 That will delete attachments for all conversation messages, not just the ones that have been deleted
Fethi.dz Well-known member Jul 8, 2018 #5 Jake B. said: That will delete attachments for all conversation messages, not just the ones that have been deleted Click to expand... Yes, I wanted to delete all of them. Thanks @Jake B. for your note
Jake B. said: That will delete attachments for all conversation messages, not just the ones that have been deleted Click to expand... Yes, I wanted to delete all of them. Thanks @Jake B. for your note