• Welcome to WebsiteBaker Community Forum. Please log in or sign up.
Welcome, Guest
News
Support WebsiteBaker
Your donations will help to:
PayPal
  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!
You can donate by clicking on the button below.

Update WB 2.10.0-RC1 auf WB 2.10.0(r66)

Started by Hollol, March 04, 2017, 08:42:56 PM  ( Read 15,693 times )

Hollol

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:

QuoteWarning: 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


    Hollol

    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.

      DarkViper

      #2
      if you're a registered user on our Redmine then you can get a fixed upgrade-script from here
      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';


        Der blaue Planet - er ist nicht unser Eigentum - wir haben ihn nur von unseren Nachkommen geliehen[br]
        [i][b][color=red]"We need education to cope with digitalization - and NOT the digitalization of education.!"[/color][/b][/i][br]
        [i]Tägliches Stoßgebet: [b]Oh Herr, wirf Hirn vom Himmel ![/i]

        Hollol

        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.

          Luisehahne

          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
            Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

            DarkViper

            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
              Der blaue Planet - er ist nicht unser Eigentum - wir haben ihn nur von unseren Nachkommen geliehen[br]
              [i][b][color=red]"We need education to cope with digitalization - and NOT the digitalization of education.!"[/color][/b][/i][br]
              [i]Tägliches Stoßgebet: [b]Oh Herr, wirf Hirn vom Himmel ![/i]

              \n\n