Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Im REDAXO log gefunden, PHP 8 #101

Closed
tyrant88 opened this issue Feb 13, 2023 · 4 comments
Closed

Im REDAXO log gefunden, PHP 8 #101

tyrant88 opened this issue Feb 13, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@tyrant88
Copy link

stats_visit::__construct(): Argument #4 ($domain) must be of type string, null given, called in /var/www/sssssss/releases/228/src/addons/statistics/boot.php on line 95

src/addons/statistics/lib/stats_visit.php line 73

@AndiLeni AndiLeni added the bug Something isn't working label Feb 13, 2023
@AndiLeni
Copy link
Owner

Komisch, dass rex_yrewrite::getHost() hier offenbar null liefert.

Hast du eine yRewrite Domain angelegt?
Bzw könntest vllt ins Project addon ein Log einfügen, damit man sieht, ob Besucher bei dir eine Domain gesetzt haben?
rex_logger::logError(2, rex_yrewrite::getHost() ?? 'null', '', 1);

@tyrant88
Copy link
Author

$_SERVER['HTTP_HOST'] ist halt nicht immer gesetzt.

@AndiLeni
Copy link
Owner

Ja, ich war in der Annahme, dass rex_yrewrite::getHost() immer etwas liefert, aber dem ist nicht so.
Ich würde bei fehlendem Host die Domain auf einen leeren String setzen.

@tyrant88
Copy link
Author

Ja, denke ich auch. Es ist einfach nicht auszuschließen. Hatte mich noch mal 3/4 ins Thema eingelesen, konnte aber nichts brauchbares ableiten.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants