[5.x]: Fatal error: Uncaught yii\base\UnknownPropertyException: Invalid general config setting: allowedPrivateHosts.
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start by reading the general configuration handling and URL validator changes mentioned in the report; the payload does not name specific files or tests. Check how allowedPrivateHosts is supported by the URL validator and how Craft general settings accept configuration values. Done means the setting is accepted in general.php and private IPs can be accessed without the reported exception.
索引モデルが issue の本文から書いたものです。
説明
What happened?
Description
Hi there, we have an issue in a local environment where we could not access private IPs and have become aware it is due to recent changes the url-validator module.
Is it possible for Craft 5 to support allowedPrivateHosts to override url-validator's validation for local/dev addresses?
Currently when we try we get the error in the subject.
Fatal error: Uncaught yii\base\UnknownPropertyException: Invalid general config setting: allowedPrivateHosts.
Steps to reproduce
- Update general.php with allowedPrivateHosts containing array of private IPs
Expected behavior
No error and private IPs can be accessed
Actual behavior
Error message:
Fatal error: Uncaught yii\base\UnknownPropertyException: Invalid general config setting: allowedPrivateHosts.
Craft CMS version
5.11.5.1
PHP version
8.2
Operating system and version
Ubuntu Linux 24.04
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
- 主要言語
- PHP
- スター
- 3.6k
- フォーク
- 708
- 平均マージ
- 10時間 57分
- マージ済み PR(30日)
- 275
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
craftcms/cms のほかの issue
-
repo:cms
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
craftcms/cms#20052 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug repo:cms
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
craftcms/cms#20051 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[6.x]: Colored chips: link blue has low contrast on tinted backgrounds対応中かも @brandonkelly が 6 日前に担当しました。 オープンbug repo:cms
craftcms/cms#19984 · コメント 3 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
bug repo:cms
難易度 3/5 1〜2日 初心者へのやさしさ 62/100
craftcms/cms#19980 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
[6.x]: Text in some input fields is clipped at the bottom on Windows対応中かも @brianjhanson が 11 日前に担当しました。 オープンbug repo:cms
craftcms/cms#19928 · コメント 4 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
PHP-CS-Fixer/PHP-CS-Fixer#9899 ·
メンテナーはふだん 1 日以内に返信
-
needs-triage Platform(Default)
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 2 日以内に返信
-
sync-en
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
[Sync EN] Document Error thrown by shm_* functions on a detached segment (#5975)対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンsync-en
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 3 日以内に返信
-
Перевод устарел
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100