OJS 3.1.0: Issue with "Citation Style Language" plugin

Hi Said,

Thanks for the further information and for bringing this to our attention. You will need to upgrade to at least PHP 5.6 for that plugin to work with OJS 3.1. We are updating the system requirements and download page to indicate that.

Best,
Amanda Stevens
Public Knowledge Project Team

1 Like

Hi Amanda,
I upgraded to PHP 5.6, it works now! Thank you very much!
Best,
Said

Hi @Mix,

What is the specific error you’re getting?

Thanks,
Amanda Stevens
Public Knowledge Project Team

Hi @astevens

php log error before enable the citation style language is :

[Mon Nov 06 18:43:26.326117 2017] [ssl:warn] [pid 5244:tid 132] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Nov 06 18:43:26.357317 2017] [core:warn] [pid 5244:tid 132] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten – Unclean shutdown of previous Apache run?
[Mon Nov 06 18:43:26.450917 2017] [ssl:warn] [pid 5244:tid 132] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Nov 06 18:43:26.466517 2017] [mpm_winnt:notice] [pid 5244:tid 132] AH00455: Apache/2.4.28 (Win32) OpenSSL/1.0.2l PHP/7.1.10 configured – resuming normal operations
[Mon Nov 06 18:43:26.466517 2017] [mpm_winnt:notice] [pid 5244:tid 132] AH00456: Apache Lounge VC14 Server built: Oct 4 2017 11:36:32
[Mon Nov 06 18:43:26.466517 2017] [core:notice] [pid 5244:tid 132] AH00094: Command line: ‘c:\xampp\apache\bin\httpd.exe -d C:/xampp/apache’
[Mon Nov 06 18:43:26.482117 2017] [mpm_winnt:notice] [pid 5244:tid 132] AH00418: Parent: Created child process 5276
[Mon Nov 06 18:43:26.934518 2017] [ssl:warn] [pid 5276:tid 144] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Nov 06 18:43:27.059318 2017] [ssl:warn] [pid 5276:tid 144] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Nov 06 18:43:27.090518 2017] [mpm_winnt:notice] [pid 5276:tid 144] AH00354: Child: Starting 150 worker threads.

after enable this plugin then the log file is :slight_smile:

[Mon Nov 06 18:43:38.742842 2017] [php7:warn] [pid 5276:tid 1596] [client ::1:49225] PHP Warning: Declaration of ArticleHandler::initialize($request, $args) should be compatible with PKPHandler::initialize($request) in C:\xampp\htdocs\ojs\pages\article\ArticleHandler.inc.php on line 389, referer: http://localhost/ojs/index.php/ABCD/
[Mon Nov 06 18:43:38.770844 2017] [php7:warn] [pid 5276:tid 1592] [client ::1:49226] PHP Warning: Declaration of ArticleHandler::initialize($request, $args) should be compatible with PKPHandler::initialize($request) in C:\xampp\htdocs\ojs\pages\article\ArticleHandler.inc.php on line 389, referer: http://localhost/ojs/index.php/ABCD/
[Mon Nov 06 18:43:39.020858 2017] [php7:warn] [pid 5276:tid 1592] [client ::1:49226] PHP Warning: Declaration of SubmissionKeywordEntryDAO::getByControlledVocabId($controlledVocabId, $rangeInfo = NULL) should be compatible with ControlledVocabEntryDAO::getByControlledVocabId($controlledVocabId, $rangeInfo = NULL, $filter = NULL) in C:\xampp\htdocs\ojs\lib\pkp\classes\submission\SubmissionKeywordEntryDAO.inc.php on line 20, referer: http://localhost/ojs/index.php/ABCD/
[Mon Nov 06 18:43:39.027859 2017] [php7:warn] [pid 5276:tid 1596] [client ::1:49225] PHP Warning: Declaration of SubmissionKeywordEntryDAO::getByControlledVocabId($controlledVocabId, $rangeInfo = NULL) should be compatible with ControlledVocabEntryDAO::getByControlledVocabId($controlledVocabId, $rangeInfo = NULL, $filter = NULL) in C:\xampp\htdocs\ojs\lib\pkp\classes\submission\SubmissionKeywordEntryDAO.inc.php on line 20, referer: http://localhost/ojs/index.php/ABCD/
[Mon Nov 06 18:43:39.097863 2017] [php7:error] [pid 5276:tid 1592] [client ::1:49226] PHP Fatal error: Uncaught Seboettg\CiteProc\Exception\CiteProcException: Illegal argument. Name has no family name. in C:\xampp\htdocs\ojs\plugins\generic\citationStyleLanguage\lib\vendor\seboettg\citeproc-php\src\Seboettg\CiteProc\Util\NameHelper.php:114\nStack trace:\n#0 C:\xampp\htdocs\ojs\plugins\generic\citationStyleLanguage\lib\vendor\seboettg\citeproc-php\src\Seboettg\CiteProc\Rendering\Name\Name.php(512): Seboettg\CiteProc\Util\NameHelper::normalizeName(Object(stdClass))\n#1 C:\xampp\htdocs\ojs\plugins\generic\citationStyleLanguage\lib\vendor\seboettg\citeproc-php\src\Seboettg\CiteProc\Rendering\Name\Name.php(194): Seboettg\CiteProc\Rendering\Name\Name->nameOrder(Object(stdClass), 0)\n#2 C:\xampp\htdocs\ojs\plugins\generic\citationStyleLanguage\lib\vendor\seboettg\citeproc-php\src\Seboettg\CiteProc\Rendering\Name\Name.php(176): Seboettg\CiteProc\Rendering\Name\Name->getNamesString(Object(stdClass), 0)\n#3 C:\xampp\htdocs\ojs\plugins\generic\citationStyleLanguage\lib\vendor\seboettg\citeproc-php\src\Seboettg\CiteProc\Render in C:\xampp\htdocs\ojs\plugins\generic\citationStyleLanguage\lib\vendor\seboettg\citeproc-php\src\Seboettg\CiteProc\Util\NameHelper.php on line 114, referer: http://localhost/ojs/index.php/ABCD/
[Mon Nov 06 18:43:39.109863 2017] [php7:error] [pid 5276:tid 1596] [client ::1:49225] PHP Fatal error: Uncaught Seboettg\CiteProc\Exception\CiteProcException: Illegal argument. Name has no family name. in C:\xampp\htdocs\ojs\plugins\generic\citationStyleLanguage\lib\vendor\seboettg\citeproc-php\src\Seboettg\CiteProc\Util\NameHelper.php:114\nStack trace:\n#0 C:\xampp\htdocs\ojs\plugins\generic\citationStyleLanguage\lib\vendor\seboettg\citeproc-php\src\Seboettg\CiteProc\Rendering\Name\Name.php(512): Seboettg\CiteProc\Util\NameHelper::normalizeName(Object(stdClass))\n#1 C:\xampp\htdocs\ojs\plugins\generic\citationStyleLanguage\lib\vendor\seboettg\citeproc-php\src\Seboettg\CiteProc\Rendering\Name\Name.php(194): Seboettg\CiteProc\Rendering\Name\Name->nameOrder(Object(stdClass), 0)\n#2 C:\xampp\htdocs\ojs\plugins\generic\citationStyleLanguage\lib\vendor\seboettg\citeproc-php\src\Seboettg\CiteProc\Rendering\Name\Name.php(176): Seboettg\CiteProc\Rendering\Name\Name->getNamesString(Object(stdClass), 0)\n#3 C:\xampp\htdocs\ojs\plugins\generic\citationStyleLanguage\lib\vendor\seboettg\citeproc-php\src\Seboettg\CiteProc\Render in C:\xampp\htdocs\ojs\plugins\generic\citationStyleLanguage\lib\vendor\seboettg\citeproc-php\src\Seboettg\CiteProc\Util\NameHelper.php on line 114, referer: http://localhost/ojs/index.php/ABCD/

And in the browser is shown :
aaaaa

Hi @astevens

This case is :

in ojs 3.0.2 is work correctly
in ojs 3.1 not working , error 500

Hi @Mix,

I see that you’ve already posted this question on the forum and are receiving help. Please don’t post duplicate questions.

Thanks,
Amanda Stevens
Public Knowledge Project Team

Hi Amanda,It’s not me, I didn’t post anything recently.Best regardsSaid

-------- Message d’origine --------De : Amanda Stevens pkp@forum.pkp.sfu.ca Date : 06/11/2017 21:56 (GMT+01:00) À : said.zouhdi@supelec.fr Objet : [PKP Community Forum] OJS 3.1.0: Issue with “Citation Style Language”
plugin

    astevens
    

    November 6

Hi @Mix,
I see that you’ve already posted this question on the forum and are receiving help. Please don’t post duplicate questions.
Thanks,

Amanda Stevens

Public Knowledge Project Team

Visit Topic or reply to this email to respond.

  In Reply To
  


  
    
  
  
    Mix
    

    November 6

Hi @astevens
This case is :

in ojs 3.0.2 is work correctly
in ojs 3.1 not working , error 500

Visit Topic or reply to this email to respond.

To unsubscribe from these emails, click here.

Hi @astevens and @saidou so sorry i am created it in wrong way and can’t delete it,

I apologize again.

Thanks

It’s okay, @mix, and it’s no problem that your post is still in this thread. I just wanted to let you know for the future.

Best,
Amanda Stevens
Public Knowledge Project Team

Hello, we also have a problem with this plugin. Several styles are not supported (the result is a blank field), APA in particular, which is the most important for us. Any ideas how this can be solved?

Hi @wpr,

Are there any messages in your error log?

Best,
Amanda Stevens
Public Knowledge Project Team

Thank you for your reply, Amanda. Could you please let me know where to look for an error log?

Best,
Yaroslav

Hi @wpr,

The location of your PHP error log will depend on your hosting provider’s configuration, but usually it’s a file called error_log somewhere within your account.

Best,
Amanda Stevens
Public Knowledge Project Team

You need to update the php version

sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get -y install php5.6 php5.6-mcrypt php5.6-mbstring php5.6-curl php5.6-cli php5.6-mysql php5.6-gd php5.6-intl php5.6-xsl php5.6-zip

sudo a2dismod php5
sudo a2enmod php5.6
sudo service apache2 restart

Hello,
In our case Citation Style Language plugin is not showing up, and also settings seems have no effect at all. When I try to set up the plugin it shows a success message but if open back the settings it is all blank again.
imagen

In ojs 3.0.2 it worked correctly
In ojs 3.1 not showing, but no error

There are no errors in the PHP log but there is a warning about it:

PHP Warning: Declaration of CitationStyleLanguageSettingsForm::fetch($request) should be compatible with Form::fetch($request, $template = NULL, $display = false) in /xxx/ojs/plugins/generic/citationStyleLanguage/CitationStyleLanguageSettingsForm.inc.php on line 131

We have upgraded PHP version to 7.1:

Server Information
OJS version: 3.1
OS platform: Linux
PHP version: 7.1.16
Apache version: Apache
Database driver: mysqli
Database server version: 5.5.60-0+deb7u1-log
Article URL example: Twitter como herramienta de comunicación política en el contexto del referéndum independentista catalán: asociaciones ciudadanas frente a instituciones públicas | Revista ICONO14 Revista científica de Comunicación y Tecnologías emergentes

Has anybody the same issue?

Best,
Daniel Becerra

Hi @asmecher ,
Is this thread dead? Should I begin a new one for this?

Regards,
Daniel

Hi @celuloide,

Is it possible that file permissions in your cache directory got reset when you performed the upgrade? If settings changes don’t seem to stick, it might be that OJS doesn’t have permission to modify files there.

Regards,
Alec Smecher
Public Knowledge Project Team

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