OJS 3.1.0: Issue with "Citation Style Language" plugin

Hi,
I installed the 3.1.0 version, all is fine except when I activate the “Citation Style Language” plugin, I can no more display the page containing the article (title, abstract, etc). When I deactivate it, everything works again. I am getting this error:

PHP Fatal error: Arrays are not allowed in class constants in /plugins/generic/citationStyleLanguage/lib/vendor/seboettg/citeproc-php/src/Seboettg/CiteProc/Util/StringHelper.php on line 27
Thank you for your help!
Best regards,
Said

Hi Said,

What version of PHP are you using?

Thanks,
Amanda Stevens
Public Knowledge Project Team

Hi Amanda,
I am using:
OS platform Linux
PHP version 5.5.30
Apache version Apache/2.2.31 (Unix) mod_ssl/2.2.31 OpenSSL/1.0.1e-fips DAV/2 mod_bwlimited/1.4 PHP/5.5.30
Database driver mysql
Database server version 5.6.37

I also use bootstrap3.
Thank you.
Said

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