WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
PHP Warning: Undefined array key "SCRIPT_NAME" in /mnt/web220/b2/93/536293/htdocs/wb/framework/CoreAutoloader.php on line 95PHP Warning: Undefined array key "SCRIPT_NAME" in /mnt/web220/b2/93/536293/htdocs/wb/framework/CoreAutoloader.php on line 146There was an uncatched exception<br />strtolower(): Argument #1 ($string) must be of type string, null given<br />in line (72) of (/framework/HttpRequester.php):<br />
The error is generated by the WB framework, before the croncheck is actually executed.I guess you are calling the croncheck script directly in php, and not as http request (like wget / curl).This WB version checks the request method ( in line (72) of (/framework/HttpRequester.php) ), but that is not existing.Secondly, PHP8 is strict and does not allow string operations on non-existing-string (null). This is actually generating the error.
In die Kommandozeile werden grundsätzlich Unix-Kommandos eingetragen, d. h. alle Kommandos und Skripte, die auch manuell aus einer SSH-Session heraus aufgerufen werden, können hier ausgeführt werden. Grundkenntnisse im Umgang mit einem Unix-System sind also zwingend erforderlich, damit Cron-Jobs einwandfrei funktionieren.
php -f <scriptname>
Und da bin ich nun unsicher/nicht wissend, welches Kommando außer Code: [Select]php -f <scriptname> ich nutzen könnte ...
/bin/php -f ./PFADzurDATEI/croncheck.php
https://example.com/croncheck.php
php -f path/to/script/croncheck.php
Frage an hillschmidt, was hindert dich daran es so wie im Beispiel zu machen?
include('config.php');
require __DIR__.'/framework/initialize.php';
der den CLI-Aufruf in einen HTTP-Request umsetzt. (also ein Script, das einen CLI-Aufruf verarbeiten und mit den Daten einen HTTP-Request auslöst.