WebsiteBaker Community Forum

WebsiteBaker Support (2.10.x) => General Help & Support => Hilfe & Support (deutsch) => Topic started by: Hollol on March 04, 2017, 08:42:56 PM

Title: Update WB 2.10.0-RC1 auf WB 2.10.0(r66)
Post by: Hollol on March 04, 2017, 08:42:56 PM
Hallo,

ich habe gerade lokal eine Page von WB 2.10.0-RC1 auf WB 2.10.0(r66) upgedatet.

In der upgrade-script.php erhalte ich folgenden Hinweis:

Quote
Warning: file_get_contents(D:\xampp\htdocs\vhosts\mypage/admin/interface/version.php): failed to open stream: No such file or directory in D:\xampp\htdocs\vhosts\mypage\upgrade-script.php on line 119

Mein Adminordner ist umbenannt und heißt nicht "admin".

Da ich (noch) nicht weiß, welche Auswirkungen das sonst noch haben könnte, poste ich das lieber mal.

Grüße
Hollol

Title: Re: Update WB 2.10.0-RC1 auf WB 2.10.0(r66)
Post by: Hollol on March 05, 2017, 01:48:17 AM
Gleiches Spiel, wenn ich die gleiche Page von WB 2.8.2 +SP7 auf SP 2.10.0 update.

Das Upgrade-Script verlangt explizit nach dem Pfad im Ordner "admin". Egal was in der config.php steht.
Title: Re: Update WB 2.10.0-RC1 auf WB 2.10.0
Post by: DarkViper on March 05, 2017, 03:00:26 AM
if you're a registered user on our Redmine (http://project.WebsiteBaker.org/) then you can get a fixed upgrade-script from here (http://project.WebsiteBaker.org/projects/wb-2-10/repository/raw/branches/wb/upgrade-script.php)
otherwise here is the diff to patch it:
Code: (changeset_r70.diff) [Select]
Index: upgrade-script.php
===================================================================
--- upgrade-script.php (revision 69)
+++ upgrade-script.php (revision 70)
@@ -117,4 +117,4 @@
 function getNewVersionString()
 {
-    $sVersionFile = file_get_contents(__DIR__.'/admin/interface/version.php');
+    $sVersionFile = file_get_contents(__DIR__.'/'.ADMIN_DIRECTORY.'/interface/version.php');
     $sPattern = '=define\s*\(\'VERSION\'\,\s*\'([^\']*)\'=is';

Title: Re: Update WB 2.10.0-RC1 auf WB 2.10.0(r66)
Post by: Hollol on March 05, 2017, 09:48:55 AM
Thank you very much.

In the future, I will try to write in english here.
I'm not registered in Redmine, yet. It would be on the time to catch up this.
Title: Re: Update WB 2.10.0-RC1 auf WB 2.10.0(r66)
Post by: Luisehahne on March 05, 2017, 09:51:00 AM
Wir haben festgestellt, dass es immer noch Probleme gibt und arbeiten an der korrekten Lösung!

We have found that there are still problems and work on the correct solution!

Sorry for the trouble

Dietmar
Title: Re: Update WB 2.10.0-RC1 auf WB 2.10.0
Post by: DarkViper on March 05, 2017, 05:59:35 PM
I was a bit too tired last night. Sorry.  :roll:
In the meantime, a version of the upgrade script is available, which can easily work with a renamed admin directory.

Note: The modified upgrade script is only required if the admin/ directory has been renamed!!!

get the script from repository (http://project.WebsiteBaker.org/projects/wb-2-10/repository/raw/branches/wb/upgrade-script.php)