For issues related to the current stable release please use it's own Help forum.
IMPORTANT:Please read this before using an git or nightly build version: wiki.webtrees.net/en/GIT

Before asking for help please read "How to request help" by clicking on that tab above here.

TOPIC: Error function pictures.

Error function pictures. 5 months 3 weeks ago #1

  • JAS
  • JAS's Avatar
  • Offline
  • New
  • Posts: 84
Media fungují ve verzi 1.7.11 bez problémů.
V poslední verzi 2 - dnes instalována - obě instalace zkoušeny na PC Vertrigoserv.

Media function in version 1.7.11 without problem.
In latest version 2 today installed and 1.7.11 - installation examinate on PC Vertrigoserv

GED import from PAF.

Error:
WT 1.7.12
PHP7: 256 MB, 60 sec
MySql: verze 5.6.28
InnoDB
The administrator has disabled public write access.

Error function pictures. 5 months 3 weeks ago #2

  • fisharebest
  • fisharebest's Avatar
  • Online
  • Administrator
  • Posts: 10808
webtrees could not create the thumbnail image.

There may be a message in the webtrees error log.
There may be a message in the web-server error log.

Common causes of this error are:
1) file permissions (e.g. cannot read/write).
2) file size (e.g. large size in pixels).
3) server misconfiguration (e.g. missing php-gd library).
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.

Error function pictures. 1 month 3 weeks ago #3

  • harley-peter
  • harley-peter's Avatar
  • Offline
  • New
  • Posts: 5
Hello,
I installed the version 2.0 alpha 4 and have the same problem. The system use php 7.3 and php-gd is installed. All the permissions are read/write for all. Also the addition of a new picture does not work. I cannot save the picture.
The administrator has disabled public write access.

Error function pictures. 1 month 3 weeks ago #4

  • fisharebest
  • fisharebest's Avatar
  • Online
  • Administrator
  • Posts: 10808
With 500 errors;

There may be a message in the webtrees error log.
There may be a message in the web-server error log.

Please check your error logs for messages.
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.

Error function pictures. 1 month 3 weeks ago #5

  • harley-peter
  • harley-peter's Avatar
  • Offline
  • New
  • Posts: 5
In the webtrees directory there is no error.log

The webserver error.log tells me:
[Wed Jan 23 13:10:23.168819 2019] [:error] [pid 9135] mod_log_sql: insufficient configuration info to establish database link
[Wed Jan 23 13:10:23.168866 2019] [:error] [pid 9135] mod_log_sql: child spawned but unable to open database link
[Wed Jan 23 13:10:23.169603 2019] [:error] [pid 9136] mod_log_sql: insufficient configuration info to establish database link
[Wed Jan 23 13:10:23.169655 2019] [:error] [pid 9136] mod_log_sql: child spawned but unable to open database link
[Wed Jan 23 13:10:23.170674 2019] [:error] [pid 9137] mod_log_sql: insufficient configuration info to establish database link
[Wed Jan 23 13:10:23.170729 2019] [:error] [pid 9137] mod_log_sql: child spawned but unable to open database link
[Wed Jan 23 13:10:23.171808 2019] [:error] [pid 9138] mod_log_sql: insufficient configuration info to establish database link
[Wed Jan 23 13:10:23.171861 2019] [:error] [pid 9138] mod_log_sql: child spawned but unable to open database link
[Wed Jan 23 13:10:23.172134 2019] [mpm_prefork:notice] [pid 9134] AH00163: Apache/2.4.37 (Debian) configured -- resuming normal operations
[Wed Jan 23 13:10:23.172201 2019] [core:notice] [pid 9134] AH00094: Command line: '/usr/sbin/apache2'
[Wed Jan 23 13:10:23.172810 2019] [:error] [pid 9139] mod_log_sql: insufficient configuration info to establish database link
[Wed Jan 23 13:10:23.172860 2019] [:error] [pid 9139] mod_log_sql: child spawned but unable to open database link

I am not a specialist and I do not know what it means. All the other applications on the server work fine.
The administrator has disabled public write access.

Error function pictures. 1 month 3 weeks ago #6

  • harley-peter
  • harley-peter's Avatar
  • Offline
  • New
  • Posts: 5
If I make a list of the multimedia objects all the names are visible but not the pictures. The system tells me that the objects do not exist.
Btw. the number in the red field is 404.
Last Edit: 1 month 3 weeks ago by harley-peter.
The administrator has disabled public write access.

Error function pictures. 1 month 3 weeks ago #7

  • fisharebest
  • fisharebest's Avatar
  • Online
  • Administrator
  • Posts: 10808
