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

Warning Undefined array key "clang" (redaxo/src/addons/yrewrite/lib/yrewrite/yrewrite.php:222) #544

Open
m1001111 opened this issue May 20, 2023 · 1 comment

Comments

@m1001111
Copy link

Description / Beschreibung

Es kommt immer eine Fehlermeldung in der log Datei

redaxo/data/log/system.log

20.05.2023, 01:27:50
Warning	
Undefined array key "clang"
Datei: redaxo/src/addons/yrewrite/lib/yrewrite/yrewrite.php:222

Ich habe festgestellt, das das passiert, wenn eine 404 Seite kommt.

Affected versions / Verwendete Versionen

REDAXO: 5.15.1
PHP: 8.2.6

@timeceeper
Copy link

Das passiert in der "prepare" Methode. Da ist mein Log auch voll damit.

$params = $_GET;
$article = rex_article::get((int) $params['article_id'], (int) $params['clang']);

Müsste sowas sein:

$params = $_GET;
$article = rex_article::get((int) $params['article_id'], (int) $params['clang']??null);

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

No branches or pull requests

2 participants