This Help forum is for issues relates to the latest release (1.4.6). For issues related to beta or git version please use their own Help forum.
Before asking for help please read "How to request help" by clicking on that tab above here.

TOPIC: Media address Problem 2

Media address Problem 2 5 years 1 month ago #1

  • Peter37
  • Peter37's Avatar
I have just installed webtrees 1.4.6 and have uploaded a Gedcom file that was generated by "Ahnenblatt" on my PC.
Everything works fine, except the pictures.
After some wrestling, I finally got my "Gedcom media path" settings right, and the media file looks clean.
But still no pictures show. - Only the titles.
All I get is the message "This media file was not found in this family tree".
webtrees tries to follow the link "gentzsch-wiesbaden.de/webtrees/webtrees/mediafirewall.php?mid=M4067&ged=Familie%20Gentzsch&cb=41e37ed0 "
Whereas the MID-Number is correct, it seems strange to me that the link does not include any reference to the wt_media table.
Can anybody help? What do I do wrong?
Thanks,
Peter
The administrator has disabled public write access.

Media address Problem 2 5 years 1 month ago #2

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11117
The URL contains "mid=M4067"
webtrees will look for the record (wt_media) with this ID.

The record will contain a filename (and optional folder name). e.g.

1 FILE folder/file.jpeg

webtrees will then look for the "Gedcom media path" setting. e.g. "media/"

These are joined, to give "media/folder/file.jpeg".

webtrees will look for this file (in the "data/" folder), so it will be looking for data/media/folder/file.jpeg

Does this file exist? Are the file access permissions correct?
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.

Media address Problem 2 5 years 1 month ago #3

  • Peter37
  • Peter37's Avatar
This is a printout of the record in the wt_media folder:

SQL-Abfrageergebnis

Host: localhost
Datenbank: usr_web1786_1
Erstellungszeit: 25. Mai 2014 um 17:46
Erstellt von: phpMyAdmin 3.1.2 / MySQL 5.1.49-3~bpo50+1-log
SQL-Befehl: SELECT * FROM `wt_media` LIMIT 36, 1 ;
Zeilen: 1
m_id m_ext m_type m_titl m_filename m_file m_gedcom
M4067 jpg Dister-Ingeborg.JPG Dister-Ingeborg.JPG 1 0 @M4067@ OBJE
1 FILE Dister-Ingeborg.JPG
2 FORM jpg

To me this looks OK
Where do I find the file access permission?
The administrator has disabled public write access.

Media address Problem 2 5 years 1 month ago #4

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11117
Where do I find the file access permission?

On the server. Sorry, but without knowing your server setup, it is impossible to say exactly.

Assuming you have a "typical" webhosting package on a unix server, you can check file permission (AND OWNERSHIP) using an FTP or SFTP client.
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.

Media address Problem 2 5 years 1 month ago #5

  • Peter37
  • Peter37's Avatar
There is no password protection on any of the webtrees folders, - if that is what you mean.
Since all the other Gedcom data got transferred fine, and I did not treat the media any different, I would be surprised if there were any different permissions.
I am still not shure that the link is looking in the right place.
Can you confirm this?
The administrator has disabled public write access.

Media address Problem 2 5 years 1 month ago #6

  • ToyGuy
  • ToyGuy's Avatar
  • Offline
  • Moderator
  • Live like it's Christmas every day - Santa Stephen
  • Posts: 4925
Peter
If they were new folders, and if you didn't allow the system to create them, but rather made them and copied files into them, likely they have the wrong permissions. The media folder (in fact the /data folder and all its contents) should have full RW permissions: 777

I you are not familiar with file and folder permissions, you need to do a lot of study before you are ready to manage your own server.
Santa Stephen the Fabled Santa
Latest webtrees at MyArnolds.com
Hosted by webtreesonline.com, a division of GeneHosts LLC
MacOS 10.6.8, Apache 2.2+, PHP 5.4.16, MySQL 5.5.28
The administrator has disabled public write access.

Media address Problem 2 5 years 1 month ago #7

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11117
Since all the other Gedcom data got transferred fine, and I did not treat the media any different, I would be surprised if there were any different permissions

