Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [3.7.6] - 12.10.2026

- Konsole und Cronjobs (CLI) brechen nicht mehr mit „The request object is not available in cli“ ab: Die Besucher-Erkennung (`rex::getRequest()->getClientIp()`) läuft nur noch bei echten Web-Aufrufen. Betroffen waren u. a. Cronjobs in der Umgebung „Frontend“ und Konsolenbefehle anderer AddOns, die das Frontend booten.

## [3.7.5] - 02.10.2026

- Cronjobs „Statistik-Hashes löschen“ und „Wartung“ werden jetzt in allen Umgebungen registriert; in der Umgebung „Frontend“ scheiterten sie bisher mit `Class "…" not found` (#157)
Expand Down
5 changes: 3 additions & 2 deletions boot.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@


// set variable to check in EP whether the visit is coming from a logged-in user or not
if (rex::isFrontend()) {
// (not on the command line: cronjobs/console have no request object, rex::getRequest() would throw)
if (rex::isFrontend() && 'cli' !== PHP_SAPI) {
$addon = rex_addon::get('statistics');
$ignore_backend_loggedin = $addon->getConfig('statistics_ignore_backend_loggedin');
$identityMode = (string) $addon->getConfig('statistics_identity_mode', 'stateless');
Expand Down Expand Up @@ -133,7 +134,7 @@
// do actions after content is delivered
rex_extension::register('RESPONSE_SHUTDOWN', function () use ($statistics_has_backend_login, $token) {

if (rex::isFrontend()) {
if (rex::isFrontend() && 'cli' !== PHP_SAPI) {

$addon = rex_addon::get('statistics');
$trackingPaused = (bool) $addon->getConfig('statistics_pause_tracking_manual', false)
Expand Down
2 changes: 1 addition & 1 deletion package.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package: statistics
version: 3.7.5
version: 3.7.6
author: Andreas Lenhardt
supportpage: https://github.com/AndiLeni/statistics

Expand Down
Loading