Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 01:19:41 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155538 Posts in 21712 Topics by 7737 Members
Latest Member: deanmacullam
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Module Upgrade  (Read 461 times)
freeSbee

Offline Offline

Posts: 740


WWW
« on: November 23, 2010, 09:27:00 AM »

Hi all

Sometimes WB fails to upgrade modules even thought the user gets an «Upgrade successfull» message. This occurs after a WB installation has been migrated to another server or restored from a backup copy.
See: http://www.websitebaker2.org/forum/index.php/topic,19855.0.html

The WB installation file uses PclZip library to extract and copy the module files to the module directory. By default a file is not extracted if a newer file with the same name already exists.
See: http://www.phpconcept.net/pclzip/user-guide/55

As result some files of the module package do not install because they are older than the corresponding files on the server.

Possible fix:
Use PclZip flag PCLZIP_OPT_REPLACE_ NEWER

Quote
By using PCLZIP_OPT_REPLACE_ NEWER, you give to PclZip the ability to extract and replace the existing file in any situation. This can be usefull in situation like restoring an backup copy of some files/folders.
See: http://www.phpconcept.net/pclzip/user-guide/42

If you think this is a WB bug that should be fixed please open a new ticket since I am not allowed to do so:
Quote
REPORT_VIEW privileges are required to perform this operation.
Thanks!

Regards Christoph
Logged
freeSbee

Offline Offline

Posts: 740


WWW
« Reply #1 on: November 24, 2010, 08:00:23 PM »

http://www.websitebaker2.org/forum/index.php/topic,19855.msg134886.html#msg134886
Logged
Luisehahne
Board Member
Development Team
*****
Offline Offline

Posts: 3147



WWW
« Reply #2 on: November 25, 2010, 02:19:01 AM »

Quote
PCLZIP_OPT_REPLACE_ NEWER

Might in 2.8. x version, the problem do not solve, the first step Zip file will be unzip in the temp folder and will be copied after prechecking to the module folder.

In the new 2.9.0. dev which will be available during the next days in the SVN, we are going other ways. It does not become immediately unzipping, we check the files contained in the Zip, examine info.php for valid entries. If OK, everything is extinguished within the module folder, and unzip afterwards immediately to the module folder. No detour more about temp.

Dietmar
Logged

We are human beings - and nobody is perfect at all.
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!