statamic / v2-hub

Statamic 2 - Feature Requests and Bug Reports
https://statamic.com
95 stars 5 forks source link

Enabling EventsCollector in the debug bar config prevents Statamic from saving changes #2424

Open benfurfie opened 5 years ago

benfurfie commented 5 years ago

Describe the bug When the Debug Bar's EventsCollector is enabled, it prevent Statamic from saving changes made through the CP.

To Reproduce Steps to reproduce the behavior:

  1. Go to statamic/config/debugbar.php
  2. In the collectors array, change events on line 84 to true.
  3. Load the CP and ensure the debug bar is turned on and visible.
  4. You should now see the events tab on the debug bar.
  5. Open a page and make a change, then save.
  6. Statamic will appear to save the changes and return no error. But when you either refresh the page or return to the page (depending on the behaviour of the save button), the changes will not have been saved.

Expected behavior Even with the EventsCollector property in Debug Bar set to true, the filesystem should save the changes.

Environment details (please complete the following information):

Additional context I'm aware this is achieved by messing around with the core config, so it might be disabled for good reason. But it would be helpful to be able to use this while enabled for tracking events when debugging sites and when developing addons.