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

3.1.Beta5.1 - TypeError: Argument 1 passed to craft\services\Fields::getGroupById() must be of the type integer #3561

Closed
neokoenig opened this issue Dec 15, 2018 · 4 comments
Assignees
Labels
project config 🐫 features related to Project config

Comments

@neokoenig
Copy link

Description

/admin/settings/fields in CP throws TypeError: Argument 1 passed to craft\services\Fields::getGroupById() must be of the type integer

Steps to reproduce

  1. Go to Control Panel > Settings > Fields

Additional info

  • Craft version: Craft Pro 3.1.0-beta.5.1
  • PHP version: 7.2.1
  • Database driver & version: MySQL 5.6.26
  • Plugins & versions:

Architect | 2.2.11
Asset Usage | 2.0.0-beta.2
Dumper | 1.3.1
Feed Me | 3.0.2.1
ImageOptimize | 1.4.44
oEmbed | dev-feature/craft-v3.1
Redactor | 2.1.6
SEOMatic |3.1.36
Tags | 1.0.1
Twitter | 2.1.3

TypeError: Argument 1 passed to craft\services\Fields::getGroupById() must be of the type integer, null given, called in D:\inet_craft\public\vendor\craftcms\cms\src\base\Field.php on line 445 and defined in D:\inet_craft\public\vendor\craftcms\cms\src\services\Fields.php:268
Stack trace:

@brandonkelly
Copy link
Member

Looks like one of your fields is missing its group ID. Can you please send us a ticket from your Craft Support dashboard widget, including the DB backup, and reference this issue?

@neokoenig
Copy link
Author

Done!

@andris-sevcenko andris-sevcenko self-assigned this Dec 18, 2018
@andris-sevcenko andris-sevcenko added the project config 🐫 features related to Project config label Dec 18, 2018
@andris-sevcenko
Copy link
Contributor

This was most likely due to the project.yaml file overwritten from a different environment.

@MaffooBristol
Copy link

MaffooBristol commented Jul 23, 2019

I had this issue after a botched install. For some reason Mariadb on my Amazon AMI had created a database with a dot in it and craft completely exploded from it:

    > saving the first user ... done
Exception: SQLSTATE[42000]: Syntax error or access violation: 1102 Incorrect database name '#mysql50#.rocksdb'

This then caused issues with saving fields, and in turn viewing the list.

Solution was simply to delete the database, run rm -rf /var/lib/mysql/.rocksdb/ and start over

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project config 🐫 features related to Project config
Projects
None yet
Development

No branches or pull requests

4 participants