Announcement

#1 2021-11-13 17:09:31

dev3
Member
2021-02-01
14

FTP or online update to 12.1.0?

Two questions for the group:

1. Is the FTP update 'safer' or less prone to glitches and problems than using the update via the Admin facility?

2. To do an FTP update do we just drag each directory from local to the proper Piwigo-server 'parent' directory and new files will over-write the old files? Or should we do it file by file by file? Is there any documentation on doing the FTP update beyond this: https://piwigo.org/release-12.1.0

Thanks.

Offline

 

#2 2021-11-13 19:12:41

erAck
Only trying to help
2015-09-06
2023

Re: FTP or online update to 12.1.0?

Surprisingly clicking on Docs in the menu above and then looking for Upgrade leads to an entire section about gasp exactly that and forwarding to the new guides
Automatic Update
Manual Update

Anyway..

#1 Generally No. Sometimes Maybe. I personally never encountered any problem with the admin upgrade in years (or it was so minor I meanwhile forgot about). Some people do, due to various reasons of which a felt half is because of malconfigured or handicapped hosting environments and permissions, or exotic plugins ceasing to work. Overwriting files (either per ftp or unpacking) from a release ball often fixes the permission problems.

#2 Whether you can drag&drop and how really depends on your ftp client. Important is that all files of the release package end up on the host target in the corresponding directory structure and overwrite existing files.


Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2021-11-13 20:35:45

dev3
Member
2021-02-01
14

Re: FTP or online update to 12.1.0?

"Surprisingly clicking on Docs in the menu above and then looking for Upgrade leads to an entire section about gasp [exactly that and forwarding to the new guides

Automatic Update
Manual Update"
----------------------------------------------------------


I saw the manual update screen you directed me to.

https://piwigo.org/guides/update/manual

It says:

Step 5 - Cleaning
Remove all files of your current Piwigo installation, with the following exceptions, do NOT delete these directories:

Galleries
Upload
Plugins
Themes
Template-extension
Local
_data


Thus, we're supposed to delete all other files and directories... like "Include"? That would totally destroy your system. Let's just look at the Include directory which the instructions (above) say to delete. Here are the two files in the Include directory of the UPDATE:

Contents of the update file "Include" directory in update:

ZZ@xxx 12.x_to_12.1.0 % ls -l
total 32
Nov 11 09:59 admin
Nov 13 07:45 include
Nov 11 09:59 language
Nov 13 07:45 plugins
Nov 13 07:45 themes
Nov 11 09:59 upgrade.php

ZZ@xxx 12.x_to_12.1.0 % ls -l include
total 16
Nov 11 09:59 constants.php
Nov 11 09:59 ws_functions


Contents of the actual production Include directory... there are a zillion of them... which would all be deleted and replaced by just the two files above.... if the instructions on the manual update screen were followed:

  6313 Nov  8 21:58 block.class.php
  3023 Nov  8 21:58 cache.class.php
  9540 Nov  8 21:58 calendar_base.class.php
13140 Nov  8 21:58 calendar_monthly.class.php
  3424 Nov  8 21:58 calendar_weekly.class.php
  9842 Nov  8 21:58 category_cats.inc.php
  3992 Nov  8 21:58 category_default.inc.php
  8632 Nov  8 21:58 common.inc.php
37734 Nov  8 21:58 config_default.inc.php
  4513 Nov  8 21:58 constants.php
81493 Nov  8 21:58 cssmin.class.php
  4096 Nov  9 00:12 dblayer
12565 Nov  8 21:58 derivative.inc.php
  9898 Nov  8 21:58 derivative_params.inc.php
  6518 Nov  8 21:58 derivative_std_params.inc.php
24206 Nov  8 21:58 emogrifier.class.php
55819 Nov  8 21:58 feedcreator.class.php
  4299 Nov  8 21:58 filter.inc.php
  8080 Nov  8 21:58 functions_calendar.inc.php
20875 Nov  8 21:58 functions_category.inc.php
13787 Nov  8 21:58 functions_comment.inc.php
  3049 Nov  8 21:58 functions_cookie.inc.php
  1009 Nov  8 21:58 functions_filter.inc.php
17977 Nov  8 21:58 functions_html.inc.php
56707 Nov  8 21:58 functions.inc.php
24371 Nov  8 21:58 functions_mail.inc.php
  5832 Nov  8 21:58 functions_metadata.inc.php
16173 Nov  8 21:58 functions_notification.inc.php
  2599 Nov  8 21:58 functions_picture.inc.php
10175 Nov  8 21:58 functions_plugins.inc.php
  5033 Nov  8 21:58 functions_rate.inc.php
