Web based family history software

Question Error function pictures.

More
5 years 6 months ago #1 by JAS
Error function pictures. was created by JAS
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
Attachments:

Please Log in or Create an account to join the conversation.

More
5 years 6 months ago #2 by fisharebest
Replied by fisharebest on topic Error function pictures.
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 - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago #3 by harley-peter
Replied by harley-peter on topic Error function pictures.
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.

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago #4 by fisharebest
Replied by fisharebest on topic Error function pictures.
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 - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago #5 by harley-peter
Replied by harley-peter on topic Error function pictures.
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.

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago - 5 years 2 months ago #6 by harley-peter
Replied by harley-peter on topic Error function pictures.
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: 5 years 2 months ago by harley-peter.

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago #7 by fisharebest
Replied by fisharebest on topic Error function pictures.
> 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 - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago #8 by harley-peter
Replied by harley-peter on topic Error function pictures.
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:

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago #9 by fisharebest
Replied by fisharebest on topic Error function pictures.
> 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 - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago #10 by harley-peter
Replied by harley-peter on topic Error function pictures.
O. k., thanks that works. :-)

Please Log in or Create an account to join the conversation.

More
5 years 1 week ago - 5 years 1 week ago #11 by nnmtoday
Replied by nnmtoday on topic Error function pictures.

[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
Attachments:
Last edit: 5 years 1 week ago by nnmtoday.

Please Log in or Create an account to join the conversation.

More
5 years 1 week ago #12 by fisharebest
Replied by fisharebest on topic Error function pictures.
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 - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

More
5 years 1 week ago #13 by nnmtoday
Replied by nnmtoday on topic Error function pictures.
Thank
My file .jpg and < 20kb

Please Log in or Create an account to join the conversation.

More
5 years 1 week ago - 5 years 1 week ago #14 by nnmtoday
Replied by nnmtoday on topic Error function pictures.




Thank
My file .jpg and < 20kb
Attachments:
Last edit: 5 years 1 week ago by nnmtoday.

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum
}