craftcms / cms

Build bespoke content experiences with Craft.
https://craftcms.com
Other
3.21k stars 616 forks source link

After updating to 3.7.13, 'craft' console command produces error: "Cannot use object of type craft\log\FileTarget as array" #10297

Closed cscomfort closed 4 months ago

cscomfort commented 2 years ago

Description

In the process of trying to update to the latest version of Craft (3.7.8 -> 3.7.26), the craft console command errored out with Cannot use object of type craft\log\FileTarget as array. At that point, I began updating with incremental versions -- 3.7.9, 3.7.10, and so on -- until I reached 3.7.13, at which point the error presented.

Steps to reproduce

  1. Ran ./craft update craft:3.7.13
  2. Attempted to run the Craft console command with and without parameters (e.g, ./craft and ./craft migrate/all)

Additional troubleshooting steps

The following all resulted in the same error:

Additional info

timkelty commented 2 years ago

@cscomfort are you using a custom log driver in your app.php?

I could not reproduce this with a fresh install:

composer create-project craftcms/craft gh-10297
cd gh-10297
composer require craftcms/cms:3.7.8 -W
./craft update craft:3.7.13
./craft

Yields normal output, no error.

timkelty commented 4 months ago

Closed due to inactivity.