Skip to content

Settings page throws error: "Class name must be a valid object or a string" #362

@iamkeir

Description

@iamkeir

Description

When first saving redirect settings (/admin/sprout/settings/redirects), page throws error:
"Class name must be a valid object or a string"

This error persists whenever visiting the redirect settings now.

Error relates to line 3063 in in /var/www/html/craft/vendor/craftcms/cms/src/helpers/Cp.php:
'alwaysShowThumbAlignmentBtns' => $fieldLayout->type::hasThumbs(),

Full stack trace attached: sprout-redirects-error-trace.txt

How to reproduce

  1. Install Sprout Redirects
  2. Visit settings page in CP
  3. Save changes
  4. View error

Sprout Version

Lite 5.0.3

Craft Version

Craft Solo 5.8.13.2

Database Type Version

MySQL 8.0.33

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions