-
Notifications
You must be signed in to change notification settings - Fork 452
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
Fatal error at PKPEmailHandler on bulk email sending #8734
Comments
I've created an issue at the Laravel repository laravel/framework#46355 |
@jonasraoni, what are the reproduction steps to cause this? (This will help determine whether it's a must-fix for 3.4 or can wait on Laravel's schedule.) |
This has been resolved in PHP 8.1+ but an issue before that, see the test at https://onlinephp.io/c/dbcd1 . The best solution for this is to extract the code within the |
Yep, the Laravel folks said the same and asked for a fix: laravel/framework#46355 |
Might be useful for this issue:
|
…ueue for batch process
@NateWr can you please review the PRs . The bulk emailing feature now handled by batch queue process with few enhancements . |
@Vitaliy-1 can you code review this? I worked on this back before all of @touhidurabir's work on jobs and your work on emails. I think you're more familiar with best practices here. |
A fix has already been added upstream, so the next release of Laravel 9 should include it :) |
@touhidurabir, looks good! I also think that the separate API endpoint to process the queue isn't needed anymore as the concept has changed. I left a comment, can you check whether we duplicate registering of the database connector with this PR? |
@Vitaliy-1 I have replied to your reviews, please check those . |
…ueue for batch process
Thanks, @touhidurabir. Think that it's ready to be merged after the tests. |
#8734 Added bulk mail sending job class and optimized bulk mail sending
pkp/pkp-lib#8734 Removed extra process call to handle bulk email sending
Describe the bug
See error log below, the origin is here:
pkp-lib/api/v1/_email/PKPEmailHandler.php
Line 168 in 566c546
And fails due to this bug in Laravel (you cannot call
isset($closure->property)
on a closure):https://github.com/laravel/framework/blob/ab7586b3b7303958f343c84531b021b1055bd6a3/src/Illuminate/Queue/Queue.php#L328
Re-production Steps
Administration --> Site Settings --> Bulk Emails --> Select specific context --> Save
Context(Journal/Server/....) --> User & Roles --> Notify
What application are you using?
OJS 3.4.0 RC1
Additional Information
Details reason at #8734 (comment)
PRs
pkp-lib --> #8827
ui-library --> pkp/ui-library#270
ojs --> pkp/ojs#3838 [TEST ONLY]
The text was updated successfully, but these errors were encountered: