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

Post install issue #7

Closed
StevenLangbroek opened this issue Aug 21, 2017 · 8 comments
Closed

Post install issue #7

StevenLangbroek opened this issue Aug 21, 2017 · 8 comments

Comments

@StevenLangbroek
Copy link

So I just installed through composer (running Craft on homestead), and when I go to the GraphiQL interface, the API requests give me 400 errors:

HTTP 400 – Bad Request – yii\web\BadRequestHttpException

Unable to verify your data submission.

I thought I might need to generate a token, so I clicked the "Generate token button", which gave me this error:
craft-exception

Did I miss something here?

@StevenLangbroek
Copy link
Author

So I uninstalled, changed Install.php L19 to:

'isWritable' => $this->boolean()->notNull()->defaultValue(true),

Which allows me to create keys, but it doesn't solve the problem (still 400 in GraphiQL), and when I click on a token's settings, I get this error:

craft-scopese

@StevenLangbroek
Copy link
Author

I'm on beta24, php 7.1.7 btw.

@markhuot
Copy link
Owner

Hum, there shouldn't be an isWritable any more. That was an old release. Let me make sure my Packagist tag is updated.

@markhuot
Copy link
Owner

markhuot commented Aug 21, 2017

Ah, my bad. I didn't understand how Yii's migrations work. Install doesn't include the migration, like I thought it did. I just posted some install fixes here, 5632540.

If you're pulling off Packagist, make sure you get 1.0.0-beta.3

@markhuot
Copy link
Owner

Oh, you'll probably need to uninstall and re-install the plugin to get it to work.

@markhuot
Copy link
Owner

Note, 1.0.0-beta.4 is updated to fix a csrf issue with beta.3.

@StevenLangbroek
Copy link
Author

Works like a charm! Thanks!

@narration-sd
Copy link
Contributor

narration-sd commented Jun 12, 2019

@markhuot could this have had a regression? As you'll see from other note, I'm getting this on a fresh install of Craft 3.1.30 with normative CraftQL 1.3.2 off the plugin store -- a validity testing site for my own plugin, but it's not in there yet -- only Redactor and ElementApi.

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