Because this is only an issue in Blueprints I suggest we catch this unexpected_output error code and return a warning to the logger instead of throwing an error.
This will allow the user to use Playground even if there is an unexpected_output error during boot.
The WordPress
activate_plugin
function will return an error if anything was outputted to the screen during activation.This will show an error to the user, but it won't break the site, also the plugin will be activated.
If this happens during Playground boot, we will throw an error and the boot process will break. This happens because we throw all errors during the activatePlugin step.
Recreate issue in Playground using this link.
Potential solution
Because this is only an issue in Blueprints I suggest we catch this
unexpected_output
error code and return a warning to the logger instead of throwing an error.This will allow the user to use Playground even if there is an
unexpected_output
error during boot.