Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[5.x]: Fatal error: Uncaught yii\base\UnknownPropertyException: Invalid general config setting: allowedPrivateHosts.

クローズ
#20,015 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
php
領域
backend

調査の方向性

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 の本文から書いたものです。

説明

bug repo:cms
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
  1. 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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

craftcms/cms のほかの issue

craftcms/cms の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。