43536 Nov  8 21:58 functions_search.inc.php
  5134 Nov  8 21:58 functions_session.inc.php
  7443 Nov  8 21:58 functions_tag.inc.php
20242 Nov  8 21:58 functions_url.inc.php
41485 Nov  8 21:58 functions_user.inc.php
   610 Nov  8 21:58 index.php
  4096 Jul 13  2015 inflectors
18746 Nov  8 21:58 jshrink.class.php
11506 Nov  8 21:58 Logger.class.php
46253 Nov  8 21:58 mdetect.php
11128 Nov  8 21:58 menubar.inc.php
  2945 Nov  8 21:58 no_photo_yet.inc.php
  2497 Nov  8 21:58 page_header.php
  2722 Nov  8 21:58 page_tail.php
  7317 Nov  8 21:58 passwordhash.class.php
  4096 Jul 13  2015 php_compat
  4096 Nov  8 21:58 phpmailer
  7700 Nov  8 21:58 picture_comment.inc.php
  2287 Nov  8 21:58 picture_metadata.inc.php
  2129 Nov  8 21:58 picture_rate.inc.php
  4096 Jul 18  2016 random_compat
18665 Nov  8 21:58 section_init.inc.php
  4096 Nov  8 21:58 smarty
  5849 Nov  8 21:58 srand.php
57108 Nov  8 21:58 template.class.php
  2176 Nov  8 21:58 user.inc.php
19127 Nov  8 21:58 ws_core.inc.php
  4096 Jul 13  2015 ws_functions
  6076 Nov  8 21:58 ws_functions.inc.php
  2060 Nov  3 19:17 ws_init.inc.php
  4096 Jul 13  2015 ws_protocols
 
  Maybe these instructions will work for a re-install, but surely not an upgrade.
 
  If you have another page of docs for the FTP UPDATE you wish me to inspect, I'll be happy to take a look.
 
  Thank you.

Offline

 

#4 2021-11-14 03:41:00

herdivineshadow
Member
2021-11-05
3

Re: FTP or online update to 12.1.0?

For the recent upgrade to version 12.0.0, the admin upgrade didn't work out for me but following the manual instructions on that page totally did. I imagine it would be similar for 12.1.0.

And I did just delete everything apart from those directories listed and then put everything from the zip file all in one go into my hosting once that was done.

I don't know why something would be listed as instructions for upgrade and not be instructions for upgrade, but maybe you've had different experiences elsewhere with this kind of thing.

Last edited by herdivineshadow (2021-11-14 03:41:25)

Offline

 

#5 2021-11-14 04:02:26

dev3
Member
2021-02-01
14

Re: FTP or online update to 12.1.0?

herdivineshadow wrote:

I don't know why something would be listed as instructions for upgrade and not be instructions for upgrade, but maybe you've had different experiences elsewhere with this kind of thing.

I downloaded the update 12.1 zip file, unzipped it, and looked what it contained. It only had a few folders and each folder had only a few files. Do it yourself and see.

There is no way that you can delete all folders except the few they say you should keep and then upload the small upload directories... you won't have a full Piwigo system.

I spelled it out in chapter, verse, and full orchestration in my previous post.

My guess is that what is on the website is for a manual INSTALL of a point-zero release... the whole system... and that all you need to do for an update is to simply ignore the "delete all but these directories" and simply upload the directories in the small 12.1 zip file which will over-write ten or so files. That would be how similar Linux-based systems work.

Since the 12.0 upgrade was problematic for me... but is now working fine, I'll wait for 12.2 and do the 'auto' update from the admin area.

Offline

 

#6 2021-11-14 04:07:46

erAck
Only trying to help
2015-09-06
2023

Re: FTP or online update to 12.1.0?

dev3 wrote:

Thus, we're supposed to delete all other files and directories... like "Include"? That would totally destroy your system. Let's just look at the Include directory which the instructions (above) say to delete. Here are the two files in the Include directory of the UPDATE:

You missed the very first sentence of step 1 with the underlying link:

* Download the latest Piwigo release archive

The release archive is not the update archive.

If you don't use the release archive but the update archive for minor updates then just unzip that with directory structure over the existing installation.


Running Piwigo at https://erack.net/gallery/

Offline

 

#7 2021-11-14 04:12:03

dev3
Member
2021-02-01
14

Re: FTP or online update to 12.1.0?

erAck wrote:

You missed the very first sentence of step 1 with the underlying link:

* Download the latest Piwigo release archive

Yes, I obviously missed that line. It all makes sense now. Thanks for pointing this out to me.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact