This Help forum is for issues relates to the latest release (1.7.10/11/12). For issues related to development versions please use their own Help forum.
Before asking for help please read "How to request help" by clicking on that tab above here."

TOPIC: [SOLVED] Gedcom import: Media file not found

Gedcom import: Media file not found 1 month 3 weeks ago #1

  • ChrisAndersen
  • ChrisAndersen's Avatar
  • Offline
  • New
  • Posts: 30
While testing webtrees I found this error. Probably it's a beginner thing (ashamed).

That's what happened:
- Installed version 1.7.12
- Uploaded a gedcom file with pictures I exported from Family Tree Maker before
... nice and easy, no server problems, highspeed page, I got all the data :-)

Then I clicked on sources and different picture symbols/thumbs and...

Error:
"The media file was not found in this family tree." :-(

Here is a link to my tree...
What am I doing wrong?
genroot.me
================
(wt 1.7.12 | php 7.2.13)
Last Edit: 1 month 3 weeks ago by ChrisAndersen.
The administrator has disabled public write access.

Gedcom import: Media file not found 1 month 3 weeks ago #2

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 10825
> Uploaded a gedcom file with pictures

The GEDCOM file does not contain the pictures.

It only contains the *names* of the files (e.g. "my-photo.jpg"), not the actual .JPG file itself.

You need to upload these separately.

You need to copy them to the /data/media/ folder in webtrees.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

Gedcom import: Media file not found 1 month 3 weeks ago #3

  • ChrisAndersen
  • ChrisAndersen's Avatar
  • Offline
  • New
  • Posts: 30
fisharebest wrote:
>It only contains the *names* of the files (e.g. "my-photo.jpg"), not the actual .JPG file itself.

You need to upload these separately.

You need to copy them to the /data/media/ folder in webtrees.

I think I understand :-)
At the moment there are wrong medialinks in my gedcom file, which are pointing to the media folder of my harddisc.
What I want to try is to change these links with an editor with global "find an replace".

Would this be the right link syntax?
../data/media/xyz.jpg

...and are there any length limitations concerning the jpg-name?
genroot.me
================
(wt 1.7.12 | php 7.2.13)
Last Edit: 1 month 3 weeks ago by ChrisAndersen.
The administrator has disabled public write access.

Gedcom import: Media file not found 1 month 3 weeks ago #4

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 10825
> which are pointing to the media folder of my harddisc

webtrees has a feature to fix this.

When you import the gedcom file, there is an option to "remve media path".

If you GEDCOM contains /foo/bar/fab/photo.jpeg
and your webtrees site stores this in .../data/media/fab/photo.jpeg
then specify "/foo/bar/" as the path to remove.

If you use this option, then webtrees will remember the setting, and give you the option to add it back when you export the file.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

[SOLVED] Gedcom import: Media file not found 1 month 3 weeks ago #5

  • ChrisAndersen
  • ChrisAndersen's Avatar
  • Offline
  • New
  • Posts: 30
sorry, but not solved
genroot.me
================
(wt 1.7.12 | php 7.2.13)
Last Edit: 1 month 3 weeks ago by ChrisAndersen. Reason: not solved
The administrator has disabled public write access.

[SOLVED] Gedcom import: Media file not found 1 month 3 weeks ago #6

  • ChrisAndersen
  • ChrisAndersen's Avatar
  • Offline
  • New
  • Posts: 30
hm... not solved
first... thanks for the answer :-)

I've tried the following:
- removed the private flag in my Family Tree Maker for all media files
- shortet the link during the gedcom upload to webtrees process and tried it with slash and backslash signs
- uploaded one eminent media file on the server to: data/media
- checked under webtrees/lists/media objects and still get the same error:
The file “C:/Users/cs241/Documents/07-Genealogie/00-Aktuell/cjs Media/1866WSchröderGurk.jpg” does not exist.

Obviously the link hasn't been shortened during the upload process.

Got for all media files the same Error syntax.

What am I doing wrong?
genroot.me
================
(wt 1.7.12 | php 7.2.13)
The administrator has disabled public write access.

[SOLVED] Gedcom import: Media file not found 1 month 3 weeks ago #7

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 10825
I'm guessing that you need to specify this string (with backslashes to match your original data) as the "media path to remove".

C:\Users\cs241\Documents\07-Genealogie\00-Aktuell\cjs Media\

This will leave just this in the media record in webtrees.

1866WSchröderGurk.jpg

webtrees will look for this file in
data/media/1866WSchröderGurk.jpg

If you do this, and webtrees says that it can't find "1866WSchröderGurk.jpg", then try again with a different media file that does not contain letters with accents (ö).

Your webserver probably uses Linux, and Windows stores these filenames differently to Linux. Sometimes the filenames get corrupted when you FTP files between servers.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

[SOLVED] Gedcom import: Media file not found 1 month 3 weeks ago #8

  • ChrisAndersen
  • ChrisAndersen's Avatar
  • Offline
  • New
  • Posts: 30
Great... works :-) Thx for that.

...concerning photos is there a little issue, when I open an individual page (individual.php?pid=)

You can see "photo" is red.
When I mouseover it I got:
Unrecognized Gedcom code.

The picture link in the next column works.

What am I doing wrong?
Attachments:
genroot.me
================
(wt 1.7.12 | php 7.2.13)
Last Edit: 1 month 3 weeks ago by ChrisAndersen.
The administrator has disabled public write access.
Do you need a web hosting solution for your webtrees site?
If you prefer a host that specialises in webtrees, the following page lists some suppliers able to provide one for you: 

[SOLVED] Gedcom import: Media file not found 1 month 3 weeks ago #9

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 10825
Your GEDCOM file contains an entry for "_PHOTO".

This is not a valid GEDCOM tag.

Invalid tags are only shown to administrators. Your visitors should not see them.

You can either

1) find/delete these entries.

2) hide them. It is an option in the family tree preferences.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

[SOLVED] Gedcom import: Media file not found 1 month 3 weeks ago #10

  • norwegian_sardines
  • norwegian_sardines's Avatar
  • Offline
  • Gold
  • Posts: 1510
_PHOTO is not a valid GEDCOM tag. Many genealogy programs use invalid GEDCOM tags to support data concepts that they don't use or support themselves.

GEDCOM uses OBJE tag as described in the v5.5.1 GEDCOM standard

Basically the following is used in the event/fact to point to a OBJE record type:

2 OBJE @<XREF:OBJE>@


Then the OBJE record type would have tags like:
0 @XREF:OBJE@ OBJE
1 FILE <MULTIMEDIA_FILE_REFN>
Ken
The administrator has disabled public write access.

[SOLVED] Gedcom import: Media file not found 1 month 3 weeks ago #11

  • ChrisAndersen
  • ChrisAndersen's Avatar
  • Offline
  • New
  • Posts: 30
Problem solved.

thx and thx for the gedcom explanation. :-)
genroot.me
================
(wt 1.7.12 | php 7.2.13)
Last Edit: 1 month 3 weeks ago by ChrisAndersen.
The administrator has disabled public write access.
Powered by Kunena Forum