The GEDCOM file does not contain the media files - only their filenames. You must also copy the media files to the server.
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.

Media address Problem 2 5 years 1 month ago #8

  • Peter37
  • Peter37's Avatar
Hello ToyGuy,
This must be a misunderstanding: I agree that I should learn a lot if I planned to manage my server; but all I am planning to do is to install webtrees and get it to operate.
Nevertheless: I have tried to look for the RW-Permissions.- All I find is: drwxr-xr-x for the media folder and a lot of -rw-r--r-- for other files. - I understand this is not numeric because I use an oldfashioned FTP.
Hello fisharebest,
this seems to be the right lead:
I did not realize that Gedcom does not include any mediafiles. - Now I shall transfer them separately. - But to where? - (avoiding any RW-Permission problems). Can I just dump them into wt_media, or shoul there be a special folder?
This then leads to the next question: Is there any special action required for thumbs?
I really appreciate your help! - This is the first time I deal with Database programs.
Peter
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: 

Media address Problem 2 5 years 1 month ago #9

  • ToyGuy
  • ToyGuy's Avatar
  • Offline
  • Moderator
  • Live like it's Christmas every day - Santa Stephen
  • Posts: 4925
Peter37 wrote:
I did not realize that Gedcom does not include any mediafiles. - Now I shall transfer them separately. - But to where? - (avoiding any RW-Permission problems). Can I just dump them into wt_media, or shoul there be a special folder?
This then leads to the next question: Is there any special action required for thumbs?
I really appreciate your help! - This is the first time I deal with Database programs. Peter
Peter, managing a SQL DB program and a server is not for the faint of heart, or the uninitiated. I was not indicting you, only pointing out that this is not a program like others that are self-sufficient. It needs a properly configured server, with SQL database, and an admin who understands all that this implies. There is no paid program and no paid help.

Even the free filezilla FTP program shows the rwrwrw and then the conversion code to 777 or 666, etc. If you need to understand permissions, you may need to Google, "setting file permissions".

The how and where to locate your media files is well documented in the WIKI. But the short of it, if you choose not to read the various instructions there or previous posts here, would be inside the /data/media folder. You must also set that path in your family tree configuration. And the permissions on the media folder (and/or any subfolders) should be full RW for all users.
Santa Stephen the Fabled Santa
Latest webtrees at MyArnolds.com
Hosted by webtreesonline.com, a division of GeneHosts LLC
MacOS 10.6.8, Apache 2.2+, PHP 5.4.16, MySQL 5.5.28
The administrator has disabled public write access.

Media address Problem 2 5 years 4 weeks ago #10

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11117
Peter37 wrote:
Hello fisharebest,
this seems to be the right lead:
I did not realize that Gedcom does not include any mediafiles. - Now I shall transfer them separately. - But to where?

See my post #2
Peter37 wrote:
Can I just dump them into wt_media, or shoul there be a special folder?

Media files are stored as files in a folder, not in the database.
Peter37 wrote:
This then leads to the next question: Is there any special action required for thumbs?

Thumbnails are created automatically when they are needed.

Manual intervention is only required if:

1) you want a special thumbnail (e.g. a head-and-shoulders crop from a full image)
2) you want to create a thumbnail from a non-image file such as a sound clip.
3) your server does not have enough memory to create thumbnails from very large media files.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
Last Edit: 5 years 4 weeks ago by fisharebest.
The administrator has disabled public write access.

Media address Problem 2 5 years 4 weeks ago #11

  • Peter37
  • Peter37's Avatar
Thank you for your patience!
I habe now done the following:
1. I have transferred several pictures to the following folder:
/html/webtrees/webtrees/data/media/D:/Daten/Ahnen/Ahnenforschung/Gentzsch-Ahnenblatt/Gentzsch Familienstammbaum
(The rather lengthy name of the folder results from the lengthy "Gedcom media path")
2. I have changed all file access permissions from data down to each individual picture to 777 using the webFTP on the server.

