This Help forum is for issues relates to the latest release (1.7.9). For issues related to beta or github 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: [SOLVED] Can't see *some* media

Can't see *some* media 3 months 3 weeks ago #1

  • Marshall
  • Marshall's Avatar
  • Offline
  • New
  • Posts: 46
Hi all,
I recently upgraded my server that runs webtrees to ubuntu 18.04 LTS. I was getting messages that my PHP version was almost EOL, so I upgraded and now have the specs you see in my signature below. Perhaps my issue was existing before, perhaps not. Anyhow, here is what I'm experiencing:

I have 40 images in my <media_home>/marriages, but only 36 of them appear in webtrees' media manager. Some are linked and some are not, but both types show. All of the files in this directory are set 744 and are owned by www-data, so I'm not certain why only some of these are visible. I even tried uploading an image through the web interface. It loaded it in the correct directory and is owned by www-data, but set the permissions as 644. I set as 744 to check if it helped. It did not. I cannot see the image that I just uploaded through the upload dialog.

Is there a filename length issue that could cause this? Is my php being at 7.2 causing problems?

Would the media firewall improve this situation? I've heard talk of it over several versions, but not sure what benefits it would provide, other than an extra layer of security so my files can't be tampered/stolen.

Any thoughts on this would be helpful. Thanks in advance.
webtrees 1.7.11
Ubuntu Linux 18.04 LTS 64-bit
Apache 2.4.29
MySQL 5.7.23
PHP 7.2.7
Last Edit: 3 months 3 weeks ago by Marshall. Reason: redundancy in the title
The administrator has disabled public write access.

Can't see *some* media 3 months 3 weeks ago #2

  • Luenissla
  • Luenissla's Avatar
  • Offline
  • Junior
  • Posts: 129
Hello,
did you make sure that the files have a correct file extension?
Best regards
Hans-Joachim (Lünenschloß)
The administrator has disabled public write access.

Can't see *some* media 3 months 3 weeks ago #3

  • fisharebest
  • fisharebest's Avatar
  • Online
  • Administrator
  • Posts: 10573
> Would the media firewall improve this situation? I've heard talk of it over several versions

This was a separate function in webtrees 1.0 -> 1.4.
Since 1.5, this function is built in.

> I recently upgraded my server that runs webtrees to ubuntu 18.04 LTS

When you upgraded, did you install all the same PHP libraries that you had before?

Perhaps you forgot to install php-gd - which is used to generate thumbnail images...
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.

Can't see *some* media 3 months 3 weeks ago #4

  • Marshall
  • Marshall's Avatar
  • Offline
  • New
  • Posts: 46
Here is a directory listing of the files.
pastebin

Two of the ones that won't appear are:
Marriage_Davis_Harvard.jpg (Existing on site for years, but not linked)
Marriage_Davis_Davis2.jpg (Newly uploaded using webtrees upload dialog)


Hi Greg,
Always good to hear from you. The pastebin above also shows that php-gd is installed. Do I need to enable other modules of apache? I did need to enable php to get it working via a2enmod
It was an "in-place upgrade", meaning it upgraded the packages.

Worst-case scenario, I have a snapshot in place before the upgrade, so I could revert back and try that, but then would need to upgrade the OS again.
webtrees 1.7.11
Ubuntu Linux 18.04 LTS 64-bit
Apache 2.4.29
MySQL 5.7.23
PHP 7.2.7
Last Edit: 3 months 3 weeks ago by Marshall. Reason: Reply to Greg as well
The administrator has disabled public write access.

Can't see *some* media 3 months 3 weeks ago #5

  • fisharebest
  • fisharebest's Avatar
  • Online
  • Administrator
  • Posts: 10573
Error messages in webtrees error log?
Error messages in apache error log?

I'm going to have very little internet for the next 10 days, so can't do much investigation.

Also "Won't appear" is very vague and could mean many things. You didn't even post a URL of a problematic page. Makes it harder to help you.
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.

Can't see *some* media 3 months 3 weeks ago #6

  • Marshall
  • Marshall's Avatar
  • Offline
  • New
  • Posts: 46
Sorry for the vagueness.

Problem: When I look in the admin area under "manage media", it defaults to 10 items per page that displays. When I select the marriages directory, it shows something like 1-10 of 36, when there are actually 40 in the directory (some used, some not).

As for the link:
Since it is in the admin area, I did not post a link to a place nobody could go without an account. I also wouldn't expect you to log in if the answer was a simple one. Since it seems that it needs more depth, I'll create you an account so you can see it. I'll give you admin of course so you can get to the specific area.

I'll send a message with this information shortly.

Thanks again!
webtrees 1.7.11
Ubuntu Linux 18.04 LTS 64-bit
Apache 2.4.29
MySQL 5.7.23
PHP 7.2.7
The administrator has disabled public write access.

Can't see *some* media 3 months 3 weeks ago #7

  • Conjurer
  • Conjurer's Avatar
  • Offline
  • New
  • Posts: 25
Might be the radio button for unused files is not checked?
Attachments:
The administrator has disabled public write access.

Can't see *some* media 3 months 3 weeks ago #8

  • Marshall
  • Marshall's Avatar
  • Offline
  • New
  • Posts: 46
Checked or unchecked did not help. I did try it though. =)
webtrees 1.7.11
Ubuntu Linux 18.04 LTS 64-bit
Apache 2.4.29
MySQL 5.7.23
PHP 7.2.7
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: 

Can't see *some* media 3 months 3 weeks ago #9

  • Marshall
  • Marshall's Avatar
  • Offline
  • New
  • Posts: 46
Greg,
Please check your gmail. I sent the information there.
webtrees 1.7.11
Ubuntu Linux 18.04 LTS 64-bit
Apache 2.4.29
MySQL 5.7.23
PHP 7.2.7
The administrator has disabled public write access.

Can't see *some* media 2 weeks 15 hours ago #10

  • Marshall
  • Marshall's Avatar
  • Offline
  • New
  • Posts: 46
Hi all,
I wanted to update the members about what I found.

The problem was two-fold, or one issue causing another.

"Conjurer" was onto something. I remembered that I had tried selecting "unused media", but forgot I had received an error, an ajax error, that normally means that the URL was too long, which has been covered in other topics on this site.

One solution associated with that, was that during thumbnail generation, a memory issue could cause this type of problem indirectly. The memory issue was also causing me to receive errors un-zipping the upgrade to 1.7.11. I changed memory setting in php from something like 128M to 128000000, which allowed me to upgrade webtrees. I needed to bump it up to 192000000 to cover the memory needed to create the thumbnails.

With the memory bumped up, generating the thumbnails was possible and the ajax error no longer showed up.

The "missing" media files now show up in the "unused" selection.

Thank you all for your help with this.
webtrees 1.7.11
Ubuntu Linux 18.04 LTS 64-bit
Apache 2.4.29
MySQL 5.7.23
PHP 7.2.7
The administrator has disabled public write access.

[SOLVED] Can't see *some* media 2 weeks 15 hours ago #11

  • Marshall
  • Marshall's Avatar
  • Offline
  • New
  • Posts: 46
Problem solved.
webtrees 1.7.11
Ubuntu Linux 18.04 LTS 64-bit
Apache 2.4.29
MySQL 5.7.23
PHP 7.2.7
The administrator has disabled public write access.
Powered by Kunena Forum