Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array to string conversion error on System Report page #3507

Closed
mcjackson18 opened this issue Nov 29, 2018 · 2 comments
Closed

Array to string conversion error on System Report page #3507

mcjackson18 opened this issue Nov 29, 2018 · 2 comments

Comments

@mcjackson18
Copy link

Description

The /admin/utilities/system-report page gives an "Array to string conversion" error. It looks like it's linked to this update -d515bf0

  • Craft version: 3.0.33
@mcjackson18
Copy link
Author

Update: adding the module to the bootstrap array in config/app.php resolves the issue but using an empty bootstrap array 'bootstrap' => [] when you have a module installed gives the Array to string conversion error.

@brandonkelly
Copy link
Member

I was able to reproduce this if I configured a module using an array rather than a string of the class name:

'modules' => [
    'my-module' => [
        'class' => MyModule::class,
    ],
],

Fixed for the next release.

If you don’t have a need to use an array here, switching to a string will workaround the issue in the meantime.

'modules' => [
    'my-module' => MyModule::class,
],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants