Keyword

All images disappeared from K2 items

  • George Nasis
  • George Nasis's Avatar Topic Author
  • Offline
  • Elite Member
More
1 year 9 months ago #180221 by George Nasis
All images disappeared from K2 items was created by George Nasis
Hello,

I am in a very unpleasant situation and the most frustrating is that I do not know how it happened.
Suddenly, all the k2 items lost their images.
I can see the original images in the folder of K2 in my server but inside the items, the images are removed.
Any idea how it can happened?
Any attack targeting the database with a script?
Any idea?

Thanks

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #180222 by JoomlaWorks
Replied by JoomlaWorks on topic All images disappeared from K2 items
K2 does not store a reference to its images in the database. Each image file name is a essentially a hash produced by the corresponding K2 item ID.

So either your K2 item IDs changed or K2 cannot load the images due to some permission issue on your server. I'd say it's most likely the latter.

If you use any 3rd party extension to handle/manage images in K2, then that may be the culprit too.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • George Nasis
  • George Nasis's Avatar Topic Author
  • Offline
  • Elite Member
More
1 year 9 months ago - 1 year 9 months ago #180225 by George Nasis
Replied by George Nasis on topic All images disappeared from K2 items
Thanks for the reply.

My K2 items IDs have not changed and all the files (images) on the server have the proper permissions rw- r-- r--
The strange is that I have only two items that have kept the images. These two ones I created today in the morning.
This happened just like that today.
I tried to restore the database but I see no point as you say there is not any reference in the database. 
Can I restore all the images to the files somehow?
 
Last edit: 1 year 9 months ago by George Nasis.

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #180229 by JoomlaWorks
Replied by JoomlaWorks on topic All images disappeared from K2 items
Did you check if the image files are assigned to a different user perhaps (file ownership issue)?

Additionally, if you just call and image file directly on the browser, what happens? If the file loads just fine, then something else is blocking the images. I would start with any "security" extensions that might be overzealous in what they (supposedly) protect.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • George Nasis
  • George Nasis's Avatar Topic Author
  • Offline
  • Elite Member
More
1 year 9 months ago #180230 by George Nasis
Replied by George Nasis on topic All images disappeared from K2 items
Thank you for your help and your interest.

I restored files to a previous date and everything is fine.
Unfortunately, I did not check to open an image direclty on the broswer :/

The most frustrating is that I did not analyse/debug what happened to provide feedback as the restore to previous point worked.

It remains a mystery how suddenly 1900 images were "deleted" from the k2 items.

I will let you know if I discover anything or if it happens again (I hope not)

Cheers

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #180231 by JoomlaWorks
Replied by JoomlaWorks on topic All images disappeared from K2 items
Great!

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum