Hi
I wanted to set up the defaultManuscript but face the following problem (ojs 3.2.03).
[09-May-2020 10:47:50 Europe/Istanbul] PHP Warning: fsockopen(): SSL: Handshake timed out in /home/journalp/public_html/lib/pkp/classes/file/wrappers/HTTPFileWrapper.inc.php on line 77
[09-May-2020 10:47:50 Europe/Istanbul] PHP Warning: fsockopen(): Failed to enable crypto in /home/journalp/public_html/lib/pkp/classes/file/wrappers/HTTPFileWrapper.inc.php on line 77
[09-May-2020 10:47:50 Europe/Istanbul] PHP Warning: fsockopen(): unable to connect to ssl://pkp.sfu.ca:443 (Unknown error) in /home/journalp/public_html/lib/pkp/classes/file/wrappers/HTTPFileWrapper.inc.php on line 77
[09-May-2020 10:47:50 Europe/Istanbul] PHP Warning: DOMDocument::loadXML(): Empty string supplied as input in /home/journalp/public_html/lib/pkp/classes/plugins/PluginGalleryDAO.inc.php on line 57
[09-May-2020 10:47:52 Europe/Istanbul] PHP Notice: Undefined property: stdClass::$lastModified in /home/journalp/public_html/lib/pkp/classes/db/SchemaDAO.inc.php on line 235
[09-May-2020 10:47:52 Europe/Istanbul] PHP Notice: Trying to get property ‘type’ of non-object in /home/journalp/public_html/lib/pkp/classes/db/SchemaDAO.inc.php on line 235
[09-May-2020 10:48:00 Europe/Istanbul] PHP Warning: assert(): assert(is_a($issue, ‘Issue’)) failed in /home/journalp/public_html/classes/issue/IssueAction.inc.php on line 29
[09-May-2020 10:48:00 Europe/Istanbul] PHP Fatal error: Uncaught Error: Call to a member function getJournalId() on null in /home/journalp/public_html/classes/issue/IssueAction.inc.php:31
Stack trace: #0 /home/journalp/public_html/classes/search/ArticleSearch.inc.php(274): IssueAction->subscriptionRequired(NULL, Object(Journal)) #1 /home/journalp/public_html/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php(137): ArticleSearch->formatResults(Array) #2 /home/journalp/public_html/lib/pkp/classes/plugins/HookRegistry.inc.php(107): RecommendByAuthorPlugin->callbackTemplateArticlePageFooter(‘Templates::Arti…’, Array) #3 /home/journalp/public_html/lib/pkp/classes/template/PKPTemplateManager.inc.php(1237): HookRegistry::call(‘Templates::Arti…’, Array) #4 /home/journalp/public_html/cache/t_compile/a4fc84a2d9d2a85c011fcc528f09577e88e2fcff^1c372c95cd85572e0fbc9a53d0323a0b229cfc78_0.app.frontendpagesarticle.tpl.php(43): PKPTemplateManager->smartyCallHook(Array, Object(Smarty_Internal_Template)) #5 /home/journalp/public_html/lib/pkp/lib/vendor/smarty/smart in /home/journalp/public_html/classes/issue/IssueAction.inc.php on line 31
There are at least two problems here. The first is identified by these messages:
[09-May-2020 10:47:50 Europe/Istanbul] PHP Warning: fsockopen(): SSL: Handshake timed out in /home/journalp/public_html/lib/pkp/classes/file/wrappers/HTTPFileWrapper.inc.php on line 77
[09-May-2020 10:47:50 Europe/Istanbul] PHP Warning: fsockopen(): Failed to enable crypto in /home/journalp/public_html/lib/pkp/classes/file/wrappers/HTTPFileWrapper.inc.php on line 77
[09-May-2020 10:47:50 Europe/Istanbul] PHP Warning: fsockopen(): unable to connect to ssl://pkp.sfu.ca:443 (Unknown error) in /home/journalp/public_html/lib/pkp/classes/file/wrappers/HTTPFileWrapper.inc.php on line 77
[09-May-2020 10:47:50 Europe/Istanbul] PHP Warning: DOMDocument::loadXML(): Empty string supplied as input in /home/journalp/public_html/lib/pkp/classes/plugins/PluginGalleryDAO.inc.php on line 57
This indicates that your system was unable to contact the PKP server to fetch the list of plugins available in the Plugin Gallery. If your server is behind a proxy, make sure it’s configured in config.inc.php.
The second issue is indicated by these messages:
[09-May-2020 10:48:00 Europe/Istanbul] PHP Fatal error: Uncaught Error: Call to a member function getJournalId() on null in /home/journalp/public_html/classes/issue/IssueAction.inc.php:31
Stack trace:
#0 /home/journalp/public_html/classes/search/ArticleSearch.inc.php(274): IssueAction->subscriptionRequired(NULL, Object(Journal))
#1 /home/journalp/public_html/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php(137): ArticleSearch->formatResults(Array)
#2 /home/journalp/public_html/lib/pkp/classes/plugins/HookRegistry.inc.php(107): RecommendByAuthorPlugin->callbackTemplateArticlePageFooter(‘Templates::Arti…’, Array)
#3 /home/journalp/public_html/lib/pkp/classes/template/PKPTemplateManager.inc.php(1237): HookRegistry::call(‘Templates::Arti…’, Array)
#4 /home/journalp/public_html/cache/t_compile/a4fc84a2d9d2a85c011fcc528f09577e88e2fcff^1c372c95cd85572e0fbc9a53d0323a0b229cfc78_0.app.frontendpagesarticle.tpl.php(43): PKPTemplateManager->smartyCallHook(Array, Object(Smarty_Internal_Template))
#5 /home/journalp/public_html/lib/pkp/lib/vendor/smarty/smart in /home/journalp/public_html/classes/issue/IssueAction.inc.php on line 31
For the problem in ReviewAssignment.inc.php, can you include the full error message?
For the problem with defaultManuscript, it appears from the screenshots that the page is unstyled. Is this the basic problem you’re encountering? If so, what version of the plugin are you using, and how did you install it?
Regards,
Alec Smecher
Public Knowledge Project Team
Uploading the plugin files manually won’t register the plugin properly with OJS. The ways to properly install a plugin are
via the Plugin Gallery; this is the best way, as it’ll automatically make sure you’re installing the right version.
via the “Upload a New Plugin” tool, available to Site Administrators in the journal’s plugin settings area. Warning: you’ll need to make sure the plugin is compatible with your release of OJS, or it may break things!
if all else fails, by uploading the plugin manually (e.g. via FTP) and running on the server:
The tar setting of /bin/tar looks OK to me, though of course /bin/tar needs to exist in your server and PHP has to be allowed to execute it. (Sometimes exec is disabled, and some PHP settings like open_basedir might prevent OJS from executing things there.)
Are the file permissions in plugins subdirectories (e.g. plugins/generic) sufficient to allow OJS to create files/directories there?
Regards,
Alec Smecher
Public Knowledge Project Team
The numeric permissions (e.g. 755) may not be enough, depending on your server setup. There are additional concerns like file ownership. It’s hard for us to give specific instructions because it’s dependent on your server configuration. See How should file permissions be set? for some details.
Regards,
Alec Smecher
Public Knowledge Project Team
[14-May-2020 00:15:08 Europe/Istanbul] PHP Warning: exec() has been disabled for security reasons in /home/journalp/public_html/lib/pkp/classes/plugins/PluginHelper.inc.php on line 67
This is what I was mentioning above. Your server administrator has disabled a function that OJS needs in order to install plugins (among other purposes); I’d suggest asking them to enable it.
Regards,
Alec Smecher
Public Knowledge Project Team