After OJS 3.3.0.14 upgrade, submision and articles pages are empty

After OJS 3.3.0.14 upgrade, submision and articles pages are empty and we get the following errors in the error.log, what could be the problem?

error.log
[php7:error] PHP Fatal error: Uncaught TypeError: Argument 1 passed to PHP81_BC\strftime() must be of the type string, null given, called in

Firefox Developer console error;
Status 500 Internal Server Error

What version of PHP do you use? 7 or 8? the message says php7:error but it shows an 8.1 error.

thanks for your reply
I set the “intl” extension, but there was no change

Versions;
Ubuntu 20.04.3 LTS
libapache2-mod-php7.4

I guess I’ll have to do a php upgrade, right?

Hi @nkisnisci,

Can you include the stack trace? It appears right below the error message you quoted in the first message on the thread.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi Alec,

message in full;
PHP Fatal error: Uncaught TypeError: Argument 1 passed to PHP81_BC\strftime() must be of the type string, null given, called in …/lib/pkp/controllers/grid/files /FileDateGridColumn.inc.php on line 56 and defined in …/lib/pkp/lib/vendor/php81_bc/strftime/src/php-8.1-strftime.php:30\nStack trace:\n#0 … /lib/pkp/controllers/grid/files/FileDateGridColumn.inc.php(56): PHP81_BC\strftime()\n#1 …/lib/pkp/classes/controllers/grid/ColumnBasedGridCellProvider.inc.php( 34): FileDateGridColumn->getTemplateVarsFromRow()\n#2 …/lib/pkp/classes/controllers/grid/GridCellProvider.inc.php(49): ColumnBasedGridCellProvider->getTemplateVarsFromRowColumn()\n#3 …/ lib/pkp/classes/controllers/grid/GridHandler.inc.php(1104): GridCellProvider->render()\n#4 …/lib/pkp/classes/control in …/lib/pkp/lib /vendor/php81_bc/strftime/src/php-8.1-strftime.php on line 30, referer: …/index.php/JDD/authorDashboard/submission/48

we get the above message on the submission page, on the articles page we get the following message;

[php7:error] [pid …] [client …] PHP Fatal error: Uncaught TypeError: Argument 1 passed to PHP81_BC\strftime() must be of the type string, null given, called in …/public_html/lib/pkp/classes/services/PKPStatsService.inc.php on line 288 and defined in …/public_html/lib/pkp/lib/vendor/php81_bc/strftime/src/php-8.1-strftime.php:30\nStack trace:\n#0 …/public_html/lib/pkp/classes/services/PKPStatsService.inc.php(288): PHP81_BC\strftime()\n#1 …/public_html/lib/pkp/classes/services/PKPStatsService.inc.php(128): PKP\Services\PKPStatsService->getEmptyTimelineIntervals()\n#2 …/public_html/lib/pkp/pages/stats/PKPStatsHandler.inc.php(241): PKP\Services\PKPStatsService->getTimeline()\n#3 …/public_html/lib/pkp/classes/core/PKPRouter.inc.php(395): PKPStatsHandler->publications()\n#4 …/public_html/lib/pkp/classes/core/PKPPageRouter.inc.php(246): PKPRouter->_authorizeInitializeAndC in …/public_html/lib/pkp/lib/vendor/php81_bc/strftime/src/php-8.1-strftime.php on line 30, referer: https://…/index.php/idcm/workflow/index/42/5

Hi @nkisnisci,

Can you double-check that your date and time formats are properly configured in Website > Setup > Date & Time?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi Alec,

settings are below;
Config.inc.php
; Site time zone
; Please refer to lib/pkp/registry/timeZones.xml for a full list of supported
; time zones.
; I.e.:
;
; time_zone=“Amsterdam”
time_zone = “UTC”

; Short and long date formats
date_format_short = “%Y-%m-%d”
date_format_long = “%B %e, %Y”
datetime_format_short = “%Y-%m-%d %I:%M %p”
datetime_format_long = “%B %e, %Y - %I:%M %p”
time_format = “%I:%M %p”

php.ini setting
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
;date.timezone =

; http://php.net/date.default-latitude
;date.default_latitude = 31.7667

; http://php.net/date.default-longitude
;date.default_longitude = 35.2333

; http://php.net/date.sunrise-zenith
;date.sunrise_zenith = 90.583333

; http://php.net/date.sunset-zenith
;date.sunset_zenith = 90.583333

Note: OJS 3.3.0.8 works fine on the same server

Hi @nkisnisci,

I mean the setup web interface, not the configuration file.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi Alec,
I’m sorry but I guess I didn’t understand that.
Are you talking about browser date & time setting, I couldn’t see any setting other than language in firefox

Hi @nkisnisci,

There should be settings in the OJS dashboard:


Regards,
Alec Smecher
Public Knowledge Project Team

Hi Alec,

So sorry.

All of them custom set.

Hi Alec,

When I changed the settings, the Submission and Articles pages were displayed without any problems.

Thanks a lot for your support

1 Like