Failed Ajax JSON Returned when i try to assign editor

PHP Fatal error: Uncaught TypeError: PKP\mail\Mailer::compileParams(): Argument #1 ($view) must be of type string, null given, called in

[15-Jul-2024 23:16:55 America/New_York] PHP Fatal error: Uncaught TypeError: PKP\mail\Mailer::compileParams(): Argument #1 ($view) must be of type string, null given, called in /home/diskresi/rumahjurnal.diskresi.id/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Mail/MailManager.php on line 554 and defined in /home/diskresi/rumahjurnal.diskresi.id/lib/pkp/classes/mail/Mailer.php:93
Stack trace:
#0 /home/diskresi/rumahjurnal.diskresi.id/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Mail/MailManager.php(554): PKP\mail\Mailer->compileParams(NULL, Array)
#1 /home/diskresi/rumahjurnal.diskresi.id/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(338): Illuminate\Mail\MailManager->__call(‘compileParams’, Array)
#2 /home/diskresi/rumahjurnal.diskresi.id/lib/pkp/controllers/grid/users/stageParticipant/form/PKPStageParticipantNotifyForm.php(112): Illuminate\Support\Facades\Facade::__callStatic(‘compileParams’, Array)
#3 /home/diskresi/rumahjurnal.diskresi.id/lib/pkp/controllers/grid/users/stageParticipant/form/AddParticipantForm.php(220): PKP\controllers\grid\users\stageParticipant\form\PKPStageParticipantNotifyForm->fetch(Object(APP\core\Request), NULL, false)
#4 /home/diskresi/rumahjurnal.diskresi.id/lib/pkp/controllers/grid/users/stageParticipant/StageParticipantGridHandler.php(324): PKP\controllers\grid\users\stageParticipant\form\AddParticipantForm->fetch(Object(APP\core\Request))
#5 [internal function]: PKP\controllers\grid\users\stageParticipant\StageParticipantGridHandler->addParticipant(Array, Object(APP\core\Request))
#6 /home/diskresi/rumahjurnal.diskresi.id/lib/pkp/classes/core/PKPRouter.php(334): call_user_func(Array, Array, Object(APP\core\Request))
#7 /home/diskresi/rumahjurnal.diskresi.id/lib/pkp/classes/core/PKPComponentRouter.php(291): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(APP\core\Request), Array)
#8 /home/diskresi/rumahjurnal.diskresi.id/lib/pkp/classes/core/Dispatcher.php(165): PKP\core\PKPComponentRouter->route(Object(APP\core\Request))
#9 /home/diskresi/rumahjurnal.diskresi.id/lib/pkp/classes/core/PKPApplication.php(388): PKP\core\Dispatcher->dispatch(Object(APP\core\Request))
#10 /home/diskresi/rumahjurnal.diskresi.id/index.php(21): PKP\core\PKPApplication->execute()
#11 {main}
thrown in /home/diskresi/rumahjurnal.diskresi.id/lib/pkp/classes/mail/Mailer.php on line 93

Steps I took leading up to the issue
For example:

  1. Go to ‘Review’
  2. Click on ‘Assign Reviewer’
  3. Scroll down to ‘null (Failed Ajax/JSON Returned)’
  4. See error

What application are you using?
For example, OJS 3.4.0

Additional information
Please add any screenshots, logs or other information we can use to investigate this problem.

Hi @DISKRESI,

Which version of 3.4 are you using (e.g. 3.4.0-5)?

-Roger
PKP Team

Hi @rcgillis

I use 3.4.0.5, thank you.

We also use 3.4.0.5 and are seeing the same error for one of our journals.

I’m also seeing errors like this:
getByEmail(): Argument [#1] ($email) must be of type string, null given, called in /ebs/ojs/twj/lib/pkp/pages/login/LoginHandler.php

So I suspect there may be a problem with the users. This particular journal has over 1000 users, but looking at all the email addresses seem correctly formatted.

(Then again, maybe the LoginHandler error is just when a user tries to log in with a blank username maybe?)

Hi @laulandn,

See: PHP Fatal error: Uncaught TypeError: PKP\user\Repository::getByEmail() - #2 by Antonin_Skopec

This has already been fixed in OJS 3.4.0-6.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi, how can we fix “Failed Ajax request or invalid JSON returned” while clicking on navigation tab. Secondly, the journal home page is failed to display User or Primary menu, its black.

Hi @Muhammad_Naeem_AAmir,

Check your PHP error log for details. See How do I find my PHP error log? - #3 by asmecher if you’re not sure where to find it.

Regards,
Alec Smecher
Public Knowledge Project Team

[Sun Aug 18 08:59:38.573456 2024] [access_compat:error] [pid 1024936:tid 22556246857472] [client 46.101.1.225:46018] AH01797: client denied by server configuration: /home2/ammanif/public_html/server-status
[Fri Aug 16 09:59:00.918636 2024] [autoindex:error] [pid 929580:tid 22556230047488] [client 94.156.68.3:58178] AH01276: Cannot serve directory /home2/ammanif/public_html/wp-includes/widgets/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive
[Fri Aug 16 09:59:00.668041 2024] [autoindex:error] [pid 1009246:tid 22556282578688] [client 94.156.68.3:58172] AH01276: Cannot serve directory /home2/ammanif/public_html/wp-includes/widgets/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive
[Fri Aug 16 09:58:53.245856 2024] [autoindex:error] [pid 929580:tid 22556160706304] [client 94.156.68.3:57936] AH01276: Cannot serve directory /home2/ammanif/public_html/wp-includes/sodium_compat/src/PHP52/: No matching DirectoryIndex

Hi @Muhammad_Naeem_AAmir,

That doesn’t appear to be your PHP error log; please see if that is somewhere else on your server.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi, Still unable to troubleshoot the dead white screen of journal’s home page, https://ammanif.com/journal/jcp/index.php/home/index. Additionally, the navigation tab in setup show failed Ajax JSON Returned"
Regards
Naeem

Hi @Muhammad_Naeem_AAmir,

The next step is still the same – you’ll need to find your server’s PHP error log in order to debug this.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi Alec
I think, there is something wrong in OJS setting of this journal (https://ammanif.com/journal/jcp/index.php/home/index), as another journal (https://ammanif.com/journal/bss/index.php/home) is functional on the same server.
Regards
Naeem

Hi @Muhammad_Naeem_AAmir,

I can’t help you unless you find the PHP error log on your server.

Regards,
Alec Smecher
Public Knowledge Project Team