Skip to content

CLI: kein „request object is not available in cli“ mehr (3.7.6) - #159

Merged
skerbis merged 1 commit into
FriendsOfREDAXO:mainfrom
skerbis:fix/cli-request
Oct 12, 2026
Merged

skerbis merged 1 commit into
FriendsOfREDAXO:mainfrom
skerbis:fix/cli-request

Conversation

@skerbis

@skerbis skerbis commented Oct 12, 2026

Copy link
Copy Markdown
Member

Auf der Konsole bzw. in Cronjobs (Umgebung „Frontend“) gilt rex::isFrontend() als wahr. boot.php ruft dann rex::getRequest()->getClientIp() auf – das wirft auf der Kommandozeile rex_exception: The request object is not available in cli und bricht den ganzen Lauf ab (bei uns z. B. alle 30 Minuten der Cronjob und Konsolenbefehle anderer AddOns wie ai_chat:sync, die das Frontend booten).

Änderung: Die Besucher-Erkennung und der RESPONSE_SHUTDOWN-Block laufen nur noch bei echten Web-Aufrufen ('cli' !== PHP_SAPI). Auf der Konsole greift der vorhandene else-Zweig ($statistics_has_backend_login = true, kein Token) – es wird nichts gezählt. Web-Aufrufe unverändert.

Version 3.7.6 + Changelog.

🤖 Generated with Claude Code

…est object is not available in cli“), 3.7.6

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@skerbis
skerbis merged commit f355ccb into FriendsOfREDAXO:main Oct 12, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant