OJS-3.3.0-14
PHP-8.1
The error below occurred while submitting the DOI to Crossref, and the HTTP ERROR 500
screen appeared. It was working after refreshing the page.
PHP Fatal error: Uncaught TypeError: fclose(): Argument #1 ($stream) must be of type resource, bool given in /EPUB/ojs/lib/pkp/classes/file/FileManager.inc.php:163
Stack trace:
#0 /EPUB/ojs/lib/pkp/classes/file/FileManager.inc.php(163): fclose()
#1 /EPUB/ojs/plugins/importexport/crossref/CrossRefExportPlugin.inc.php(219): FileManager->writeFile()
#2 /EPUB/ojs/classes/plugins/PubObjectsExportPlugin.inc.php(171): CrossRefExportPlugin->executeExportAction()
#3 /EPUB/ojs/classes/plugins/DOIPubIdExportPlugin.inc.php(29): PubObjectsExportPlugin->display()
#4 /EPUB/ojs/lib/pkp/pages/management/PKPToolsHandler.inc.php(94): DOIPubIdExportPlugin->display()
#5 /EPUB/ojs/lib/pkp/classes/core/PKPRouter.inc.php(395): PKPToolsHandler->importexport()
#6 /EPUB/ojs/lib/pkp/classes/core/PKPPageRouter.inc.php(246): PKPRouter->_authorizeInitializeAndCallRequest()
#7 /EPUB/ojs/lib/pkp/classes/core/Dispatcher.inc.php(144): PKPPageRouter->route()
#8 /EPUB/ojs/lib/pkp/classes/core/PKPApplication.inc.php(362): Dispatcher->dispatch()
#9 /EPUB/ojs/index.php(68): PKPApplication->execute()
#10 {main}
thrown in /EPUB/ojs/lib/pkp/classes/file/FileManager.inc.php on line 163