I am sorry, but I still do not see any of the pictures transferred in my webtrees.
I would apprciate your comments.
Peter
The administrator has disabled public write access.

Media address Problem 2 5 years 4 weeks ago #12

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11117
I guess that you should have uploaded the media to

/html/webtrees/webtrees/data/media/

instead of

/html/webtrees/webtrees/data/media/D:/Daten/Ahnen/Ahnenforschung/Gentzsch-Ahnenblatt/Gentzsch Familienstammbaum


(In my earlier post, I said "GEDCOM media path" when I meant "media folder". Sorry).

The "GEDCOM media path" is removed from the GEDCOM data when you import your GEDCOM file. From post #3, your data does not contain a path, and so you can ignore this setting.
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.

Media address Problem 2 5 years 4 weeks ago #13

  • Peter37
  • Peter37's Avatar
I now have uploaded 4 pictures (jpg-files) to
/html/webtrees/webtrees/data/media.
I still do not see any pictures in webtrees.
Should I do anything else ?
The administrator has disabled public write access.

Media address Problem 2 5 years 4 weeks ago #14

  • Jackie
  • Jackie's Avatar
  • Offline
  • Platinum
  • Posts: 4709
Hello Peter37,

That thread may help you understand what is wrong. There sure is a conflict between the media path and the real location of your media items.

www.webtrees.net/index.php/fr/forum/help...com-media-path#45250
The administrator has disabled public write access.

Media address Problem 2 5 years 4 weeks ago #15

  • Peter37
  • Peter37's Avatar
This is a typical line in Gedcom:

2 FILE D:\Daten\Ahnen\Ahnenforschung\Gentzsch-Ahnenblatt\Gentzsch Familienstammbaum\Thumann-Carina-1992.jpg

The result in the database is:

m_id m_ext m_type m_titl m_filename m_file m_gedcom
M5643 jpg 1992 Thumann-Carina-1992.jpg 1 0 @M5643@ OBJE
1 FILE Thumann-Carina-1992.jpg
2 FORM jpg
1 TITL 1992

In Gedcom all relevant lines start with 2, whereas it shows 1 after removal of the Gedcom path.
Does this have any sinificance?
The administrator has disabled public write access.

Media address Problem 2 5 years 4 weeks ago #16

  • Jackie
  • Jackie's Avatar
  • Offline
  • Platinum
  • Posts: 4709
Peter37 wrote:
This is a typical line in Gedcom:

2 FILE D:\Daten\Ahnen\Ahnenforschung\Gentzsch-Ahnenblatt\Gentzsch Familienstammbaum\Thumann-Carina-1992.jpg

The result in the database is:

m_id m_ext m_type m_titl m_filename m_file m_gedcom
M5643 jpg 1992 Thumann-Carina-1992.jpg 1 0 @M5643@ OBJE
1 FILE Thumann-Carina-1992.jpg
2 FORM jpg
1 TITL 1992

In Gedcom all relevant lines start with 2, whereas it shows 1 after removal of the Gedcom path.
Does this have any sinificance?

Hello Peter,

What exactly is the path of that media item in your webtrees installation?

Is it?:

../your_webtrees_intallation/data/media/Ahnen/Ahnenforschung/Gentzsch-Ahnenblatt/Gentzsch Familienstammbaum/Thumann-Carina-1992.jpg ?

If you kept those media link paths when you uploaded your gedcom, webtrees will search the jpg image in this sub-folder named « Gentzsch Familienstammbaum »

Did you really create all these sub-folders under the folder data/media/ ?
Last Edit: 5 years 4 weeks ago by Jackie.
The administrator has disabled public write access.

Media address Problem 2 5 years 4 weeks ago #17

  • Jackie
  • Jackie's Avatar
  • Offline
  • Platinum
  • Posts: 4709
Peter37 wrote:
I now have uploaded 4 pictures (jpg-files) to
/html/webtrees/webtrees/data/media.
I still do not see any pictures in webtrees.
Should I do anything else ?

Hello Peter,

If you uploaded the jpg image « Thumann-Carina-1992.jpg » in the folder: /data/media/

