OJS 3.1.0: Issue with "Citation Style Language" plugin

Hi @asmecher,
Thank you for your answer. I’ve changed permissions to every directory and file in cache directory but still not working and not keeping settings selected.

May it be possible any problem with database tables for this plugin? Apparently it is saving settings on it:
19

if I change settings on the plugin, this change is done on the database:
54

But it is not working on the articles page: Political Communication and Social Change. Political Communication and Challenges in the Digital Age | Revista ICONO14 Revista científica de Comunicación y Tecnologías emergentes

Any clue?
Thanks!

Daniel
ICONO14

This issue was fixed in 3.1.1: [OJS 3.1.0-1] Settings for “CSL” plugin not saved/displayed properly · Issue #3222 · pkp/pkp-lib · GitHub

Hello, I also have problem with this plugin. OJS version is 3.1.1.1, php version 5.6.37. In English and Russian it works normally. But in Azerbaijan language i got these errors:

[Mon Aug 20 20:13:59.812246 2018] [cgi:error] [pid 6381] [client 158.181.40.30:54206] AH01215: PHP Fatal error: Uncaught exception ‘Seboettg\CiteProc\Exception\ClassNotFoundException’ with message ‘Class “Seboettg\CiteProc\Constraint\isNumeric” could not be found.’ in /var/www/ejcs/data/www/sportsciencejournal.org/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/Factory.php:41, referer: http://www.sportsciencejournal.org/index.php/ssj/index
[Mon Aug 20 20:13:59.812310 2018] [cgi:error] [pid 6381] [client 158.181.40.30:54206] AH01215: Stack trace:, referer: http://www.sportsciencejournal.org/index.php/ssj/index
[Mon Aug 20 20:13:59.812487 2018] [cgi:error] [pid 6381] [client 158.181.40.30:54206] AH01215: #0 /var/www/ejcs/data/www/sportsciencejournal.org/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Choose/ChooseIf.php(69): Seboettg\CiteProc\Constraint\Factory::createConstraint(‘is-numeric’, ‘edition’), referer: http://www.sportsciencejournal.org/index.php/ssj/index
[Mon Aug 20 20:13:59.812674 2018] [cgi:error] [pid 6381] [client 158.181.40.30:54206] AH01215: #1 /var/www/ejcs/data/www/sportsciencejournal.org/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Choose/Choose.php(47): Seboettg\CiteProc\Rendering\Choose\ChooseIf->__construct(Object(SimpleXMLElement), Object(Seboettg\CiteProc\Rendering\Choose\Choose)), referer: http://www.sportsciencejournal.org/index.php/ssj/index
[Mon Aug 20 20:13:59.812852 2018] [cgi:error] [pid 6381] [client 158.181.40.30:54206] AH01215: #2 /var/www/ejcs/data/www/sportsciencejournal.org/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php in /var/www/ejcs/data/www/sportsciencejournal.org/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Constraint/Factory.php on line 41, referer: http://www.sportsciencejournal.org/index.php/ssj/index

We use OJS 3.1.1.2 and we have this issue I had to disable the plugin to remove this error, The Log find of the server is talking about missing a local file, please see

AH01071: Got error ‘PHP message: PHP Warning: file_get_contents(/var/www/vhosts/iqsbms.org/journals.iqsbms.org/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/…/…/citation-style-language/locales/locales-ar-IQ.xml): failed to open stream: No such file or directory in /var/www/vhosts/iqsbms.org/journals.iqsbms.org/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/StyleSheet.php on line 49\nPHP message: PHP Fatal error: Uncaught exception ‘Exception’ with message ‘String could not be parsed as XML’ in /var/www/vhosts/iqsbms.org/journals.iqsbms.org/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Locale/Locale.php:48\nStack trace:\n#0 /var/www/vhosts/iqsbms.org/journals.iqsbms.org/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Locale/Locale.php(48): SimpleXMLElement->__construct(’’)\n#1 /var/www/vhosts/iqsbms.org/journals.iqsbms.org/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/CiteProc.php(200): Seboettg\CiteProc\Locale\Locale->__construct(‘ar-IQ’)\n#2 /var/www/vhosts/iqsbms.org/journals.iqsbms.org/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/CiteProc.php(160): Seboettg\CiteProc\CiteProc->init(false)\n#3 /var/www/vhosts/iqsbms.org/journals.iqsbms.org/plugins/generic/citationStyleLanguage/CitationStyleLanguagePlugi…\n’, referer: https://journals.iqsbms.org/index.php/iqasj/index

Hi @Dilan_Rostam,

See Fix citation style language plugin where locales don't exist · Issue #3833 · pkp/pkp-lib · GitHub for a patch to correct this. (This will be released with the next OJS package.)

Regards,
Alec Smecher
Public Knowledge Project Team

Sorry my limited knowledge on this, how do I do the patch on this particular issue, please?

Hi @asmecher,
We still seem to have these errors in our PHP-log:

[Mon Oct 08 15:35:29.735894 2018] [:error] [pid 15375] [client ..**] PHP Fatal error: Uncaught exception ‘Seboettg\CiteProc\Exception\CiteProcException’ with message ‘Illegal argument. Name has no family name.’ in /var/www/ojs-3.1.1-4/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/NameHelper.php:115\nStack trace:\n#0 /var/www/ojs-3.1.1-4/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Name/Name.php(521): Seboettg\CiteProc\Util\NameHelper::normalizeName(Object(stdClass))\n#1 /var/www/ojs-3.1.1-4/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Name/Name.php(202): Seboettg\CiteProc\Rendering\Name\Name->nameOrder(Object(stdClass), 0)\n#2 /var/www/ojs-3.1.1-4/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Rendering/Name/Name.php(184): Seboettg\CiteProc\Rendering\Name\Name->getNamesString(Object(stdClass), 0)\n#3 /var/www/ojs-3.1.1-4/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-p in /var/www/ojs-3.1.1-4/plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/NameHelper.php on line 115

Hi @Ph_We,

That suggests that you have an author record with an empty last_name column. That should be prevented by the UI but perhaps the data got in via an older copy of OJS or an import process of some kind. I’d suggest checking that all authors have last names specified.

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like