Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 07:18:14 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.
155550 Posts in 21714 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: BUG: WB v2.8.2 upgrade script  (Read 1016 times)
freeSbee

Offline Offline

Posts: 740


WWW
« on: July 25, 2011, 12:32:01 PM »

There is an bug in the WB v2.8.2 upgrade script that affects upgrades from WB version 2.7 to 2.8.2.
It prevents upgrading and causes the warning below:
Quote
Warning:
It is not possible to upgrade from WebsiteBaker Versions before 2.7.0.
For upgrading to version 2.8.2 you must upgrade first to v.2.7.0 at least!!!
The version compare (upgrade_script.php, line 184) does not work as expected since the former WB settings table (setting_id=1, name= wb_version) just holds a 2 digit, eg. 2.7. and not a 3 digit version number string.

A quick fix would be (line 184):
Code:
if( version_compare( WB_VERSION, '2.7.0', '<' )) {
change to
Code:
if( version_compare( WB_VERSION, '2.7', '<' )) {

Regards Christoph
Logged
Luisehahne
Board Member
Development Team
*****
Offline Offline

Posts: 3147



WWW
« Reply #1 on: July 25, 2011, 01:52:44 PM »

Hallo Christoph,

Quote
(setting_id=1, name= wb_version) just holds a 2 digit, eg. 2.7. and not a 3 digit version number string.
Is right and will be fix.

Tks for your quick fix

Dietmar
Logged

We are human beings - and nobody is perfect at all.
freeSbee

Offline Offline

Posts: 740


WWW
« Reply #2 on: July 25, 2011, 01:59:10 PM »

Hallo Dietmar

I even just upgraded a WB v2.7 installation where the value field of the settings table (setting_id=1, name= wb_version) was empty! Kind of strange...

Regards Christoph
Logged
Luisehahne
Board Member
Development Team
*****
Offline Offline

Posts: 3147



WWW
« Reply #3 on: July 25, 2011, 02:05:20 PM »

Do i understood it, that the value of wb_version was empty in 2.7 or after upgrade?

Sorry my english is not the best.

Dietmar

Logged

We are human beings - and nobody is perfect at all.
freeSbee

Offline Offline

Posts: 740


WWW
« Reply #4 on: July 25, 2011, 02:26:17 PM »

Do i understood it, that the value of wb_version was empty in 2.7 or after upgrade?
Das Feld 'value' war vor dem Upgrade (v2.7) leer.

Ich habe soeben nochmals kurz einen Blick in die DB geworfen, und siehe da... es ist noch immer leer. Eigenartigerweise steht bei der Zeile mit der setting_id=1 im Feld 'name' nicht wb_version sondern ab_version!? ab_ ist das DB-Präfix dieser WB Installation.
Keine Ahnung wie diese Änderung geschah. Möglicherweise durch einen von mir früher einmal ausgeführten Suchen-Ersetzen mySQL-Befehl? Das leere Feld ist daher höchst wahrscheinlich kein Bug sondern eine von mir damals vorgenommene Manipulation.

Gruss Christoph
Logged
Luisehahne
Board Member
Development Team
*****
Offline Offline

Posts: 3147



WWW
« Reply #5 on: July 25, 2011, 02:45:35 PM »

Nicht böse sein, aber wie sagt ein Zitat,

"Das Problem sitzt oft vor dem Computer"  grin

Hauptsache Ursache gefunden. Danke

Dietmar
Logged

We are human beings - and nobody is perfect at all.
freeSbee

Offline Offline

Posts: 740


WWW
« Reply #6 on: July 25, 2011, 02:58:34 PM »

Tja, leider leider...
Es wäre nur allzuschön, wenn man jeweils noch wüsste, was man vor 2 Jahren 'gebastelt' hat... und irgendwann holt einem die Vergangenheit stets wieder ein!

Doch das mit der 2.7 statt 2.7.0 bleibt ein Bug für ALLE User, welche versuchen direkt von 2.7 auf 2.8.2 upzugraden.

Gruss und schönen Tag noch
Christoph
Logged
Luisehahne
Board Member
Development Team
*****
Offline Offline

Posts: 3147



WWW
« Reply #7 on: July 25, 2011, 03:25:36 PM »

Quote
Doch das mit der 2.7 statt 2.7.0 bleibt ein Bug für ALLE User, welche versuchen direkt von 2.7 auf 2.8.2 upzugraden.

Ja leider, wird dann wohl bald den ersten Patch geben. Am besten wir sammlen erstmal ein bisschen und ala Microsoft gibt es dann einen Patchday. Wie sagt man, "Ein Programm ohne Fehler ist veraltet"  grin

Dietmar
Logged

We are human beings - and nobody is perfect at all.
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« Reply #8 on: July 25, 2011, 03:59:02 PM »

Hallo,

schaut euch mal die Upgrade-scripts an, mit denen damals auf die 2.7 upgegradet wurde. Meines Wissens nach wurde das entsprechende Feld in der Datenbank bei früheren Upgrades etwas stiefmütterlich behandelt. Es ist auch für ein Funktionieren von WB an sich nicht erforderlich. Vielleicht sollte man ein kleines Patch schreiben, für alle, die noch 2.7 im Einsatz haben, der vor dem Upgrade das Datenbankfeld mit der version.php vergleicht und dann den Wert auf 2.7.0 oder was auch immer geht einträgt. Der fehlende DB Eintrag taucht soweit ich weiß nur bei Installationen auf, die von 2.x auf 2.7 upgegradet wurden.

Matthias
Logged
BlackBird
AddOn Development
*
Offline Offline

Posts: 2069



WWW
« Reply #9 on: July 25, 2011, 05:09:59 PM »

May I remind you that you're posting in the english forum... rolleyes
Logged

Alle großen Veränderungen beginnen im Kleinen
Luisehahne
Board Member
Development Team
*****
Offline Offline

Posts: 3147



WWW
« Reply #10 on: July 25, 2011, 06:14:51 PM »

You are right, Sorry

Dietmar
Logged

We are human beings - and nobody is perfect at all.
Argos
Moderator
**
Offline Offline

Posts: 2161


WWW
« Reply #11 on: July 28, 2011, 02:39:57 PM »

I don't know if it's supposed to do so, but when upgrading from an RC6 (not RC5 as the screen says!) to final the upgrade script stops with this page.

I also cannot find the security switch thingy in the backend...
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
Argos
Moderator
**
Offline Offline

Posts: 2161


WWW
« Reply #12 on: July 28, 2011, 11:21:44 PM »

With the patch I received it all worked fine!
« Last Edit: July 28, 2011, 11:39:36 PM by Argos » Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
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!