WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.

Donate with PayPal buttonSpenden mit dem PayPal-Button

  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.12.x) »
  • General Help & Support »
  • Call to undefined method bin\WbAdaptor::getRequester()
  • Print
Pages: 1 [2]   Go Down

Author Topic: Call to undefined method bin\WbAdaptor::getRequester()  (Read 31474 times)

Offline LudwigSt

  • Posts: 449
  • Betatester
Re: Call to undefined method bin\WbAdaptor::getRequester()
« Reply #25 on: September 26, 2021, 11:19:34 AM »
Wenn es denn ein „nach dem Entpacken“ gäbe.
Soweit komme ich ja nicht, weil die unzip.php vom Unterverzeichnis ins Root springt.
Logged
LG Ludwig

Wissen ist Macht - aber nix wissen macht auch nix.

Offline LudwigSt

  • Posts: 449
  • Betatester
Re: Call to undefined method bin\WbAdaptor::getRequester()
« Reply #26 on: September 26, 2021, 12:43:58 PM »
Der Code in der unzip.php ab Zeile 100 scheint mir für den Wechsel von /verzeichnis/ ins Root verantwortlich zu sein:

Code: [Select]
// create absolute/relative paths
    $sAddonName     = \basename(__DIR__);
    $sScriptPath    = dirname($_SERVER["SCRIPT_FILENAME"]);
    $sAppDir        = str_replace(['\\\\','//'], '/',__DIR__);
    $sDocRoot       = str_replace(['\\','//'],'/',realpath($_SERVER["DOCUMENT_ROOT"]));
    $sScriptName    = str_replace(['\\','//'],'/',realpath($_SERVER["SCRIPT_FILENAME"]));
    $iSharedHosting = ($isWindows ? 0 : (strcmp(md5($sScriptPath),md5($sAppDir)))); // ist leer
    $sPathPattern   = "/^(.*?\/)admin\/.*$/";
    $sLink      = \str_replace(['\\','//'],'/',__DIR__).'/admin/';
    $sAppRel    = \str_replace($sDocRoot,'',\dirname($sScriptName));  // ist /verzeichnis (Zeile 109)
    $sAppRel    = (($iSharedHosting != 0) ? '' : $sAppRel); // ist leer
    $sAppRel    = rtrim((empty($sAppRel) ? '/' : $sAppRel),'/').'/'; // ist leer
    $sAcpRel    = $sAppRel.'admin/'; // ist /admin/
    $sAppPath   = \preg_replace ($sPathPattern, "$1", $sLink, 1 );
    $sOldPath   = \str_replace('\\','/',\getcwd()).'/';

Ich habe im Code oben per Kommentar den Variableninhalt eingefügt. In Zeile 109 ist $sAppRel noch /verzeichnis und ab Zeile 110 ist die Variable leer. $iSharedHosting ist übrigens bei mir auch leer.

Was sagt jetzt der Chef dazu? @Dietmar
Logged
LG Ludwig

Wissen ist Macht - aber nix wissen macht auch nix.

Offline LudwigSt

  • Posts: 449
  • Betatester
Re: Call to undefined method bin\WbAdaptor::getRequester()
« Reply #27 on: September 26, 2021, 06:42:53 PM »
Ich war jetzt mal mutig, und habe Zeile 110 und 111 auskommentiert. An $sAppRel habe ich noch einen Slash dran gehängt, sodass aus /verzeichnis /verzeichnis/ wurde. Und nun ist das Entpacken mit der unzip.php gelungen. Soweit ich bisher feststellen konnte, läuft jetzt alles. Aber was der @Dietmar dazu sagt, würde mich trotzdem noch interessieren.
Logged
LG Ludwig

Wissen ist Macht - aber nix wissen macht auch nix.

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4548
  • Gender: Male
Re: Call to undefined method bin\WbAdaptor::getRequester()
« Reply #28 on: September 28, 2021, 10:26:55 PM »
Hallo,

erstmal vielen an LudwigSt fürs testen der neuen unzip.php Version 2.12. Kleiner Fix für Strato hosting

Download unzip.php.zip vom Sep 2021

Ausführung wie bereits beschrieben

Benennen Sie die unzip.php.zip in unzip.php um (unzip.php.zip ist nicht wirklich eine Archivdatei). Anschliessend laden Sie die unzip.php und WB fix zip oder WB full package zip in den Root (Anwendungspfad) Ihrer WB-Installation hoch. Führen Sie unzip.php in Ihrem Browser (https://yourdomain.com/unzip.php) aus. Die unzip.php und die WB zip löschen sich nach erfolgreicher Ausführung der unzip.php selbst.
Melden Sie sich in Ihrem Backend als Super-Admin (Administrator mit ID 1) an und führen Sie das Upgrade-Skript über den Upgrade-Link oder über das wb-info-Panel aus. 

Dietmar
Logged
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

  • Print
Pages: 1 [2]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.12.x) »
  • General Help & Support »
  • Call to undefined method bin\WbAdaptor::getRequester()
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2