OJS 3.1.2 makes template API changes which are known to break third-party plugins. I’ve published a new release of the plumAnalytics plugin which should be compatible with OJS 3.1.1 and OJS 3.1.2:
https://github.com/ulsdevteam/ojs-plum-plugin/releases/tag/v.1.3.0-0
Perfect! Thanks for the update.
Try to insert next code in / templates / frontend / object /Article_detail.tpl)
Then paste the following code on line 256 or other line, depend where you want to display widget
<script type="text/javascript" src="//cdn.plu.mx/widget-popup.js"></script>
<a href="https://plu.mx/plum/a/?doi={$pubId}" class="plumx-plum-print-popup"></a
More information at PlumX - Widgets
The manual entry of this code should not be necessary with the plugin. I’m still very interested in understanding why you are not seeing results with the normal plugin usage, if you are still interested in troubleshooting this.
Dear @ctgraham
I am ready to assist you. I agree that it is much easier to install it via plugin. But, I did it many times but cannot solve the problem. Also, I tried to install above plugin and now have problem. In backhand cannot open tab plugin. In error.log receive next errors>
[25-Apr-2019 18:01:08 Europe/Belgrade] PHP Warning: file_exists(): open_basedir restriction in effect. File(plugins/blocks/mostRead.tar.gz/index.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/cpanel/base/3rdparty) in /home/ijcadsee/public_html/lib/pkp/classes/plugins/PluginRegistry.inc.php on line 229
[25-Apr-2019 18:01:08 Europe/Belgrade] PHP Warning: file_exists(): open_basedir restriction in effect. File(plugins/blocks/mostRead.tar.gz/MostRead.tar.gzBlocksPlugin.inc.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/cpanel/base/3rdparty) in /home/ijcadsee/public_html/lib/pkp/classes/plugins/PluginRegistry.inc.php on line 238
[25-Apr-2019 18:01:08 Europe/Belgrade] PHP Warning: file_exists(): open_basedir restriction in effect. File(plugins/blocks/._mostRead/index.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/cpanel/base/3rdparty) in /home/ijcadsee/public_html/lib/pkp/classes/plugins/PluginRegistry.inc.php on line 229
[25-Apr-2019 18:01:08 Europe/Belgrade] PHP Warning: file_exists(): open_basedir restriction in effect. File(plugins/blocks/._mostRead/._mostReadBlocksPlugin.inc.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/cpanel/base/3rdparty) in /home/ijcadsee/public_html/lib/pkp/classes/plugins/PluginRegistry.inc.php on line 238
[25-Apr-2019 18:01:15 Europe/Belgrade] PHP Warning: file_exists(): open_basedir restriction in effect. File(plugins/blocks/mostRead.tar.gz/index.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/cpanel/base/3rdparty) in /home/ijcadsee/public_html/lib/pkp/classes/plugins/PluginRegistry.inc.php on line 229
[25-Apr-2019 18:01:15 Europe/Belgrade] PHP Warning: file_exists(): open_basedir restriction in effect. File(plugins/blocks/mostRead.tar.gz/MostRead.tar.gzBlocksPlugin.inc.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/cpanel/base/3rdparty) in /home/ijcadsee/public_html/lib/pkp/classes/plugins/PluginRegistry.inc.php on line 238
[25-Apr-2019 18:01:15 Europe/Belgrade] PHP Warning: file_exists(): open_basedir restriction in effect. File(plugins/blocks/._mostRead/index.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/cpanel/base/3rdparty) in /home/ijcadsee/public_html/lib/pkp/classes/plugins/PluginRegistry.inc.php on line 229
[25-Apr-2019 18:01:15 Europe/Belgrade] PHP Warning: file_exists(): open_basedir restriction in effect. File(plugins/blocks/._mostRead/._mostReadBlocksPlugin.inc.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/cpanel/base/3rdparty) in /home/ijcadsee/public_html/lib/pkp/classes/plugins/PluginRegistry.inc.php on line 238
[25-Apr-2019 18:01:16 Europe/Belgrade] PHP Warning: file_exists(): open_basedir restriction in effect. File(plugins/generic/forthcoming-master.zip/index.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/cpanel/base/3rdparty) in /home/ijcadsee/public_html/lib/pkp/classes/plugins/PluginRegistry.inc.php on line 229
[25-Apr-2019 18:01:16 Europe/Belgrade] PHP Warning: file_exists(): open_basedir restriction in effect. File(plugins/generic/forthcoming-master.zip/Forthcoming-master.zipGenericPlugin.inc.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/cpanel/base/3rdparty) in /home/ijcadsee/public_html/lib/pkp/classes/plugins/PluginRegistry.inc.php on line 238
[25-Apr-2019 18:01:16 Europe/Belgrade] PHP Warning: file_exists(): open_basedir restriction in effect. File(plugins/generic/lens-2.0.0.zip/index.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/cpanel/base/3rdparty) in /home/ijcadsee/public_html/lib/pkp/classes/plugins/PluginRegistry.inc.php on line 229
[25-Apr-2019 18:01:16 Europe/Belgrade] PHP Warning: file_exists(): open_basedir restriction in effect. File(plugins/generic/lens-2.0.0.zip/Lens-2.0.0.zipGenericPlugin.inc.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/cpanel/base/3rdparty) in /home/ijcadsee/public_html/lib/pkp/classes/plugins/PluginRegistry.inc.php on line 238
[25-Apr-2019 18:01:16 Europe/Belgrade] PHP Warning: file_exists(): open_basedir restriction in effect. File(plugins/generic/ALM-master.zip/index.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/cpanel/base/3rdparty) in /home/ijcadsee/public_html/lib/pkp/classes/plugins/PluginRegistry.inc.php on line 229
[25-Apr-2019 18:01:16 Europe/Belgrade] PHP Warning: file_exists(): open_basedir restriction in effect. File(plugins/generic/ALM-master.zip/ALM-master.zipGenericPlugin.inc.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/cpanel/base/3rdparty) in /home/ijcadsee/public_html/lib/pkp/classes/plugins/PluginRegistry.inc.php on line 238
[25-Apr-2019 18:01:16 Europe/Belgrade] PHP Warning: file_exists(): open_basedir restriction in effect. File(plugins/generic/index.html/index.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/cpanel/base/3rdparty) in /home/ijcadsee/public_html/lib/pkp/classes/plugins/PluginRegistry.inc.php on line 229
[25-Apr-2019 18:01:16 Europe/Belgrade] PHP Warning: file_exists(): open_basedir restriction in effect. File(plugins/generic/index.html/Index.htmlGenericPlugin.inc.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/cpanel/base/3rdparty) in /home/ijcadsee/public_html/lib/pkp/classes/plugins/PluginRegistry.inc.php on line 238
[25-Apr-2019 18:01:16 Europe/Belgrade] PHP Warning: file_exists(): open_basedir restriction in effect. File(plugins/generic/lens.css/index.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/cpanel/base/3rdparty) in /home/ijcadsee/public_html/lib/pkp/classes/plugins/PluginRegistry.inc.php on line 229
[25-Apr-2019 18:01:16 Europe/Belgrade] PHP Warning: file_exists(): open_basedir restriction in effect. File(plugins/generic/lens.css/Lens.cssGenericPlugin.inc.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/cpanel/base/3rdparty) in /home/ijcadsee/public_html/lib/pkp/classes/plugins/PluginRegistry.inc.php on line 238
[25-Apr-2019 18:01:16 Europe/Belgrade] PHP Warning: file_exists(): open_basedir restriction in effect. File(plugins/generic/customHeader-master.zip/index.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/cpanel/base/3rdparty) in /home/ijcadsee/public_html/lib/pkp/classes/plugins/PluginRegistry.inc.php on line 229
[25-Apr-2019 18:01:16 Europe/Belgrade] PHP Warning: file_exists(): open_basedir restriction in effect. File(plugins/generic/customHeader-master.zip/CustomHeader-master.zipGenericPlugin.inc.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/cpanel/base/3rdparty) in /home/ijcadsee/public_html/lib/pkp/classes/plugins/PluginRegistry.inc.php on line 238
[25-Apr-2019 18:01:16 Europe/Belgrade] PHP Warning: file_exists(): open_basedir restriction in effect. File(plugins/generic/ojs-plum-plugin-master.zip/index.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/cpanel/base/3rdparty) in /home/ijcadsee/public_html/lib/pkp/classes/plugins/PluginRegistry.inc.php on line 229
[25-Apr-2019 18:01:16 Europe/Belgrade] PHP Warning: file_exists(): open_basedir restriction in effect. File(plugins/generic/ojs-plum-plugin-master.zip/Ojs-plum-plugin-master.zipGenericPlugin.inc.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/cpanel/base/3rdparty) in /home/ijcadsee/public_html/lib/pkp/classes/plugins/PluginRegistry.inc.php on line 238
[25-Apr-2019 18:01:16 Europe/Belgrade] PHP Warning: file_exists(): open_basedir restriction in effect. File(plugins/generic/lens.js/index.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/cpanel/base/3rdparty) in /home/ijcadsee/public_html/lib/pkp/classes/plugins/PluginRegistry.inc.php on line 229
[25-Apr-2019 18:01:16 Europe/Belgrade] PHP Warning: file_exists(): open_basedir restriction in effect. File(plugins/generic/lens.js/Lens.jsGenericPlugin.inc.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/cpanel/base/3rdparty) in /home/ijcadsee/public_html/lib/pkp/classes/plugins/PluginRegistry.inc.php on line 238
[25-Apr-2019 18:01:16 Europe/Belgrade] PHP Warning: file_exists(): open_basedir restriction in effect. File(plugins/generic/plumAnalytics-1.3.0.0.tar.gz/index.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/cpanel/base/3rdparty) in /home/ijcadsee/public_html/lib/pkp/classes/plugins/PluginRegistry.inc.php on line 229
[25-Apr-2019 18:01:16 Europe/Belgrade] PHP Warning: file_exists(): open_basedir restriction in effect. File(plugins/generic/plumAnalytics-1.3.0.0.tar.gz/PlumAnalytics-1.3.0.0.tar.gzGenericPlugin.inc.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/cpanel/base/3rdparty) in /home/ijcadsee/public_html/lib/pkp/classes/plugins/PluginRegistry.inc.php on line 238
[25-Apr-2019 18:01:16 Europe/Belgrade] ojs2: You are trying to downgrade the product “plumAnalytics” from version [1.3.0.0] to version [1.2.1.0]. Downgrades are not supported.
Now, in tab plugins just have Loading… and nothing happened. I deleted above plugin but still nothing. Any idea from above errors? How to back tab plugins to work normaly.
Regards,
Lazar
You have some very unusual file paths listed here. For example, is there a file in your OJS installation:
- plugins/blocks/._mostRead/index.php
or - plugins/generic/forthcoming-master.zip
?
I would expect there to be a folder plugins/blocks/mostRead/
, but not the ._mostRead/
as above. Similarly I would not expect to see the forthcoming-master.zip
files in the plugins/generic/
directory, but would expect to see a forthcoming/
directory.
OK. I clear all that. The plugin mostRead doesn`t work but it is not topic for here. I installed again plumAnalytics-1.3.0.0.tar.gz and now have only one error>
[25-Apr-2019 20:00:32 Europe/Belgrade] PHP Warning: file_exists(): open_basedir restriction in effect. File(plugins/generic/plumAnalytics-1.3.0.0.tar.gz/index.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/cpanel/base/3rdparty) in /home/ijcadsee/public_html/lib/pkp/classes/plugins/PluginRegistry.inc.php on line 229
[25-Apr-2019 20:00:32 Europe/Belgrade] PHP Warning: file_exists(): open_basedir restriction in effect. File(plugins/generic/plumAnalytics-1.3.0.0.tar.gz/PlumAnalytics-1.3.0.0.tar.gzGenericPlugin.inc.php) is not within the allowed path(s): (/home/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/cpanel/base/3rdparty) in /home/ijcadsee/public_html/lib/pkp/classes/plugins/PluginRegistry.inc.php on line 238
Beside code which I added and use, I am willing to use this plugin and to remove the code.
Yep. Now is working. Everything is fine. Thanks.
Was the solution simply to remove the unexpected files and folders in the plugins directory, or did you need to make other changes?
Yes. I removed all unexpected files and folders which error.log presented and Plumx start working. I removed code from Article_detail.tpl.
How Plumx Print Widget work? Does Widget use DOI or title for detecting citation? I asking because under one issue some article has Widget but some of them doesn`t. It is OK to present “No metric available”, but the Widget is not presented in some article.
The widget uses the DOI to query PlumX for metrics. PlumX uses the DOI and other identifiers to gather metrics from the public web.
If an article does not have a DOI, the widget will not display at all.
If an article does have a DOI, the widget can be configured to be shown or to be hidden when PlumX does not have metrics for that DOI.
Thanks @ctgraham . I am little confused. In same cases PlumX present “No metric available” and that is OK, but in other articles is invisible. DOI is active via CrossRef but somewhere is missing and somewhere present “No metric available”. Why on some article present “No metric available” (that is understandable) and on other article PlumX missing, without info No metric available? In option for this plugin field “Hide When Empty” is not checked.
Can you share a link to an example?
Of course. Here is link of one article American gangster: Black Godfather as a socio-cultural contradiction | Issues in Ethnology and Anthropology and in the same issue you will find article with Widgets and other article doesn`t have Widget.
I confirmed that the PlumX Artifact Widget will display data for that DOI. Does the plugin work for other articles within this same journal, or does it only work in other journals?
In other journals I didn`t see mistakes, for now. In the same journal Widget works, you can check if you list other articles.
In the American gangster article, the Plum Analytics anchor is being placed in the HTML, but the Plum Analytics javascript is not.
In another article where the widget displays, the javascript is present, just after the div#articlesBySameAuthorList
.
The most likely explanation for the discrepancy would be for another plugin to be terminating processing on the hook Templates::Article::Footer::PageFooter
for one article, but not for the other. Since nothing else is output in that section, it is hard to guess what might be the cause (or if that explanation is valid). Earlier, we also reviewed the list of generic plugins which seisense had installed, without finding a potential culprit.
How comfortable are you with making PHP changes to try to troubleshoot this? Do you have a development copy of the site?
No. I just started with this version and try to understand what previously colleague did. I have got access to cPanel and all data. Do you need something precisely to present?
I am specifically interested in what plugins are calling the Templates::Article::Footer::PageFooter
hook. To discover this, I would either:
- In a development system, disable all Generic Plugins, re-enabling them one-by-one. Starting with Plum Analytics, if the widget shows on American gangster, then keep enabling until the widget disappears.
- In either development or production, add a line to record the calling plugins to the error log at the
Templates::Article::Footer::PageFooter
hook. Between lines 98 and 99:
Adding something like:
if ($hookName === 'Templates::Article::Footer::PageFooter') {
error_log('Calling hooks: '.(isset($hooks[$hookName]) ? var_export($hooks[$hookName], true) : 'empty!' ));
}