[OJS 3.4.0-8] PHP Fatal error: Uncaught TypeError: PKP\\mail\\Mailer::compileParams(): Argument #1 ($view) must be of type string, null given

Describe the issue or problem
Hi I had found the error Failed Ajax request or invalid JSON returned trying to assign a reviewer to a submission on the review stage.

Steps I took leading up to the issue

  1. Select a submission on the review stage
  2. Click on Add Reviewer
  3. Appear a dialog box with the error message

What application are you using?
I am using OJS 3.4.0-8

Additional information
This is the log output:

[Tue Jul 29 17:31:19.253447 2025] [php:error] [pid 4079:tid 4079] [client 192.168.2.1:56882] PHP Fatal error: Uncaught TypeError: PKP\mail\Mailer::compileParams(): Argument #1 ($view) must be of type string, null given, called in /var/www/html/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Mail/MailManager.php on line 554 and defined in /var/www/html/lib/pkp/classes/mail/Mailer.php:93\nStack trace:
#0 /var/www/html/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Mail/MailManager.php(554): PKP\mail\Mailer->compileParams()
#1 /var/www/html/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(338): Illuminate\Mail\MailManager->__call()
#2 /var/www/html/lib/pkp/controllers/grid/users/reviewer/form/AdvancedSearchReviewerForm.php(83): Illuminate\Support\Facades\Facade::__callStatic()
#3 /var/www/html/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Collections/LazyCollection.php(825): PKP\controllers\grid\users\reviewer\form\AdvancedSearchReviewerForm->PKP\controllers\grid\users\reviewer\form\{closure}()
#4 /var/www/html/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Collections/LazyCollection.php(788): Illuminate\Support\LazyCollection->Illuminate\Support\{closure}()
#5 [internal function]: Illuminate\Support\LazyCollection->Illuminate\Support\{closure}()
#6 /var/www/html/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Collections/LazyCollection.php(105): iterator_to_array()
#7 /var/www/html/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(847): Illuminate\Support\LazyCollection->all()
#8 /var/www/html/lib/pkp/controllers/grid/users/reviewer/form/AdvancedSearchReviewerForm.php(87): Illuminate\Support\LazyCollection->toArray()
#9 /var/www/html/lib/pkp/classes/controllers/grid/users/reviewer/PKPReviewerGridHandler.php(1108): PKP\controllers\grid\users\reviewer\form\AdvancedSearchReviewerForm->initData()
#10 /var/www/html/lib/pkp/classes/controllers/grid/users/reviewer/PKPReviewerGridHandler.php(354): PKP\controllers\grid\users\reviewer\PKPReviewerGridHandler->_fetchReviewerForm()
#11 [internal function]: PKP\controllers\grid\users\reviewer\PKPReviewerGridHandler->showReviewerForm()
#12 /var/www/html/lib/pkp/classes/core/PKPRouter.php(334): call_user_func()
#13 /var/www/html/lib/pkp/classes/core/PKPComponentRouter.php(291): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest()
#14 /var/www/html/lib/pkp/classes/core/Dispatcher.php(165): PKP\core\PKPComponentRouter->route()
#15 /var/www/html/lib/pkp/classes/core/PKPApplication.php(395): PKP\core\Dispatcher->dispatch()
#16 /var/www/html/index.php(21): PKP\core\PKPApplication->execute()
#17 {main}
thrown in /var/www/html/lib/pkp/classes/mail/Mailer.php on line 93, referer: ``http://journal/index.php/pde/workflow/index/70445/3

I have seen that 2 topics had asked about the same error, but there isn’t response yet. Someone from the PKP forum could help about this?

Thanks a lot for your attention.

Best Regards.

I have found the reason for why the journal sends that message trying to assign a reviewer to the submission, after set up the debug directive inside config.inc.php, I noticed in the logs output flow, that the following message was previous the PHP Fatal error:

[Fri Jul 04 20:11:46.981625 2025] [php:notice] [pid 638:tid 638] [client 192.168.2.1:58677] Database query\nselect * from email_templates_default_datawhereemail_key= ? andlocale in (?, ?)\n["REVIEW_REQUEST_SUBSEQUENT","en","es"], referer: http://servicioseditoriales.unam.mx:8084/index.php/pde/workflow/index/70445/3

So I search in the email templates, I found the Review Request Subsequent template, however there hadn’t been any template set up as default.

Solution:

I have edited the Review Request Subsequent template and adding data as default, after that action the button no longer launches the error message.

1 Like