OJS 3.4.0.9 error when opening Submissions page: Unexpected data in output buffer

Hello PKP Team,

I am using OJS 3.4.0.9. When I click the Submissions menu from the admin dashboard, the page shows this error:

Error
An unexpected error has occurred. Please reload the page and try again.

The PHP error log shows:

PHP Fatal error: Uncaught RuntimeException: Unexpected data in output buffer. Maybe you have characters before an opening <?php tag? in /lib/pkp/lib/vendor/slim/slim/Slim/App.php:621
Stack trace:
#0 /lib/pkp/lib/vendor/slim/slim/Slim/App.php(317): Slim\App->finalize()
#1 /lib/pkp/classes/core/APIRouter.php(110): Slim\App->run()
#2 /lib/pkp/classes/core/Dispatcher.php(165): PKP\core\APIRouter->route()
#3 /lib/pkp/classes/core/PKPApplication.php(395): PKP\core\Dispatcher->dispatch()
#4 /index.php(22): PKP\core\PKPApplication->execute()
#5 {main}

There is also this log:

Server host "www.jurnal.yoctobrain.org" not allowed!

I have tried clearing the OJS cache, but the error still appears. Could you please advise what files or configurations I should check to solve this issue?

Thank you.

Hi @kbh,

OJS 3.4.0-9 is out of date; I’d suggest starting by upgrading to the latest 3.4.0-x release (or even 3.5.0 if you’re ready for that).

Is www.jurnal.yoctobrain.org an accurate URL for your journal? If so, you need to add it to the allowed_hosts setting in config.inc.php.

Regards,
Alec Smecher
Public Knowledge Project Team