Web based family history software

This Help forum is for issues relates to the latest release (1.7.4). 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."

Question [SOLVED] LATEST_WT_VERSION_TIMESTAMP

  • claben
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 9 months ago #1 by claben
LATEST_WT_VERSION_TIMESTAMP was created by claben
Hello,
I saw it in the log file that since May 10 is not the version check was carried out more:

- Site setting "LATEST_WT_VERSION_TIMESTAMP" set to "1462857819".

This is normal or is there a problem in my configuration?
Thank you

Claudio

webtrees.bendinelliclaudio.it
webtrees 2.1.18
Linux 5.4.0-162-generic #179-Ubuntu
PHP 8.2.16
mysqlnd 8.2.16

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

  • bertkoor
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
7 years 9 months ago #2 by bertkoor
Replied by bertkoor on topic LATEST_WT_VERSION_TIMESTAMP

stamboom.BertKoor.nl runs on webtrees v1.7.13

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

  • claben
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 9 months ago #3 by claben
Replied by claben on topic LATEST_WT_VERSION_TIMESTAMP
Hello BertKoor,
I have little experience with PHP, but I now saw that the problem started since the provvider updated something.
The version of PHP 5.6.17 and 1.7.4 webtrees were updated since March.
I am attaching the server information that I get hoping it will be useful:

PHP Version 5.6.17

System: Linux client-6.shared.hosting.tiscali.sys 2.6.24-32-server #1 SMP Thu Jul 12 15:21:48 UTC 2012 i686

Build Date: May 9 2016 15:11:23

Configure Command: './configure' 'ac_cv_decimal_fp_supported=no' '--prefix=/opt/SANDBOX/SANDBOX-5.6-OPENSSL-1.0.1/php-5.6.17' '--with-pear=/opt/SANDBOX/SANDBOX-5.6-OPENSSL-1.0.1/php-5.6.17/share/php' '--with-config-file-scan-dir=/opt/SANDBOX/SANDBOX-5.6-OPENSSL-1.0.1/conf.d' '--build=i686-linux-gnu' '--host=i686-linux-gnu' '--disable-debug' '--with-regex=php' '--disable-rpath' '--disable-static' '--enable-sysvmsg' '--with-pic' '--with-layout=GNU' '--enable-calendar' '--enable-sysvsem' '--enable-sysvshm' '--enable-bcmath' '--with-bz2' '--with-mcrypt' '--enable-ctype' '--with-db4' '--without-gdbm' '--with-iconv' '--enable-exif' '--enable-wddx' '--with-gmp=shared,/usr' '--enable-ftp' '--with-gettext' '--enable-mbstring' '--with-pcre-regex=/usr' '--enable-shmop' '--enable-sockets' '--with-libxml-dir=/usr' '--with-zlib' '--with-kerberos=/usr' '--with-openssl=/opt/openssl-1.0.1g' '--enable-soap' '--enable-zip' '--without-mm' '--with-curl=shared,/opt/curl-7.48.0/' '--with-zlib-dir=/usr' '--with-gd=shared' '--enable-gd-native-ttf' '--with-jpeg-dir=shared,/usr' '--with-xpm-dir=shared,/usr/X11R6' '--with-png-dir=shared,/usr' '--with-freetype-dir=shared,/usr' '--with-t1lib=shared,/usr' '--with-ldap=shared,/usr' '--with-ldap-sasl=/usr' '--with-mhash=shared,/usr' '--with-mysql=shared,/usr' '--with-mysqli=shared,/usr/bin/mysql_config' '--with-pspell=shared,/usr' '--with-unixODBC=shared,/usr' '--with-recode=shared,/usr' '--with-xsl=shared,/usr' '--with-snmp=shared,/usr' '--with-mssql=shared,/usr' '--with-tidy=shared,/usr' '--with-xmlrpc=shared' '--with-pgsql=shared,/usr' '--with-pdo-mysql' 'build_alias=i686-linux-gnu' 'host_alias=i686-linux-gnu'

Thank you.

Claudio

webtrees.bendinelliclaudio.it
webtrees 2.1.18
Linux 5.4.0-162-generic #179-Ubuntu
PHP 8.2.16
mysqlnd 8.2.16

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

More
7 years 9 months ago #4 by fisharebest
Replied by fisharebest on topic LATEST_WT_VERSION_TIMESTAMP
Old versions of PHP (<=5.5) did not check the SSL certificates when they fetch files using HTTPS:

Since PHP 5.6, the certificates are checked. So, if your server was just updated from PHP 5.5 to PHP 5.6, and the server's certificate store was not updated, then this error may be expected.

