Problem with enable citation plugin

Hi all, I have problem when enable the citation language plugin , when open the artical page I got internal server error 500.

Ojs : 3.1 fresh installation
Php : 7 and test on 5.6 also same problem

Please if any help form me

48 PM

when open the article I got this :

00 PM

Hi @Mix

Do you see any errors in your error log file or browser development tools?

Best,
Bozana

Hi @bozana ,
log 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 :

[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 :

Hi @Mix

Hmmm… Could it be that (one of) your author(s) does not have the last name i.e. that it is missing?

Best,
Bozana

@bozana , yep author is same as admin for testing purpose and add the middle and last name
but still not working.

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

Thanks

Hi @Mix

That is OK – in OJS 3.0.2 another module was used for citations, in OJS 3.1 a new library is used and the last name seems to be required for it to work properly. The author last name is also required in OJS article metadata, so they should be there in normal cases.
So I think the correct solution is for you to fix the missing last name, or @NateWr?

Thanks!
Bozana

1 Like

@bozana thanks you’re brilliant man :+1: worked with me.

hi i was using oj slatest version 3.1.1.0, i gone through the conversation i checked the authors last name every one has last name but the sit shows HTTP ERROR 500

Hi @salman20054

Could you take a look if there is any PHP error in your server PHP error log file?

Best,
Bozana

[19-Apr-2018 08:31:39 UTC] PHP Deprecated: Non-static method Config::getContextBaseUrls() should not be called statically, assuming $this from incompatible context in /home/rubatosi/public_html/journal/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 199
[19-Apr-2018 08:31:39 UTC] PHP Warning: Smarty error: unable to read resource: "file:0/plugins/generic/usageStats/templates/outputFrontend.tpl" in /home/rubatosi/public_html/journal/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php on line 1094
[19-Apr-2018 08:31:39 UTC] PHP Deprecated: Non-static method PKPRequest::getBaseUrl() should not be called statically, assuming $this from incompatible context in /home/rubatosi/public_html/journal/lib/pkp/plugins/generic/usageStats/PKPUsageStatsPlugin.inc.php on line 436

[19-Apr-2018 08:45:05 UTC] PHP Strict Standards: Declaration of SubmissionKeywordEntryDAO::getByControlledVocabId() should be compatible with ControlledVocabEntryDAO::getByControlledVocabId($controlledVocabId, $rangeInfo = NULL, $filter = NULL) in /home/rubatosi/public_html/journal/lib/pkp/classes/submission/SubmissionKeywordEntryDAO.inc.php on line 20
[19-Apr-2018 08:45:05 UTC] PHP Fatal error: Call to undefined function Symfony\Polyfill\Mbstring\iconv() in /home/rubatosi/public_html/journal/plugins/generic/citationStyleLanguage/lib/vendor/symfony/polyfill-mbstring/Mbstring.php on line 280
[19-Apr-2018 08:46:39 UTC] PHP Strict Standards: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /home/rubatosi/public_html/journal/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 24
[19-Apr-2018 08:46:39 UTC] PHP Strict Standards: Declaration of LensGalleyPlugin::register() should be compatible with LazyLoadPlugin::register($category, $path, $mainContextId = NULL) in /home/rubatosi/public_html/journal/plugins/generic/lensGalley/LensGalleyPlugin.inc.php on line 0

Hmmm… it seems like the funtion “iconv” is not found… could you double check it, if the appropriate PHP extension is installed on your system i.e. if the function is there…

let me know how can i do it?