PHP 8.0 compatibility issue with 3.3.0.13

When attempting to publish a new issue, users report that the page hangs and produces a timeout error.

Checking the Apache logs, I found this:
PHP Fatal error: Uncaught Error: Call to undefined function fgetss() in /var/www/serials/ojs/lib/pkp/classes/search/SearchHTMLParser.inc.php

Downgrading to PHP 7.4 resolved the problem. My understanding is that OJS 3.3.0.13 is compatible with PHP 8.0, so I wish to report this as a bug.

Thank you.

Hi @pbuss,

I suspect you’re using an older version than OJS 3.3.0-13; this bug is Stop using deprecated fgetss() function · Issue #7935 · pkp/pkp-lib · GitHub, which was fixed and released in OJS 3.3.0-11.

Regards,
Alec Smecher
Public Knowledge Project Team

Thanks @asmecher ,
You pointed me in the right direction. Long story short, this was a git submodule mishap on our part. Apparently, running git submodule update --init --recursive did not fetch and merge the upstream changes to the submodules as expected. After running git submodule update --remote --merge it seems the new lib/pkp code is there.

Thanks a ton for the prompt reply.

Hi @pbuss,

Glad it’s resolved – submodules aren’t on the whole a widely-used feature of Git and are a notorious source of confusion!

Regards,
Alec Smecher
Public Knowledge Project Team

This topic was automatically closed after 12 days. New replies are no longer allowed.