我遇到的问题是,作为OJS Admin,我没有观看插件标签所需的权限。警报的确切措辞是“当前角色无权访问此操作。”
否则,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
它在计算机上运行7.2.10的php版本。
该证书来自Letsencrypt,并且还在openssl.cafile中的php.ini中注册。
我该如何解决问题?
答案 0 :(得分: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)包括此分支,并且如果您愿意的话,也可以在生产环境中稳定运行。