Call to a member function addField() on array

Created on 15 May 2025, about 2 months ago

Problem/Motivation

Error when updating the database: "Call to a member function addField() on array"

Steps to reproduce

  1. Run composer require 'drupal/carbon_impact_evaluator:^1.2'
  2. Run the database update command for your project - drush updb

Proposed resolution

Replace the variable $schema, which is inside the (!$check_field), with another variable so as not to override the other $schema.

🐛 Bug report
Status

Active

Version

1.2

Component

Code

Created by

🇵🇹Portugal claudiadesiderio

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