PHP Fatal error: Uncaught Error: Call to undefined function fgetss()

I upgrade from PHP 7.4 to PHP 8.0 (I use OJS 3.3.0.6). When I upload any file, the log file shows this message:
PHP Fatal error: Uncaught Error: Call to undefined function fgetss() lib/pkp/classes/search/SearchHTMLParser.inc.php

The screen do not do anything, but when I refresh the page the file is uploaded.

I searched for a solution, and the problem it is that function fgetss() is deprecated on PHP 8.0. Is there any solution for this? I couldn’t downgrade the PHP version because of a server standard of my institution.

Thanks,

Hi @Alexa_Ramirez,

I’ve filed this for attention here:

Watch for a patch to appear there with changes that resolve the problem.

Thanks for reporting!
Regards,
Alec Smecher
Public Knowledge Project Team

1 Like

Thanks for the quick response. The problem is solved applying the patch.

Regards.

1 Like

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