- This topic has 12 replies, 3 voices, and was last updated 8 years, 6 months ago by
Roy.
-
24th March 2015 at 12:40 am #4168
Just discovered that since upgrading to 3.0.0, many but not all of my media files are no longer found. Have a hunch there is some problem with the thumbnail process. All files are there, including the thumbnails.
I have never used watermarks and all options are turned off. Because of that, the option for who can see “Images without a watermark” never had an impact in earlier versions. In version 3.0.0, changing the setting from the default, makes the remaining found media files to disappear too. Putting it back to the default, again makes those files again visible. The not found files remain unfound
Recommend that everyone check all of their media files and ensure that they are being found.
Nigel, where are the watermark option settings kept. I cannot find them anywhere.
Hope this isn’t too confusing.
Roy
Apache 2.4.27 PHP 7.19 MariaDB 10.2.8
-
24th March 2015 at 1:42 am #4169
I don’t seem to have this problem. In addition to the fact that I have seen no ‘file not found’ on any individual or family page, nor on the Home Page Slide Show, since I installed a week ago (and I know from experience if a media item is missing it is immediately apparent, whether or not I am looking for it specifically) I have tried about fifty random checks on individual/family/media searches since reading your post and none have failed to find a media file ….
HOWEVER .. I just tried Lists – Media Objects and failed to display anything. I can’t remember what was in the ‘folder’ window of this list option before (and frankly i haven’t used it for a long time, but the drop-down list of options for folder now contains only four folder locations where I once kept media files on the PC over five years ago but are no longer valid! (Where are these extracted from???) and not the folder ( /media or /data/media ) on the server! I suspect that has changed since the previous version??
In case it’s relevant, I still have ALL modules enabled – haven’t yet started to cut out those I don’t need. I can’t think of anything else that I may be doing differently – except that i still have ALL my media files in a directory /media in addition to the ‘correct’ location – /data/media.
Ron in France Website: https://clan-davies.kiwitrees.net/ kiwitrees 3.3.11; PHP 8.0.14
-
24th March 2015 at 2:21 am #4170
Roy,
As Nigel is probably asleep .. you asked about watermark option settings. I think you’ll find them under the ‘media’ tab in Admin-Family Trees.
Ron
Ron in France Website: https://clan-davies.kiwitrees.net/ kiwitrees 3.3.11; PHP 8.0.14
-
24th March 2015 at 2:34 am #4171
Please ignore my previous comment:
HOWEVER .. I just tried Lists – Media Objects and failed to display anything.
My apologies. It would have helped if I had thought to click on ‘Search’ – having now done that, all works as it should – all 5314 media objects found. And having tried many ways to generate the problem Roy describes, I can’t.
I am still intrigued to know where those old
C:/Documents & Settings/Username/My Documents/My Images …
folder names come from.
Ron in France Website: https://clan-davies.kiwitrees.net/ kiwitrees 3.3.11; PHP 8.0.14
-
24th March 2015 at 7:39 am #4174
Just discovered that since upgrading to 3.0.0, many but not all of my media files are no longer found. Have a hunch there is some problem with the thumbnail process. All files are there, including the thumbnails.
I don’t have a problem with any media objects either, neither on my personal site nor on kiwitrees/demo. I wouldn’t expect any issues with media anyway as ver 3.0.0 didn’t include any changes to media handling at all. Similarly this doesn’t sound like anything the watermarking process would affect.
The situation you describe (error messages “media item not found” while media physically exist is usually caused either by an error in the path to the files (as stored in Administration > Family trees > your family tree > Media tab) or by a permissions error on one or more folders in the /data/media folder.
One solution worth trying would be to export your data (Administration > Family trees > Manage family trees > Export) then immediately re-import that same file.
Nigel
My personal kiwitrees site is www.our-families.info -
24th March 2015 at 7:46 am #4175
In case it’s relevant, I still have ALL modules enabled – haven’t yet started to cut out those I don’t need. I can’t think of anything else that I may be doing differently – except that i still have ALL my media files in a directory /media in addition to the ‘correct’ location – /data/media.
There is absolutely no point in having media in both places. The ONLY place kiwitrees will look for media items is in /data/media. Anywhere else is just wasting space and a security risk. Media was moved (webtrees 1.3 something) to the /data folder because that is the ‘protected’ area of kiwitrees, which avoided the incredibly complex media-firewall system introduced into PGV.
The “C:/Documents & Settings/Username/My Documents/My Images …” will have been introduced a long time ago by an unseen issue importing a GEDCOM file that used those as the file path for media objects. For some reason they were not amended to a correct relative path during the import process. My guess would be that this happened way back in PGV. The best solution now would be to delete and replace those media items and their links.
Nigel
My personal kiwitrees site is www.our-families.info -
24th March 2015 at 9:43 am #4176
kiwi wrote:
There is absolutely no point in having media in both places. The ONLY place kiwitrees will look for media items is in /data/media.
The problem lies in my ‘front-end’ scripts which still refer to the media files in their ‘old’ location. I know I must deal with this but there are rather a lot of scripts to change and I keep finding excuses for not doing it just yet! But you’re absolutely right and I shall have to attack it very soon.
The “C:/Documents & Settings/Username/My Documents/My Images …” will have been introduced a long time ago by an unseen issue importing a GEDCOM file that used those as the file path for media objects. For some reason they were not amended to a correct relative path during the import process. My guess would be that this happened way back in PGV. The best solution now would be to delete and replace those media items and their links.
I’m sure you’re right that it goes back to PGV days. On checking further there are actually only five items involved – from very early in my research and they all long-since ceased to exist as media files. However their Media ids M75, M76 etc still exist, so a search by media id finds an entry somewhere (in a DB table?), showing their full file name but presents the ‘file does not exist’ message. Similarly a List-Media Objects lists them but indicates ‘file does not exist’ So I need to clean those five media items out of the table. Not sure how I find it – can you please advise Nigel.
Ron in France Website: https://clan-davies.kiwitrees.net/ kiwitrees 3.3.11; PHP 8.0.14
-
24th March 2015 at 9:53 am #4177
Not sure how I find it – can you please advise Nigel.
OK – have realised that I can simply Edit-Delete having searched for the item by its Media id. All cleared up. Sorry to have bothered you.
Ron in France Website: https://clan-davies.kiwitrees.net/ kiwitrees 3.3.11; PHP 8.0.14
-
24th March 2015 at 10:03 am #4178
The problem lies in my ‘front-end’ scripts which still refer to the media files in their ‘old’ location. I know I must deal with this but there are rather a lot of scripts to change and I keep finding excuses for not doing it just yet! But you’re absolutely right and I shall have to attack it very soon.
That’s a different issue. You can keep those items wherever you like, so /media is fine. It just means you cannot / should not also have them connected to any family tree record. If they are simply used as “decorative items” in a publicly viewable front page (i.e. not really part of kiwitrees at all) then they can stay where they are.
But you shouldn’t have “proper” family tree media items there as well. The only complication arises when you try to use a media item for both purposes.
But similarly, if you want all media items in one place, then you can convert them to media objects (i.e. ensure they are OBJE records in your GEDCOM data, and refer to them on your front end pages with a link like
img src=”mediafirewall.php?mid=M738″
(see http://kiwitrees.net/modifying-kiwitrees/make-story-module-images-open-in-colorbox/ )
However their Media ids M75, M76 etc still exist, so a search by media id finds an entry somewhere (in a DB table?), showing their full file name but presents the ‘file does not exist’ message. Similarly a List-Media Objects lists them but indicates ‘file does not exist’ So I need to clean those five media items out of the table. Not sure how I find it – can you please advise Nigel.
You should find them in Administration>Media >Manage media and be able to delete them from there. You can enter the file name or part of it in the “Filter” box.
Nigel
My personal kiwitrees site is www.our-families.info -
24th March 2015 at 10:37 am #4179
kiwi wrote
But similarly, if you want all media items in one place, then you can convert them to media objects (i.e. ensure they are OBJE records in your GEDCOM data, and refer to them on your front end pages with a link likeimg src=”mediafirewall.php?mid=M738″
(see http://kiwitrees.net/modifying-kiwitrees/make-story-module-images-open-in-colorbox/ )[
Thanks Nigel – I’ll take this approach when I tackle it – very soon!!
Ron in France Website: https://clan-davies.kiwitrees.net/ kiwitrees 3.3.11; PHP 8.0.14
- The topic ‘Media Issue’ is closed to new replies.