Error: Typed static property Drupal\url_text\Plugin\Field\FieldWidget\UrlTextfieldWidget::$schemes must not be accessed before initialization..

Created on 19 May 2025, 1 day ago

Problem/Motivation

When I try to add new content with the URL field, it throws an error.

Steps to reproduce

1: Install the "URL Text" using the following command:
composer require 'drupal/url_text:^1.1'

2: Add a Multiple URL field in the content type.

3: Add a new node.

4: The following error appears:
Error: Typed static property Drupal\url_text\Plugin\Field\FieldWidget\UrlTextfieldWidget::$schemes must not be accessed before initialization in Drupal\url_text\Plugin\Field\FieldWidget\UrlTextfieldWidget::validate() (line 107 of modules\contrib\url_text\src\Plugin\Field\FieldWidget\UrlTextfieldWidget.php).

Note: I am using Drupal 11 with PHP 8.3.13 version.

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

🇮🇳India aman_lnwebworks

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024