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

PAjax request for CMS page throws "Cannot mutate DI container" #188

Closed
maxime-rainville opened this issue Dec 17, 2018 · 1 comment
Closed

Comments

@maxime-rainville
Copy link
Contributor

Affected version

  • colymba/gridfield-bulk-editing-tools 3.0.0-beta4
  • Silverstripe 4.3

Description

If you are viewing a page in the CMS and then navigate to a page containing a gridfield, you will get a nasty JS errors.

Error: "Cannot mutate DI container after it has been initialised"

The error stack doesn't explicitly point to anything in colymba/gridfield-bulk-editing-tools. However, the error goes away if your remove the module.

If you refresh that page you do not get any error, even on navigation.

This got notice while working on silverstripe/silverstripe-cms#2230. It use to block other request, but it got fix by silverstripe/silverstripe-admin#769.

Steps to reproduce

  • Start on the admin/pages url.
  • Navigate to a page with a Gridfield.

Notice the error in the console.

https://youtu.be/qJMFiwKbEOU

@robbieaverill
Copy link
Contributor

robbieaverill commented Dec 17, 2018

Also related: #176

I think we need to set aside some time to fix these bugs soon! cc @brynwhyman

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