-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
Undefined index: year in vendor/lavary/crunz/src/Event.php on line 370 #41
Comments
How can I fix this issue ? |
@krlitus could you provide date that causes this issue? |
Experienced this problem today while trying on() method. The problem is caused by $segments['year'] in this line: return (int) date('Y') != $segments['year']; $segments will never contain a 'year' key. You can debug this only when you run the scheduler at the exact minute of the datetime passed to on(). To fix this I think is enough to replace $segments with $date. The fixed code will look like: $this->skip(function () use ($date) {
return (int) date('Y') != $date['year'];
}); I'll arrange a pull request... |
Fixed in #118. Thanks guys. |
This error occurs when using on method in 'Running Events at Certain Times'
Apparently missing the position for the year in the attribute 'fieldsPosition'.
The text was updated successfully, but these errors were encountered: