0

我遇到了作为 OJS 管理员看到的问题,我没有必要的权限来观看插件选项卡。警报的确切措辞是“当前角色无权访问此操作”。

否则 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,并在 openssl.cafile 的 php.ini 中注册。

我该如何解决这个问题?

4

1 回答 1

1

这是 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) 的稳定分支包含此功能,并且可以稳定地在生产环境中运行,如果这对您来说是一个不错的选择的话。

于 2019-01-25T17:26:19.717 回答