It is normal that webtrees can not find it, simply because your gedcom links told webtrees to search it in the folder: /data/media/Ahnen/Ahnenforschung/Gentzsch-Ahnenblatt/Gentzsch Familienstammbaum/
The administrator has disabled public write access.

Media address Problem 2 5 years 4 weeks ago #18

  • Peter37
  • Peter37's Avatar
The same pictures were uploade to both:
1. /html/webtrees/webtrees/data/media/D:/Daten/Ahnen/Ahnenforschung/Gentzsch-Ahnenblatt/Gentzsch Familienstammbaum and
2. /html/webtrees/webtrees/data/media

re 1: If I remember correctly, the long path for 1. was generated by the program, but I am not certain. - By the way, the same path is suggested under Thumbs. - Also, I do not understand why webtrees should be looking here because I thought that the Gedcom media path was removed in transfer.
re 2: I have uploaded the pictures also directly to media because that was suggested in the blog.

I am slowly getting confused with what I did in which sequence because I also have imported the same Gedcom file several times.
Should I start over again? - What do you think? - And which procedure should I follow :
- Is "D:\Daten\Ahnen\Ahnenforschung\Gentzsch-Ahnenblatt\Gentzsch Familienstammbaum" correct for the Gedcom media path?
- Should I leave the pictures in both places?
The administrator has disabled public write access.

Media address Problem 2 5 years 4 weeks ago #19

  • Jackie
  • Jackie's Avatar
  • Offline
  • Platinum
  • Posts: 4709
Peter37 wrote:
The same pictures were uploade to both:
1. /html/webtrees/webtrees/data/media/D:/Daten/Ahnen/Ahnenforschung/Gentzsch-Ahnenblatt/Gentzsch Familienstammbaum and
2. /html/webtrees/webtrees/data/media

re 1: If I remember correctly, the long path for 1. was generated by the program, but I am not certain. - By the way, the same path is suggested under Thumbs. - Also, I do not understand why webtrees should be looking here because I thought that the Gedcom media path was removed in transfer.

re 2: I have uploaded the pictures also directly to media because that was suggested in the blog.

I am slowly getting confused with what I did in which sequence because I also have imported the same Gedcom file several times.
Should I start over again? - What do you think? - And which procedure should I follow :
- Is "D:\Daten\Ahnen\Ahnenforschung\Gentzsch-Ahnenblatt\Gentzsch Familienstammbaum" correct for the Gedcom media path?
- Should I leave the pictures in both places?

Hello Peter,

NO. It is not necessary to upload your images in both locations. Actually, the problem is not the folder where your images are stocked. The problem seems to be that the path to your images. It not the same as the "real path". But nobody can confirm what is your issue because we don't know the URL address of your website.

What is the URL address of your website? Is it located on your personal computer? On a web hosting? Your own server?

D:\ is surely your local hard disk. Therefore, all links starting with this are incorrect if your website is located on a web hosting server which could be http://____www___yourdomainname___xxx
Last Edit: 5 years 4 weeks ago by Jackie.
The administrator has disabled public write access.

Media address Problem 2 5 years 4 weeks ago #20

  • Jackie
  • Jackie's Avatar
  • Offline
  • Platinum
  • Posts: 4709
Hello Peter,

In your post #11 above, you posted
1. I have transferred several pictures to the following folder:
/html/webtrees/webtrees/data/media/D:/Daten/Ahnen/Ahnenforschung/Gentzsch-Ahnenblatt/Gentzsch Familienstammbaum

Did you really create all those folders (sub-folders) on your website, under data/media folder?
  1. a folder named D:
  2. In D: a folder named Daten
  3. In Daten a folder named Ahnen
  4. In Ahnen a folder named Ahnenforschung
  5. In Ahnenforschung a folder named Gentzsch-Ahnenblatt
  6. In Gentzch-Ahnenblatt a folder named Gentzsch_Familienstammbaum

EDIT : What is a path (computing) ? The answer is there:
en.wikipedia.org/wiki/Path_%28computing%29
Last Edit: 5 years 4 weeks ago by Jackie.
The administrator has disabled public write access.
Powered by Kunena Forum