(I'm not saying this is definitely your problem, but it is an explanation that would fit the symptoms).

You could check this by using the tests I described in the other post. Since you presumably don't have an interactive login on your server, you'd need to put this in a script.

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

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

  • claben
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 9 months ago #5 by claben
Replied by claben on topic LATEST_WT_VERSION_TIMESTAMP
Hello Greg,
you could send me a script to check for the problem you have pointed out to me?
Thank you.

Claudio

webtrees.bendinelliclaudio.it
webtrees 2.1.18
Linux 5.4.0-162-generic #179-Ubuntu
PHP 8.2.16
mysqlnd 8.2.16

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

More
7 years 9 months ago #6 by fisharebest
Replied by fisharebest on topic LATEST_WT_VERSION_TIMESTAMP
Create a file with the first line "<?php"
Add the two commands from the above link.

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

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

  • claben
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 9 months ago #7 by claben
Replied by claben on topic LATEST_WT_VERSION_TIMESTAMP
Hello Greg,
I created a script as you suggested containing:

<? Php
$ F = fsockopen ('ssl: //dev.webtrees.net',443,$errno,$errstr,5);
var_dump ($ f);

and uploaded to the site; when I run it I get a blank page that read:

bool (false)

I do not know if this is the right procedure, but this answer does not know what it means.
Thank you.

Claudio

webtrees.bendinelliclaudio.it
webtrees 2.1.18
Linux 5.4.0-162-generic #179-Ubuntu
PHP 8.2.16
mysqlnd 8.2.16

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

  • bertkoor
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
7 years 9 months ago #8 by bertkoor
Replied by bertkoor on topic LATEST_WT_VERSION_TIMESTAMP
php.net/manual/en/function.fsockopen.php

In your case this does not return a file pointer but "false", indicating a connection can not be made.
I also don't see directly an exception is thrown (as reported in the other thread) so you have no clues (yet) for further investigation.
Maybe the PHP script needs to be extended with a try-catch construct to make the errors visible?
Code:
<?php try { $f = fsockopen('ssl://dev.webtrees.net', 443, $errno, $errstr, 5); var_dump($f); } catch (Exception $e) { echo 'Caught exception: ', $e->getMessage(), "\n"; } ?>

stamboom.BertKoor.nl runs on webtrees v1.7.13

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

  • claben
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 9 months ago #9 by claben
Replied by claben on topic LATEST_WT_VERSION_TIMESTAMP
BertKoor Thanks for the suggestion; I tried to modify the script as you suggested but I get the same result:

bool(false)

I hope there may be other solutions.

Thank you

Claudio

webtrees.bendinelliclaudio.it
webtrees 2.1.18
Linux 5.4.0-162-generic #179-Ubuntu
PHP 8.2.16
mysqlnd 8.2.16

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

More
7 years 9 months ago #10 by fisharebest
Replied by fisharebest on topic LATEST_WT_VERSION_TIMESTAMP
> bool (false)

This indicates that your server cannot connect to dev.webtrees.net

Does it work for other https sites? e.g www.google.com

You may be able to tell your server to display error messages using
Code:
<?php ini_set('display_errors', 1); error_reporting(E_ALL); $f = fsockopen('ssl://dev.webtrees.net', 443, $errno, $errstr, 5); var_dump($f);

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

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

  • claben
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 9 months ago #11 by claben
Replied by claben on topic LATEST_WT_VERSION_TIMESTAMP
Hello Greg,
by changing the script as you suggested I get this message:

Warning: fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in /var/www/virtual/bendinelliclaudio.it/webtrees/htdocs/Testphp.php on line 4

Warning: fsockopen(): Failed to enable crypto in /var/www/virtual/bendinelliclaudio.it/webtrees/htdocs/Testphp.php on line 4

Warning: fsockopen(): unable to connect to ssl://dev.webtrees.net:443 (Unknown error) in /var/www/virtual/bendinelliclaudio.it/webtrees/htdocs/Testphp.php on line 4
bool(false)

You mean anything to you?
thank you

Claudio

webtrees.bendinelliclaudio.it
webtrees 2.1.18
Linux 5.4.0-162-generic #179-Ubuntu
PHP 8.2.16
mysqlnd 8.2.16

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

More
7 years 9 months ago #12 by fisharebest
Replied by fisharebest on topic LATEST_WT_VERSION_TIMESTAMP
> You mean anything to you?

Yes. It means that your server does not recognise the security certificate that is used by webtrees.net

You did not do the second test (does it work with other sites). I will assume the answer is YES.

Possible explanations are

1) your server only recognises old/insecure protocols (SSL3) and not new/secure protocols (TLS).
2) your server does not have an up-to-date list of certificate authorities.

Whatever the problem, this is something that only your server's administrator can fix.

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

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

  • claben
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 9 months ago #13 by claben
Replied by claben on topic LATEST_WT_VERSION_TIMESTAMP
I tried now with google and I get a similar result:

Warning: fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in /var/www/virtual/bendinelliclaudio.it/webtrees/htdocs/Testphp.php on line 4

Warning: fsockopen(): Failed to enable crypto in /var/www/virtual/bendinelliclaudio.it/webtrees/htdocs/Testphp.php on line 4

Warning: fsockopen(): unable to connect to ssl://www.google.com:443 (Unknown error) in /var/www/virtual/bendinelliclaudio.it/webtrees/htdocs/Testphp.php on line 4
bool(false)

I will contact immediately the server administrator to let him present the problem, hoping that solves it.
Thanks for your cooperation and availability.

Claudio

webtrees.bendinelliclaudio.it
webtrees 2.1.18
Linux 5.4.0-162-generic #179-Ubuntu
PHP 8.2.16
mysqlnd 8.2.16

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

  • claben
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 8 months ago #14 by claben
Replied by claben on topic LATEST_WT_VERSION_TIMESTAMP
Problem solved: server administrators have updated security certificates.
As always you are prompt and precise in making the diagnosis.

Thanks Greg!
Greetings

Claudio

webtrees.bendinelliclaudio.it
webtrees 2.1.18
Linux 5.4.0-162-generic #179-Ubuntu
PHP 8.2.16
mysqlnd 8.2.16

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

  • claben
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 8 months ago #15 by claben
Replied by claben on topic [SOLVED] LATEST_WT_VERSION_TIMESTAMP
Problem solved.

Claudio

webtrees.bendinelliclaudio.it
webtrees 2.1.18
Linux 5.4.0-162-generic #179-Ubuntu
PHP 8.2.16
mysqlnd 8.2.16

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

Powered by Kunena Forum
}