Before asking for help please read "How to request help" by clicking on that tab above here.
Question Automatic Updte to webtrees 1.6.1 Fails
- tronayne
- Topic Author
- Visitor
The automatic update fails at
Might there be a missing argument to unzip (that I can do something about)?
Thanks.
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
I've not had the opportunity to look at this yet.
The version in 1.5.3 (2014-05-02) worked, as everyone used it to upgrade to 1.6.0 (including me).
The version in 1.6.0 (2014-10-12) failed for many people (including me).
There were only a few minor changes to the upgrade script in that date range - github.com/fisharebest/webtrees/commits/...min_site_upgrade.php - but none that look like they could cause a problem.
The PCLZIP library hasn't changed (for years).
Of course, it might be a problem with the .ZIP file. Perhaps files are in a different order or something?
But if you can discover anything before I do, please add it to the bug report!
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- tronayne
- Topic Author
- Visitor
There is zero content in /var/www/htdocs/webtrees/data/webtrees-1.6.1, though (so, yeah, it failed immediately if it's supposed to extract into webtrees-1.6.1); it does extract into /var/www/htdocs/webtrees/data/webtrees. Is there some directory copy or rename that's supposed to go on? I dunno.
Seem like I could just get to /var/www/htcos and unzip right there (which should overwrite all the stuff in the existing webtrees directory) but I don't want to screw everything up by doing that.
So, anyway...
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
Is there some directory copy or rename that's supposed to go on? I dunno.
No - it just unzips it twice. Once into a temp folder, and then again into the live folder.
The first unzip is a check to make sure the .ZIP is not corrupt, etc.
If the second unzip fails (usually due to permissions), the temp-folder is left in place. This is because many people have a slow upload speed on their internet connection. They can often just move the files to the live folder using FTP - which is very much faster.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- rzeitz
- Visitor
I have the same problem; it is may first try with the automatic update; perhaps the path indicated below helps to patch the problem. Thanks, Reinhard
path_creation_fail
/mnt/web7/b1/06/52368406/htdocs/webtrees_2012/data/webtrees-1.6.1/js/
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- vdrumsRoland
- Visitor
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- vdrumsRoland
- Visitor
Please Log in or Create an account to join the conversation.
- tronayne
- Topic Author
- Visitor
Thanks.
I can't seem to find anything that marks the thread "solved." Can you just do it or point me at where to mark it?
Please Log in or Create an account to join the conversation.
- Jackie
- Offline
- Platinum Member
- Posts: 4787
tronayne wrote:
I can't seem to find anything that marks the thread "solved." Can you just do it or point me at where to mark it?
Hello tronayne,
We don't have this facility on the forum. Don't worry.
Please Log in or Create an account to join the conversation.
- joeysun
- Offline
- Junior Member
As a complete noob, I navigated to the site based on these instructions:
fisharebest wrote: I have finally found the cause of this problem... A change was made to the .ZIP library a very long time ago, which stops it from working with the latest webtrees code.
If you replace the file library/pclzip.lib.php with the latest version ( github.com/fisharebest/webtrees/blob/mas...brary/pclzip.lib.php and click "raw"), then the upgrade wizard should work.
Note that the bug exists in 1.6.0 *and* 1.6.1. Therefore unless you update this one file, the uprade wizard will not start working until the following release (1.6.2?)......
I clicked on the RAW button as per the below screen shot
After the resulting screen from the RAW button, I right click (Windows 8.1) and [Save As] onto my drive. The raw file was named "pclzip.lib.php.txt" on my system.
I renamed the file getting rid of the .txt extension and uploaded to the my server's /library/ folder, overwriting the older 'pclzip.lib.php".
Sorry to be so basic, but doing things like this causes me angst.
Nice job Greg!
Doug 周
webtrees v2.1.19 at Our Family Tree (Jiapu 家譜/家谱)
PHP Version v8.1.x, LiteSpeed V8.1, MariaDB 15.1 | protected/'hindered' by ModSecurity
Please Log in or Create an account to join the conversation.