Search Forums
Forums
Kiwitrees on Twitter
    Tags

    validation, ADDR, 3.3.1 Notes, fixing errors, custom modules, MYSQL, datatables, contacts, pages, set link, places, Favourites, NCHI, media_links, .po, partner, shared note, pdf, version, server, time, defacto, zend, tags, edit interface, 3.0.0, census, Default record, redirect, name, edit, special character, folder, updates, GEDCOM errors, widget, button, menu, upgrade, Google Maps, clipboard, Add a wife, duplicates, source, birth, custom text, survey, BAPM, kiwitrees 2.0.2, php 5.6, permissions, reports, pop-ups, album, mobile, family facts, simpl_grey, tab, administration pages, emmigration

    Tagged: ,

    Topic:   Media Issue  

    This topic contains 12 replies, has 3 voices, and was last updated by Roy Roy 2 years, 8 months ago.

    Viewing 13 posts - 1 through 13 (of 13 total)
    • Author
      Posts
    • #4168
      Roy
      Roy
      Participant

      112 posts

      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.

      #4169
      clandav
      clandav
      Participant

      132 posts

      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: http://www.clan-davies.org/webtrees/
      kiwitrees 3.3.1; PHP 7.0.23; MySQL 5.6.37 ;

      #4170
      clandav
      clandav
      Participant

      132 posts

      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: http://www.clan-davies.org/webtrees/
      kiwitrees 3.3.1; PHP 7.0.23; MySQL 5.6.37 ;

      #4171
      clandav
      clandav
      Participant

      132 posts

      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: http://www.clan-davies.org/webtrees/
      kiwitrees 3.3.1; PHP 7.0.23; MySQL 5.6.37 ;

      #4174
      kiwi
      kiwi
      Keymaster

      1545 posts

      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
      #4175
      kiwi
      kiwi
      Keymaster

      1545 posts

      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
      #4176
      clandav
      clandav
      Participant

      132 posts

      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: http://www.clan-davies.org/webtrees/
      kiwitrees 3.3.1; PHP 7.0.23; MySQL 5.6.37 ;

      #4177
      clandav
      clandav
      Participant

      132 posts

      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: http://www.clan-davies.org/webtrees/
      kiwitrees 3.3.1; PHP 7.0.23; MySQL 5.6.37 ;

      #4178
      kiwi
      kiwi
      Keymaster

      1545 posts

      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 https://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
      #4179
      clandav
      clandav
      Participant

      132 posts

      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 like

      img src=”mediafirewall.php?mid=M738″

      (see https://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: http://www.clan-davies.org/webtrees/
      kiwitrees 3.3.1; PHP 7.0.23; MySQL 5.6.37 ;

      #4220
      Roy
      Roy
      Participant

      112 posts

      I had my image issue wrong in my earlier posting.

      The images are found but the thumbnails are not visible and the images do not open in kiwitrees 3.0.0. Some thumbnails are seen but not all under some kiwitrees image firewall watermark show settings. The thumbnails do seem to all work in Fancy Imagebar. All thumbnail and image files open normally using a browser or other appropriate software.

      Current watermark for 2 live and 1 local WAMP setups are shown in the attachment:

      The “Images without watermarks” has 4 “Show to” settings; visitors, members, managers, and none while there can be 2 additional users; editor and moderator. Are the editors and moderator users rolled into the managers?

      Changing the local WAMP install “Images without watermarks” setting gives the following results.
      Images without watermarks settingResult

      Show to Visitors no thumbnails seen by visitors, members, and managers
      Show to Members [default setting] some but not all thumbnails seen by members and not seen my managers
      Show to Managers no thumbnails seen by visitors, members, and managers
      Show to None no thumbnails seen by visitors, members, and managers

      The 4 watermark entries in kt_gedcom_setting reflect any changes made.

      As a test, turned on the watermark options; new watermark thumbnails and images do not appear to be made.

      When a JPG thumbnail or an image placeholder icon is clicked, the image box opens and says “This image failed to load”. When a TXT, DOC or DOCX image placeholder icon of is clicked, the image box opens and everything hangs up; used to default to opening in Word. Clicking on a PDF image placeholder icon works fine, they open!

      Attempted fixes included export/import of GEDCOM. Reset permissions for all image and thumbnail files. Validated size of image and thumbnail files to be within published parameters.

      Roy

      Attachments:
      #4223
      kiwi
      kiwi
      Keymaster

      1545 posts

      Roy

      That’s extensive testing, thank you. But I am concerned (and confused) by some of the results. It seems like multiple and contradictory results. So I would like to start unravelling it by excluding the issue of watermarks just for now. Once any other issues are cleared up we can return to watermark issues.
      So please set the watermark options to no, no, no and ‘show to visitors’. This effectively turns off everything related to watermarks, making that feature completely irrelevant to any other issues.

      With those settings in place do you still have issues with all or some media items?
      If so can you :
      A) show the rest of the settings from that admin media tab, especially the top section (email it if you are concerned about revealing media paths), and
      B) show me the GEDCOM data for one media object ( the 0 @Mxxxx@ record) that is not displaying correctly.

      For this testing I am also assuming you are logged in as administrator. This ensures no other privacy complications are involved.

      Nigel
      My personal kiwitrees site is www.our-families.info
      #4230
      Roy
      Roy
      Participant

      112 posts

      Nigel:

      Will email the files tomorrow. Been tied up with medical and book publishing issues.

      Thanks for all the help.

      Roy

    Viewing 13 posts - 1 through 13 (of 13 total)

    You must be logged in to reply to this topic.