Image deleted after copy of article

More
5 years 1 month ago #77242 by Rooney
The bug still exist. FC version 3.3.1.6-hotfix. Joomla 3.9.12

Joomla! 3.9.24 and FC 3.3.9

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

More
4 years 7 months ago #78457 by Rooney
This error still exists in 3.3.3!
Rooney

Joomla! 3.9.24 and FC 3.3.9

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

More
4 years 7 months ago #78458 by micker
hello
can you post this with some screen in github ? i confirm it

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
4 years 7 months ago - 4 years 7 months ago #78460 by ggppdk
Hello

Before deletion we count usage of files by searching the database and counting the usage in all known fields
- if we fail to find all usage an image file will be considered as "safely" deletable ..

by searching raw "value" for fields:
file , minigallery, mediafile ........ for a matching file ID

And for 'image' fields, it searches
'originalname' property .......... for matching the filename


I think the 'image' fields need to be searched also
'existingname' value property ... for matching the filename

Maybe this will find all image usage and i will add the above today so that you can test

Also a work around before you copy an item is to load the item, save it and then do save as copy ...


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 4 years 7 months ago by ggppdk.

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

More
4 years 7 months ago #78461 by Rooney

ggppdk wrote: Also a work around before you copy an item is to load the item, save it and then do save as copy ...


Yes, there are workarounds, but imagine that someone wants to replace an image that is used elsewhere und does not know about the bug. The image is deleted and might be lost forever. Or it is not even known that the image is not displayed on other places anymore...

I'll test the fix as soon as you have it ready!

Rooney

Joomla! 3.9.24 and FC 3.3.9

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

More
4 years 7 months ago #78462 by ggppdk
Hello

i have made the change , that may fix this issue
i will now test on some old item that use image-gallery field in DB mode


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.631 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline