defaultManuscript problem

Hi
I wanted to set up the defaultManuscript but face the following problem (ojs 3.2.03).

image

[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

Could you please help me?

Hi @Gokmen_ARSLAN,

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

This appears to be Fatal error in RecommendByAuthor plugin · Issue #5683 · pkp/pkp-lib · GitHub but that bug was fixed and released in OJS 3.2.0-3. Are you sure you’re running 3.2.0-3?

None of these relate to the Default Manuscript plugin, however. Can you describe the problem with the theme in more detail?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @Gokmen_ARSLAN,

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

Yes, style is my basic problem. Plugin version: 1.0.3
I use OJS 3.2.03

Hi @Gokmen_ARSLAN,

How did you install the plugin?

Regards,
Alec Smecher
Public Knowledge Project Team

I used FileZilla. I also uploaded directly to file.

Hi @Gokmen_ARSLAN,

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! image
  • if all else fails, by uploading the plugin manually (e.g. via FTP) and running on the server:
    php lib/pkp/tools/installPluginVersion.php path/to/plugin/version.xml
    
    This is not recommended, though, unless you’re developing a new plugin.

Regards,
Alec Smecher
Public Knowledge Project Team

I tried and faced:
Notification
The uploaded plugin archive does not contain a folder that corresponds to the plugin name.

Hi @Gokmen_ARSLAN,

See e.g.: OJS 3.1.2 Plugin Gallery Error - Cannot Install ANY Plugin - #15 by asmecher
Also check your config.inc.php proxy settings, as recommended above.

Regards,
Alec Smecher
Public Knowledge Project Team

You mean here:

; perl (used in paracite citation parser)
perl = /usr/bin/perl

; tar (used in backup plugin, translation packaging)
tar = /bin/tar

; egrep (used in copyAccessLogFileTool)
egrep = /bin/egrep

; gzip (used in FileManager)
gzip = /bin/gzip

Hi @Gokmen_ARSLAN,

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

Hi @Gokmen_ARSLAN,

I think that’s just a list of PHP modules; that’s not related to file permissions.

Regards,
Alec Smecher
Public Knowledge Project Team

I click the file and change the permission 755
Do you mean this?

Hi @Gokmen_ARSLAN,

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

I have the following error:
in /home/journalp/public_html/lib/pkp/classes/plugins/PluginHelper.inc.php on line 67

Hi @Gokmen_ARSLAN,

That’s not a complete message; there should be more in the log.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @Gokmen_ARSLAN,

The relevant message is:

[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

I am administrator. how can I do?

Hi @Gokmen_ARSLAN,

Look for disabled_functions in your PHP configuration.

Regards,
Alec Smecher
Public Knowledge Project Team

Do ı need to change these?
; These are paths to (optional) external binaries used in
; certain plug-ins or advanced program features.

; Using full paths to the binaries is recommended.