[ OJS 2.4.8-5 ] Blank page author/submit PHP 7.2

Hello.

OJS 2.4.8-5
PHP 7.2

if i visit https://domain.es/index.php/JOURNAL/author/submit

Blank page.

Strange. If i active

show_stacktrace = On

And i visit https://domain.es/index.php/JOURNAL/author/submit. Redirects correctly to https://domain.es/index.php/JOURNAL/author/submit/1

Logs, perhaps, is headers’ problem?

NOTICE: Only variables should be passed by reference (/var/www/domain.es/www/pages/author/AuthorHandler.inc.php:29)

NOTICE: Only variables should be passed by reference (/var/www/domain.es/www/pages/author/AuthorHandler.inc.php:119)

ojs2 has produced an error Message: WARNING: Cannot modify header information - headers already sent by (output started at /var/www/domain.es/www/lib/pkp/classes/core/PKPApplication.inc.php:381) In file: /var/www/domain.es/www/lib/pkp/classes/core/PKPRequest.inc.php At line: 87 Stacktrace: Server info: OS: Linux PHP Version: 7.2.24 Apache Version: N/A DB Driver: mysqli DB server version: 10.3.17-MariaDB

Thanks

HI @juanito,

The two NOTICE messages should be cosmetic – i.e. they won’t prevent PHP from continuing – but because they were directed to the browser, OJS was prevented from sending headers. If you configure PHP to direct warnings/errors to the log rather than the browser, then messages like these won’t interfere (and it may solve the problem, e.g. if OJS was trying to redirect the browser to a different page using a header).

Regards,
Alec Smecher
Public Knowledge Project Team

Thanks @asmecher .

You have reason. I activated display errors on config.inc.php for debug. I already deactivated.

I have a problem. author/submit doesn’t redirect to author/submit/1

Log tells 302, but nothing happens.

In branch 2.4.8, where can i see code, where redirect happens?

Thank you very much

@asmecher , sorry, froget it.

I was configuring more php-fpm and apache, and now, it seems that works…

Thanks.