Web based family history software

This Help forum is for issues relates to the latest release (1.6.x). 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 Auto upgrade failed

More
9 years 5 months ago #26 by fisharebest
Replied by fisharebest on topic Auto upgrade failed
Delete the file /data/offline.txt - which contains the message "This site is being upgraded..."

This is a lock file to prevent visitors accessing the site while the upgrade is in progress.

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

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

  • rudyas
  • Visitor
  • Visitor
9 years 5 months ago #27 by rudyas
Replied by rudyas on topic Auto upgrade failed
File deleted and new problem arrived:

Fatal error: Call to undefined method WT_Tree::getPreference() in /homepages/23/d282796485/htdocs/rudyas/webtrees/modules_v3/gedcom_stats/module.php on line 185

and when I login in:

Fatal error: Call to undefined method WT_Controller_Page::restrictAccess() in /homepages/23/d282796485/htdocs/rudyas/webtrees/admin_site_upgrade.php on line 56
Fatal error: Class 'Rhumsaa\Uuid\Uuid' not found in /homepages/23/d282796485/htdocs/rudyas/webtrees/modules_v3/gedcom_favorites/module.php on line 162

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

More
9 years 5 months ago #28 by fisharebest
Replied by fisharebest on topic Auto upgrade failed
Again, these errors suggest you haven't uploaded all the files, and have a mixture of new and old 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
9 years 5 months ago #29 by comet48
Replied by comet48 on topic Auto upgrade failed - zlib
Get message ;
Unzip webtrees-1.6.0.zip to a temporary folder…Abort pclzip.lib.php : Missing zlib extensions

Perhaps the root of the problem lies in the fact that PHP compiled with "large file support" (as PHP on new Ubuntu installs is compiled) names the function `gzopen` as `gzopen64` instead.

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

More
9 years 5 months ago #30 by fisharebest
Replied by fisharebest on topic Auto upgrade failed - zlib

comet48 wrote: Get message ;
Unzip webtrees-1.6.0.zip to a temporary folder…Abort pclzip.lib.php : Missing zlib extensions

Perhaps the root of the problem lies in the fact that PHP compiled with "large file support" (as PHP on new Ubuntu installs is compiled) names the function `gzopen` as `gzopen64` instead.


The PCLZIP library was last updated in 2009.

Perhaps we need to find/use a different library for ZIP files...

Short term, this article suggets some code you can add (e.g. to the end of includes/session.php)

www.thomasmonaco.com/pclzip-lib-php-missing-zlib-extensions/

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

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

More
9 years 5 months ago #31 by ddrury
Replied by ddrury on topic Auto upgrade failed - zlib
What about Zend_Filter_Compress & Zend_Filter_Decompress

--
Dave

Local: Win 11 Pro, WSL2/Ubuntu20.04.4, Apache 2.4.51, PHP 7.4.26/8.1.7, MySQL 8.0.27
Production: Litespeed 8.0.1, PHP 8.1.9, MySQL 8.0.26

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

More
9 years 5 months ago #32 by comet48
Replied by comet48 on topic Auto upgrade failed
Which file should I add it to so that it runs during the upgrade?

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

More
9 years 5 months ago #33 by ddrury
Replied by ddrury on topic Auto upgrade failed
Whoa, slow down :)

This was a suggestion to Greg for a PCLZIP library replacement. He will make the decision and whatever that is will require changes to webtrees so don't expect anything in the next 5 minutes

--
Dave

Local: Win 11 Pro, WSL2/Ubuntu20.04.4, Apache 2.4.51, PHP 7.4.26/8.1.7, MySQL 8.0.27
Production: Litespeed 8.0.1, PHP 8.1.9, MySQL 8.0.26

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

More
9 years 5 months ago #34 by comet48
Replied by comet48 on topic Auto upgrade failed
OK :)

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

More
9 years 5 months ago #35 by otmar.mayr
Replied by otmar.mayr on topic Auto upgrade failed
I have the current directory webtrees1 renamed in webtrees_org and created then a new directory called webtrees1. Then I uploaded all WT files (v. 1.6.0) with FTP to this directory. In the subdirectory \data, I also copied the previous file config.ini.php. In my opinion this should work, but the version 1.6.0 does not work.

With the Internet Browser I get this error message:

The website can not display this page
 
   HTTP 500
    
Most likely causes:
• The site is currently serviced.
• The site contains a programming error.

www.verwandten.info / PHP-Version 8.2 / webtrees 2.1.18

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

More
9 years 5 months ago #36 by fisharebest
Replied by fisharebest on topic Auto upgrade failed
When you get a 500 error, there will be an error message in your webserver (e.g. "apache") error log.

Find this error log, and tell us the error message.

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

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

More
9 years 5 months ago #37 by otmar.mayr
Replied by otmar.mayr on topic Auto upgrade failed
I've access to a normal log file. I cannot see an error log file. I searched in the normal log file for "500" and found following entries. I hope this is what you want.

my IP - - [13/Oct/2014:12:41:25 +0200] "GET /webtrees1/index.php HTTP/1.1" 500 20 "http://.../webtrees1/admin_site_upgrade.php" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"

my IP - - [19/Oct/2014:16:26:27 +0200] "GET /webtrees1/ HTTP/1.1" 500 20 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"

my IP - - [19/Oct/2014:16:26:33 +0200] "GET /webtrees1/ HTTP/1.1" 500 20 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36"

www.verwandten.info / PHP-Version 8.2 / webtrees 2.1.18

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

More
9 years 5 months ago #38 by fisharebest
Replied by fisharebest on topic Auto upgrade failed
apache generates two log files.

This is the "access log".

The 500 errors are in the "error log".

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

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

  • leffe
  • Visitor
  • Visitor
9 years 5 months ago #39 by leffe
Replied by leffe on topic Auto upgrade failed
Hi,
A 500 error, "/public_html/webtrees/index.php" is writeable by group" is the result after automatic upgrade here also.
I tried the manual method afterwards, but I get the same result.

By manually chmod index.php the error moves to next file.

Any tips?

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

More
9 years 5 months ago - 9 years 5 months ago #40 by eyolf
Replied by eyolf on topic Auto upgrade failed
A friend of mine ran into problems during the auto-upgrade too. After enabling error messages, I get the following:
Code:
( ! ) Notice: Constant PASSWORD_DEFAULT already defined in /...path.../webtrees/library/ircmaxell/password-compat/lib/password.php on line 13 Call Stack # Time Memory Function Location 1 0.0011 698376 {main}( ) ../index.php:0 2 0.0038 1058936 require( '/...path.../webtrees/includes/session.php' ) ../index.php:28 3 0.0055 1065296 require( '/...path.../webtrees/library/autoload.php' ) ../session.php:207 4 0.0059 1094656 ComposerAutoloaderInitcecc323105e12e5c649bf24af473df2f::getLoader( ) ../autoload.php:7 5 0.1025 2483912 composerRequirececc323105e12e5c649bf24af473df2f( ) ../autoload_real.php:49 6 0.1032 2582248 require( '/...path.../webtrees/library/ircmaxell/password-compat/lib/password.php' ) ../autoload_real.php:58 7 0.1032 2582560 define ( ) ../password.php:13 ( ! ) Fatal error: Cannot redeclare password_hash() (previously declared in /...path.../webtrees/includes/session.php:149) in /...path.../webtrees/library/ircmaxell/password-compat/lib/password.php on line 24 Call Stack # Time Memory Function Location 1 0.0011 698376 {main}( ) ../index.php:0 2 0.0038 1058936 require( '/...path.../webtrees/includes/session.php' ) ../index.php:28 3 0.0055 1065296 require( '/...path.../webtrees/library/autoload.php' ) ../session.php:207 4 0.0059 1094656 ComposerAutoloaderInitcecc323105e12e5c649bf24af473df2f::getLoader( ) ../autoload.php:7 5 0.1025 2483912 composerRequirececc323105e12e5c649bf24af473df2f( ) ../autoload_real.php:49 6 0.1032 2582248 require( '/...path.../webtrees/library/ircmaxell/password-compat/lib/password.php' ) ../autoload_real.php:58

The error persists even after a manual update of the files themselves, so I guess it's caused by something in the database, and a local copy of the site, made from the gedcom file that was (luckily) generated during the upgrade, works fine.

webtrees 2.1.16
[url] oestrem.com/webtrees [/url]
Last edit: 9 years 5 months ago by eyolf.

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

More
9 years 5 months ago #41 by fisharebest
Replied by fisharebest on topic Auto upgrade failed
This error is likely to be on a version of PHP between 5.3.2 and 5.3.6

Certain cryptographic functions were added in 5.3.7. For the earlier versions of PHP, we must provide a workaround.

(Actually, we provide two different workaround depending on the exact version).

But I think that some distributions have back-ported some of these cryptographic functions into old versions of PHP, which breaks our feature-detection checks, and hence we try to load both workarounds together. There's probably an easy fix for this...

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

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

More
9 years 5 months ago #42 by eyolf
Replied by eyolf on topic Auto upgrade failed
Right, PHP Version 5.3.2-1ubuntu4.26

webtrees 2.1.16
[url] oestrem.com/webtrees [/url]

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

More
9 years 5 months ago #43 by eyolf
Replied by eyolf on topic Auto upgrade failed
1. Shall I file a bug report?
2. Let me know if you need more info about server config etc.

webtrees 2.1.16
[url] oestrem.com/webtrees [/url]

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

More
9 years 5 months ago #44 by fisharebest
Replied by fisharebest on topic Auto upgrade failed
@eyolf. In session.php, can you delete the block of code around lines 150-200 that starts with

if (!function_exists('password_hash'))

This code was written for the very few (zero?) users who have unpatched versions of PHP 5.3.2-5.3.6. Anything based on debain, ubuntu, redhat, centos, etc. should be fine.

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

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

More
9 years 5 months ago #45 by eyolf
Replied by eyolf on topic Auto upgrade failed
Yup. Working now. Thx.

webtrees 2.1.16
[url] oestrem.com/webtrees [/url]

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

Powered by Kunena Forum
}