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

[BUG] Vague exception when you've got an invalid contenttypes.yml #6248

Closed
Maelstromeous opened this issue Jan 12, 2017 · 2 comments
Closed
Assignees

Comments

@Maelstromeous
Copy link
Contributor

Maelstromeous commented Jan 12, 2017

By accident, I had an invalid config for contenttypes.yml.

However, the exception that was thrown was extremely vague, which basically gave me no information as to what I did wrong.

Twig_Error_Runtime in Template.php line 556:
Impossible to access an attribute ("all") on a null variable in "@bolt/exception/_request.twig" at line 46.

Used contenttype (notice the type: image is missing)

shields:
    name: Shields
    singular_name: Shield
    fields:
        title:
            type: text
        image:
            upload: shields

exception

Details

  • Relevant Bolt Version: 3.2.5
  • Install type: Composer
  • PHP version: 5.6
  • Used web server: Apache

Reproduction

  1. Create an invalid contenttype
  2. Attempt to load a page
  3. Observe exception
@bobdenotter bobdenotter self-assigned this Jan 12, 2017
@bobdenotter
Copy link
Member

On it!

@michaelborn
Copy link
Contributor

I can confirm, this was a pain. Thanks for the fix @bobdenotter !

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

3 participants