> Btw. the number in the red field is 404.

Aha. So when you said you have the "same problem", you actually meant you have a different problem ;-)

500 means server error
404 means file not found

So, webtrees cannot find the media file for this media object.

Go to the media object. The details should include a file. This might be something like 'photos/grandpa.jpg'.

Go to the tree preferences page, and look for the media directory setting. By default, this will be 'data/media/'

So, webtrees will be looking in data/media/photos/grandpa.jpg' for the file, and it isn't there.

Either you didn't upload it to your server, or you put it somewhere else.
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.

Error function pictures. 1 month 3 weeks ago #8

  • harley-peter
  • harley-peter's Avatar
  • Offline
  • New
  • Posts: 5
Sorry for the misunderstanding.

Very strange:
I uploaded all the fotos in /data/media/ but the system find only the name, not the pictures. If I cancel the pathname "media" the foto is visible.

Another problem:
If I add a foto to a person and delete it afterwards the foto remains in the directory /data/media
Attachments:
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: 

Error function pictures. 1 month 3 weeks ago #9

  • fisharebest
  • fisharebest's Avatar
  • Online
  • Administrator
  • Posts: 10808
> If I cancel the pathname "media" the foto is visible.

Your media records contain "media/photo.jpg"

So, webtrees is looking for "data/media/media/photo.jpg"

> If I cancel the pathname "media" the foto is visible.

The "media/" should not be there.

Suggestion:

1) Export your data to a GEDCOM file.
2) Import the GEDCOM file back - but choose the option "remove media path" and select "media/"

> If I add a foto to a person and delete it afterwards the foto remains in the directory /data/media

This is correct. You have deleted the media object (in the database). You have not deleted the file.

If you want to find/delete old files, go to: Control panel, Manage media, Unused files.
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.

Error function pictures. 1 month 3 weeks ago #10

  • harley-peter
  • harley-peter's Avatar
  • Offline
  • New
  • Posts: 5
O. k., thanks that works. :-)
The administrator has disabled public write access.

Error function pictures. 2 days 10 hours ago #11

  • nnmtoday
  • nnmtoday's Avatar
  • Offline
  • New
  • Posts: 4

[16-Mar-2019 10:46:57 UTC] PHP Fatal error: Uncaught Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException: The file "/tmp/phpkRJhli" does not exist in /home/atvdecor/public_html/vendor/symfony/http-foundation/File/File.php:37
Stack trace:
#0 /home/atvdecor/public_html/vendor/symfony/http-foundation/File/UploadedFile.php(77): Symfony\Component\HttpFoundation\File\File->__construct('/tmp/phpkRJhli', true)
#1 /home/atvdecor/public_html/vendor/symfony/http-foundation/FileBag.php(87): Symfony\Component\HttpFoundation\File\UploadedFile->__construct('/tmp/phpkRJhli', '41403513_101566...', 'image/jpeg', 0)
#2 /home/atvdecor/public_html/vendor/symfony/http-foundation/FileBag.php(52): Symfony\Component\HttpFoundation\FileBag->convertFileInformation(Array)
#3 /home/atvdecor/public_html/vendor/symfony/http-foundation/FileBag.php(61): Symfony\Component\HttpFoundation\FileBag->set('file', Array)
#4 /home/atvdecor/public_html/vendor/symfony/http-foundation/FileBag.php(40): Symfony\Component\HttpFoundation\FileBag->add(Array)
#5 /home/atvdecor/public_ in /home/atvdecor/public_html/vendor/symfony/http-foundation/File/File.php on line 37
Last Edit: 2 days 10 hours ago by nnmtoday.
The administrator has disabled public write access.

Error function pictures. 2 days 5 hours ago #12

  • fisharebest
  • fisharebest's Avatar
  • Online
  • Administrator
  • Posts: 10808
This error can occur if you try to upload a file that is larger than the PHP limit.

How big is the file?

What are the PHP settings (Control panel / Server information) for: upload_max_filesize and post_max_size
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.

Error function pictures. 2 days 3 hours ago #13

  • nnmtoday
  • nnmtoday's Avatar
  • Offline
  • New
  • Posts: 4
Thank
My file .jpg and < 20kb
The administrator has disabled public write access.

Error function pictures. 2 days 2 hours ago #14

  • nnmtoday
  • nnmtoday's Avatar
  • Offline
  • New
  • Posts: 4




Thank
My file .jpg and < 20kb
Last Edit: 2 days 2 hours ago by nnmtoday.
The administrator has disabled public write access.
Powered by Kunena Forum