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

Fix compatibility with Symfony 4.2 and up. #3048

Merged
merged 1 commit into from
Oct 23, 2020
Merged

Fix compatibility with Symfony 4.2 and up. #3048

merged 1 commit into from
Oct 23, 2020

Conversation

ViliusS
Copy link
Contributor

@ViliusS ViliusS commented Oct 23, 2020

This enables running scheduled shell commands again because Symfony 4.2 deprecated passing commands as a string to the Process component: https://symfony.com/blog/new-in-symfony-4-2-important-deprecations#deprecated-process-commands-as-strings

One also needs to catch all possible exceptions from the Process component, though. These exceptions are never displayed or sent to any of the logs and I've spent hours trying to debug why my scheduled tasks are failing.

Fix should be applied to 1.6 and 1.7 branches.

This enables running scheduled *shell* commands again because Symfony 4.2 deprecated passing commands as a string to the Process component: https://symfony.com/blog/new-in-symfony-4-2-important-deprecations#deprecated-process-commands-as-strings

One also needs to catch all possible exceptions from the Process component, though. These exceptions are never displayed or sent to any of the logs and I've spent hours trying to debug why my scheduled tasks are failing.
@rhukster rhukster merged commit 1661dc9 into getgrav:develop Oct 23, 2020
@rhukster
Copy link
Member

Good catch, thanks.

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

Successfully merging this pull request may close these issues.

2 participants