OJS 3.1.1.4 插件选项卡未加载

OJS 3.1.1.4 Plugins Tab doesn’t load

我遇到了作为 OJS 管理员看到的问题,我没有必要的权限来查看插件选项卡。警报的确切措辞是 "The current role does not have access to this operation."

否则 JS 控制台中不会出现错误消息。

它运行版本 3.1.1.4,它安装在 git Repo 上。

如果我查看 Apache 的错误日志,会发现以下错误:

PHP Warning:  fsockopen(): SSL operation failed with code 1. OpenSSL Error messages:\nerror:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /var/www/ojs/lib/pkp/classes/file/wrappers/HTTPFileWrapper.inc.php on line 77, referer: https://hard-times-magazine.org/index.php/Hardtimes/management/settings/website
PHP Warning:  fsockopen(): Failed to enable crypto in /var/www/ojs/lib/pkp/classes/file/wrappers/HTTPFileWrapper.inc.php on line 77, referer: https://hard-times-magazine.org/index.php/Hardtimes/management/settings/website
PHP Warning:  fsockopen(): unable to connect to ssl://pkp.sfu.ca:443 (Unknown error) in /var/www/ojs/lib/pkp/classes/file/wrappers/HTTPFileWrapper.inc.php on line 77, referer: https://hard-times-magazine.org/index.php/Hardtimes/management/settings/website
PHP Warning:  DOMDocument::loadXML(): Empty string supplied as input in /var/www/ojs/lib/pkp/classes/plugins/PluginGalleryDAO.inc.php on line 57, referer: https://hard-times-magazine.org/index.php/Hardtimes/management/settings/website

它在机器上运行 php 版本 7.2.10。

证书来自 Letsencrypt,也在 php.ini openssl.cafile 中注册。

我该如何解决这个问题?

这是 OJS 3.1.1-4 中的已知问题:

https://github.com/pkp/pkp-lib/issues/4024

...并在此提交中修复,将包含在下一个版本中:

https://github.com/pkp/pkp-lib/commit/d27ef7d08c96ad3b60c77feba4f19688d00ac284

OJS 3.1.1 的稳定分支 (ojs-stable-3_1_1) 包括这个,并且在生产中稳定到 运行,如果这对你来说是一个不错的选择。