Skip to content

OJS 3.3 Fatal Error on PHP 8 #9307

@kswro

Description

@kswro

Describe the bug
A fatal error occurs if, in OJS 3.3.0 (tested on build 15), the Web Cache setting is active under PHP 8 (8.0, 8.1, 8.2). This doesn't happen if I use PHP 7.4.

To Reproduce
Steps to reproduce the behavior:

  1. PHP 8
  2. web_cache is On (config.inc.php)
  3. Visit site

What application are you using?
OJS 3.3.0-15

Log

PHP Fatal error:  Uncaught ArgumentCountError: mktime() expects at least 1 argument, 0 given in /home/.../public_html/lib/pkp/classes/core/Dispatcher.inc.php:226

Stack trace:
#0 /home/.../public_html/lib/pkp/classes/core/Dispatcher.inc.php(226): mktime()
#1 /home/.../public_html/lib/pkp/classes/core/Dispatcher.inc.php(122): Dispatcher->_displayCached()
#2 /home/.../public_html/lib/pkp/classes/core/PKPApplication.inc.php(362): Dispatcher->dispatch()
#3 /home/.../public_html/index.php(68): PKPApplication->execute()
#4 {main}
  thrown in /home/.../public_html/lib/pkp/classes/core/Dispatcher.inc.php on line 226

Metadata

Metadata

Assignees

Labels

Bug:1:MinorA bug found in uncommon paths, with low consequences, limited users or has an easy workaround

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions