[OJS 3.2.0.1] Error 500 in import/export part

Hi @Tiziano,

Hmm, I think the has to be something else going on that explains the articleGalley.tpl template error message. But I don’t think that’s what’s causing a 500 error in import/export. Can you pick one of the plugins, try it again, and re-check the log (omitting anything related to the Smarty error)?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,
I chose the pubmed export plugin and these are the php log error, there should be no smarty.

[Wed Apr 01 02:23:10.886340 2020] [php7:notice] [pid 24309:tid 139659694819072] [client 10.200.225.11:44196] ojs2: 404 Not Found, referer: http://jperitoneum.org/index.php
[Wed Apr 01 02:23:11.637204 2020] [php7:notice] [pid 24309:tid 139659686426368] [client 10.200.225.11:44214] ojs2: 404 Not Found, referer: http://jperitoneum.org/index.php
[Wed Apr 01 02:23:12.370729 2020] [php7:notice] [pid 23745:tid 139659568928512] [client 10.200.225.11:44222] ojs2: 404 Not Found, referer: http://jperitoneum.org/index.php
[Wed Apr 01 04:55:53.293164 2020] [php7:notice] [pid 26050:tid 139659485099776] [client 10.200.225.11:57620] ojs2: 404 Not Found, referer: http://jperitoneum.org/index.php
[Wed Apr 01 04:55:53.964110 2020] [php7:notice] [pid 26050:tid 139659392780032] [client 10.200.225.11:57638] ojs2: 404 Not Found, referer: http://jperitoneum.org/index.php
[Wed Apr 01 04:55:54.639368 2020] [php7:notice] [pid 26051:tid 139659594106624] [client 10.200.225.11:57646] ojs2: 404 Not Found, referer: http://jperitoneum.org/index.php
[Wed Apr 01 07:09:57.342878 2020] [php7:warn] [pid 26053:tid 139659703211776] [client 10.200.225.11:51188] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/vhosts/joper/plugins/generic/googleScholar/GoogleScholarPlugin.inc.php on line 106
[Wed Apr 01 08:16:50.720268 2020] [php7:notice] [pid 26270:tid 139659644462848] [client 10.200.225.11:34748] ojs2: 404 Not Found, referer: http://jperitoneum.org/index.php
[Wed Apr 01 08:16:51.878166 2020] [php7:notice] [pid 26053:tid 139659817506560] [client 10.200.225.11:34774] ojs2: 404 Not Found, referer: http://jperitoneum.org/index.php
[Wed Apr 01 08:16:53.030156 2020] [php7:notice] [pid 26053:tid 139659661248256] [client 10.200.225.11:34804] ojs2: 404 Not Found, referer: http://jperitoneum.org/index.php
[Wed Apr 01 10:17:34.369345 2020] [php7:warn] [pid 26270:tid 139659636070144] [client 10.200.225.11:59062] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/vhosts/joper/plugins/generic/googleScholar/GoogleScholarPlugin.inc.php on line 106
[Wed Apr 01 00:25:47.668680 2020] [php7:warn] [pid 4687:tid 140688423380736] [client 10.200.225.11:55364] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/vhosts/joper/plugins/generic/googleScholar/GoogleScholarPlugin.inc.php on line 106
[Wed Apr 01 02:04:52.595486 2020] [php7:warn] [pid 3789:tid 140688398202624] [client 10.200.225.11:53352] PHP Warning: include(/var/www/vhosts/joper/cache/fc-locale-f7d63cc9ec63a26b93620b360593cb1f.php): failed to open stream: Too many open files in /var/www/vhosts/joper/lib/pkp/classes/cache/FileCache.inc.php on line 46
[Wed Apr 01 02:04:52.595545 2020] [php7:warn] [pid 3789:tid 140688398202624] [client 10.200.225.11:53352] PHP Warning: include(): Failed opening ‘/var/www/vhosts/joper/cache/fc-locale-f7d63cc9ec63a26b93620b360593cb1f.php’ for inclusion (include_path=’.:/usr/share/pear:/usr/share/php’) in /var/www/vhosts/joper/lib/pkp/classes/cache/FileCache.inc.php on line 46
[Wed Apr 01 02:04:52.610962 2020] [php7:warn] [pid 3789:tid 140688398202624] [client 10.200.225.11:53352] PHP Warning: include(/var/www/vhosts/joper/lib/pkp/lib/vendor/illuminate/database/QueryException.php): failed to open stream: Too many open files in /var/www/vhosts/joper/lib/pkp/lib/vendor/composer/ClassLoader.php on line 444
[Wed Apr 01 02:04:52.611001 2020] [php7:warn] [pid 3789:tid 140688398202624] [client 10.200.225.11:53352] PHP Warning: include(): Failed opening ‘/var/www/vhosts/joper/lib/pkp/lib/vendor/composer/…/illuminate/database/QueryException.php’ for inclusion (include_path=’.:/usr/share/pear:/usr/share/php’) in /var/www/vhosts/joper/lib/pkp/lib/vendor/composer/ClassLoader.php on line 444
[Wed Apr 01 02:04:52.611204 2020] [php7:error] [pid 3789:tid 140688398202624] [client 10.200.225.11:53352] PHP Fatal error: Uncaught Error: Class ‘Illuminate\Database\QueryException’ not found in /var/www/vhosts/joper/lib/pkp/lib/vendor/illuminate/database/Connection.php:664\nStack trace:\n#0 /var/www/vhosts/joper/lib/pkp/lib/vendor/illuminate/database/Connection.php(624): Illuminate\Database\Connection->runQueryCallback(‘select count()…’, Array, Object(Closure))\n#1 /var/www/vhosts/joper/lib/pkp/lib/vendor/illuminate/database/Connection.php(333): Illuminate\Database\Connection->run('select count()…’, Array, Object(Closure))\n#2 /var/www/vhosts/joper/lib/pkp/lib/vendor/illuminate/database/Query/Builder.php(2130): Illuminate\Database\Connection->select(‘select count(*)…’, Array, true)\n#3 /var/www/vhosts/joper/lib/pkp/lib/vendor/illuminate/database/Query/Builder.php(2118): Illuminate\Database\Query\Builder->runSelect()\n#4 /var/www/vhosts/joper/lib/pkp/lib/vendor/illuminate/database/Query/Builder.php(2604): Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure}()\n#5 /var/www/vhosts/joper/lib/pkp/lib/vendor/illumin in /var/www/vhosts/joper/lib/pkp/lib/vendor/illuminate/database/Connection.php on line 664
[Wed Apr 01 04:04:38.954172 2020] [php7:warn] [pid 3789:tid 140688543618816] [client 10.200.225.11:36134] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/vhosts/joper/plugins/generic/googleScholar/GoogleScholarPlugin.inc.php on line 106
[Wed Apr 01 07:55:41.061314 2020] [php7:notice] [pid 4687:tid 140688314275584] [client 10.200.225.11:35258] ojs2: 404 Not Found
[Wed Apr 01 07:55:41.106855 2020] [php7:notice] [pid 4687:tid 140688535226112] [client 10.200.225.11:35272] ojs2: 404 Not Found
[Wed Apr 01 07:55:42.555470 2020] [php7:notice] [pid 4960:tid 140688389809920] [client 10.200.225.11:35308] ojs2: 404 Not Found
[Wed Apr 01 07:55:42.958734 2020] [php7:notice] [pid 5775:tid 140688347846400] [client 10.200.225.11:35310] ojs2: 404 Not Found
[Wed Apr 01 07:55:45.846096 2020] [php7:notice] [pid 4761:tid 140688389809920] [client 10.200.225.11:35448] ojs2: 404 Not Found
[Wed Apr 01 07:55:46.144646 2020] [php7:notice] [pid 5775:tid 140688510048000] [client 10.200.225.11:35464] ojs2: 404 Not Found
[Wed Apr 01 07:55:47.222777 2020] [php7:notice] [pid 5775:tid 140688331060992] [client 10.200.225.11:35504] ojs2: 404 Not Found
[Wed Apr 01 07:55:47.527140 2020] [php7:notice] [pid 4687:tid 140688347846400] [client 10.200.225.11:35512] ojs2: 404 Not Found
[Wed Apr 01 07:55:48.657757 2020] [php7:notice] [pid 5615:tid 140688373024512] [client 10.200.225.11:35534] ojs2: 404 Not Found
[Wed Apr 01 07:55:48.841216 2020] [php7:notice] [pid 4687:tid 140688406595328] [client 10.200.225.11:35558] ojs2: 404 Not Found
[Wed Apr 01 07:55:49.931285 2020] [php7:notice] [pid 4960:tid 140688552011520] [client 10.200.225.11:35588] ojs2: 404 Not Found
[Wed Apr 01 07:55:50.369086 2020] [php7:notice] [pid 5775:tid 140688389809920] [client 10.200.225.11:35592] ojs2: 404 Not Found
[Wed Apr 01 07:55:51.450376 2020] [php7:notice] [pid 4687:tid 140688364631808] [client 10.200.225.11:35628] ojs2: 404 Not Found
[Wed Apr 01 07:55:51.776344 2020] [php7:notice] [pid 5775:tid 140688364631808] [client 10.200.225.11:35636] ojs2: 404 Not Found
[Wed Apr 01 07:55:53.010435 2020] [php7:notice] [pid 4687:tid 140688510048000] [client 10.200.225.11:35666] ojs2: 404 Not Found
[Wed Apr 01 07:55:53.019652 2020] [php7:notice] [pid 5615:tid 140688543618816] [client 10.200.225.11:35690] ojs2: 404 Not Found
[Wed Apr 01 07:55:53.990769 2020] [php7:notice] [pid 4761:tid 140688518440704] [client 10.200.225.11:35718] ojs2: 404 Not Found
[Wed Apr 01 07:55:54.042401 2020] [php7:notice] [pid 4687:tid 140688543618816] [client 10.200.225.11:35716] ojs2: 404 Not Found
[Wed Apr 01 07:55:54.996932 2020] [php7:notice] [pid 5615:tid 140688364631808] [client 10.200.225.11:35762] ojs2: 404 Not Found
[Wed Apr 01 07:55:55.045641 2020] [php7:notice] [pid 4960:tid 140688398202624] [client 10.200.225.11:35766] ojs2: 404 Not Found
[Wed Apr 01 07:55:56.071000 2020] [php7:notice] [pid 4761:tid 140688431773440] [client 10.200.225.11:35790] ojs2: 404 Not Found
[Wed Apr 01 07:55:56.089703 2020] [php7:notice] [pid 4687:tid 140688364631808] [client 10.200.225.11:35792] ojs2: 404 Not Found
[Wed Apr 01 07:55:57.032916 2020] [php7:notice] [pid 5615:tid 140688356239104] [client 10.200.225.11:35822] ojs2: 404 Not Found
[Wed Apr 01 07:55:57.152640 2020] [php7:notice] [pid 4960:tid 140688526833408] [client 10.200.225.11:35824] ojs2: 404 Not Found
[Wed Apr 01 07:55:58.004682 2020] [php7:notice] [pid 5775:tid 140688406595328] [client 10.200.225.11:35848] ojs2: 404 Not Found
[Wed Apr 01 07:55:58.102026 2020] [php7:notice] [pid 5775:tid 140688364631808] [client 10.200.225.11:35850] ojs2: 404 Not Found
[Wed Apr 01 07:55:58.985732 2020] [php7:notice] [pid 4687:tid 140688305882880] [client 10.200.225.11:35878] ojs2: 404 Not Found
[Wed Apr 01 07:55:59.096718 2020] [php7:notice] [pid 4761:tid 140688543618816] [client 10.200.225.11:35882] ojs2: 404 Not Found
[Wed Apr 01 07:55:59.846193 2020] [php7:notice] [pid 5615:tid 140688414988032] [client 10.200.225.11:35900] ojs2: 404 Not Found
[Wed Apr 01 07:56:00.010118 2020] [php7:notice] [pid 5615:tid 140688322668288] [client 10.200.225.11:35906] ojs2: 404 Not Found
[Wed Apr 01 07:56:00.930549 2020] [php7:notice] [pid 5615:tid 140688535226112] [client 10.200.225.11:35932] ojs2: 404 Not Found
[Wed Apr 01 07:56:01.152886 2020] [php7:notice] [pid 4761:tid 140688406595328] [client 10.200.225.11:35944] ojs2: 404 Not Found
[Wed Apr 01 07:56:01.377748 2020] [php7:warn] [pid 4687:tid 140688373024512] [client 10.200.225.11:35926] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/vhosts/joper/plugins/generic/googleScholar/GoogleScholarPlugin.inc.php on line 106
[Wed Apr 01 07:56:02.082599 2020] [php7:notice] [pid 4960:tid 140688314275584] [client 10.200.225.11:35954] ojs2: 404 Not Found
[Wed Apr 01 07:56:02.175183 2020] [php7:notice] [pid 5775:tid 140688322668288] [client 10.200.225.11:35962] ojs2: 404 Not Found
[Wed Apr 01 07:56:03.057812 2020] [php7:notice] [pid 5615:tid 140688431773440] [client 10.200.225.11:35992] ojs2: 404 Not Found
[Wed Apr 01 07:56:03.097717 2020] [php7:notice] [pid 4687:tid 140688406595328] [client 10.200.225.11:35994] ojs2: 404 Not Found
[Wed Apr 01 08:41:23.450392 2020] [php7:warn] [pid 4761:tid 140688339453696] [client 10.200.225.11:52142] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/vhosts/joper/plugins/generic/googleScholar/GoogleScholarPlugin.inc.php on line 106
[Wed Apr 01 08:58:47.669221 2020] [php7:warn] [pid 5615:tid 140688289097472] [client 10.200.225.11:42368] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/vhosts/joper/plugins/generic/googleScholar/GoogleScholarPlugin.inc.php on line 106
[Wed Apr 01 09:16:18.280555 2020] [php7:notice] [pid 5615:tid 140688398202624] [client 10.200.225.11:40278] PHP Notice: Only variables should be passed by reference in /var/www/vhosts/joper/plugins/importexport/pubmed/PubMedExportPlugin.inc.php on line 167, referer: http://www.jperitoneum.org/index.php/joper/management/importexport/plugin/PubMedExportPlugin
[Wed Apr 01 09:16:18.280755 2020] [php7:error] [pid 5615:tid 140688398202624] [client 10.200.225.11:40278] PHP Fatal error: Uncaught Error: Call to a member function saveXml() on null in /var/www/vhosts/joper/plugins/importexport/pubmed/PubMedExportPlugin.inc.php:168\nStack trace:\n#0 /var/www/vhosts/joper/plugins/importexport/pubmed/PubMedExportPlugin.inc.php(105): PubMedExportPlugin->exportIssues(Array, Object(Journal), Object(User))\n#1 /var/www/vhosts/joper/lib/pkp/pages/management/PKPToolsHandler.inc.php(104): PubMedExportPlugin->display(Array, Object(Request))\n#2 /var/www/vhosts/joper/lib/pkp/classes/core/PKPRouter.inc.php(391): PKPToolsHandler->importexport(Array, Object(Request))\n#3 /var/www/vhosts/joper/lib/pkp/classes/core/PKPPageRouter.inc.php(231): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array, false)\n#4 /var/www/vhosts/joper/lib/pkp/classes/core/Dispatcher.inc.php(143): PKPPageRouter->route(Object(Request))\n#5 /var/www/vhosts/joper/lib/pkp/classes/core/PKPApplication.inc.php(278): Dispatcher->dispatch(Object(Request))\n#6 /var/www/vhosts/joper/index.php(68): PKPApplication->execute()\n#7 {main in /var/www/vhosts/joper/plugins/importexport/pubmed/PubMedExportPlugin.inc.php on line 168, referer: http://www.jperitoneum.org/index.php/joper/management/importexport/plugin/PubMedExportPlugin
[Wed Apr 01 09:16:39.485289 2020] [php7:error] [pid 5906:tid 140688347846400] [client 10.200.225.11:40724] PHP Fatal error: Uncaught Error: Call to a member function saveXml() on null in /var/www/vhosts/joper/plugins/importexport/pubmed/PubMedExportPlugin.inc.php:140\nStack trace:\n#0 /var/www/vhosts/joper/plugins/importexport/pubmed/PubMedExportPlugin.inc.php(92): PubMedExportPlugin->exportSubmissions(Array, Object(Journal), Object(User))\n#1 /var/www/vhosts/joper/lib/pkp/pages/management/PKPToolsHandler.inc.php(104): PubMedExportPlugin->display(Array, Object(Request))\n#2 /var/www/vhosts/joper/lib/pkp/classes/core/PKPRouter.inc.php(391): PKPToolsHandler->importexport(Array, Object(Request))\n#3 /var/www/vhosts/joper/lib/pkp/classes/core/PKPPageRouter.inc.php(231): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array, false)\n#4 /var/www/vhosts/joper/lib/pkp/classes/core/Dispatcher.inc.php(143): PKPPageRouter->route(Object(Request))\n#5 /var/www/vhosts/joper/lib/pkp/classes/core/PKPApplication.inc.php(278): Dispatcher->dispatch(Object(Request))\n#6 /var/www/vhosts/joper/index.php(68): PKPApplication->execute()\n#7 { in /var/www/vhosts/joper/plugins/importexport/pubmed/PubMedExportPlugin.inc.php on line 140, referer: http://www.jperitoneum.org/index.php/joper/management/importexport/plugin/PubMedExportPlugin
[Wed Apr 01 09:41:40.468181 2020] [php7:warn] [pid 5906:tid 140688373024512] [client 10.200.225.11:40580] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/vhosts/joper/plugins/generic/googleScholar/GoogleScholarPlugin.inc.php on line 106
[Wed Apr 01 00:50:30.227099 2020] [php7:warn] [pid 25265:tid 140032803317504] [client 10.200.225.11:51380] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/vhosts/joper/plugins/generic/googleScholar/GoogleScholarPlugin.inc.php on line 106
[Wed Apr 01 01:31:03.036107 2020] [php7:warn] [pid 25182:tid 140032736175872] [client 10.200.225.11:56998] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/vhosts/joper/plugins/generic/googleScholar/GoogleScholarPlugin.inc.php on line 106
[Wed Apr 01 01:33:57.819186 2020] [php7:warn] [pid 24967:tid 140032934397696] [client 10.200.225.11:59354] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/vhosts/joper/plugins/generic/googleScholar/GoogleScholarPlugin.inc.php on line 106
[Wed Apr 01 01:33:58.604256 2020] [php7:error] [pid 24967:tid 140032934397696] [client 10.200.225.11:59354] PHP Fatal error: Uncaught Error: Call to a member function getPublished() on null in /var/www/vhosts/joper/classes/search/ArticleSearch.inc.php:278\nStack trace:\n#0 /var/www/vhosts/joper/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php(137): ArticleSearch->formatResults(Array)\n#1 /var/www/vhosts/joper/lib/pkp/classes/plugins/HookRegistry.inc.php(107): RecommendByAuthorPlugin->callbackTemplateArticlePageFooter(‘Templates::Arti…’, Array)\n#2 /var/www/vhosts/joper/lib/pkp/classes/template/PKPTemplateManager.inc.php(1237): HookRegistry::call(‘Templates::Arti…’, Array)\n#3 /var/www/vhosts/joper/cache/t_compile/a4fc84a2d9d2a85c011fcc528f09577e88e2fcff^1c372c95cd85572e0fbc9a53d0323a0b229cfc78_0.app.frontendpagesarticle.tpl.php(43): PKPTemplateManager->smartyCallHook(Array, Object(Smarty_Internal_Template))\n#4 /var/www/vhosts/joper/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_5e82f887b4b7a9_76357083(Object(Smarty_Internal_Template))\n#5 /var/www/vhosts/joper/lib/pkp in /var/www/vhosts/joper/classes/search/ArticleSearch.inc.php on line 278
[Wed Apr 01 06:39:06.449764 2020] [php7:notice] [pid 27235:tid 140032786532096] [client 10.200.225.11:42202] PHP Notice: Only variables should be assigned by reference in /var/www/vhosts/joper/classes/oai/ojs/OAIDAO.inc.php on line 147
[Wed Apr 01 06:39:08.068944 2020] [php7:error] [pid 27235:tid 140032786532096] [client 10.200.225.11:42202] PHP Fatal error: Uncaught Error: Call to a member function getProperties() on null in /var/www/vhosts/joper/lib/pkp/plugins/oaiMetadataFormats/dc/PKPOAIMetadataFormat_DC.inc.php:31\nStack trace:\n#0 /var/www/vhosts/joper/plugins/oaiMetadataFormats/dc/OAIMetadataFormat_DC.inc.php(28): PKPOAIMetadataFormat_DC->toXml(Object(Submission), NULL)\n#1 /var/www/vhosts/joper/lib/pkp/classes/oai/OAI.inc.php(788): OAIMetadataFormat_DC->toXml(Object(OAIRecord))\n#2 /var/www/vhosts/joper/lib/pkp/classes/oai/OAI.inc.php(531): OAI->formatMetadata(‘oai_dc’, Object(OAIRecord))\n#3 /var/www/vhosts/joper/lib/pkp/classes/oai/OAI.inc.php(85): OAI->ListRecords()\n#4 /var/www/vhosts/joper/pages/oai/OAIHandler.inc.php(39): OAI->execute()\n#5 /var/www/vhosts/joper/lib/pkp/classes/core/PKPRouter.inc.php(391): OAIHandler->index(Array, Object(Request))\n#6 /var/www/vhosts/joper/lib/pkp/classes/core/PKPPageRouter.inc.php(231): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array, false)\n#7 /var/www/vhosts/joper/lib/pkp/classes/core/Dispatch in /var/www/vhosts/joper/lib/pkp/plugins/oaiMetadataFormats/dc/PKPOAIMetadataFormat_DC.inc.php on line 31
[Wed Apr 01 07:39:32.966855 2020] [php7:warn] [pid 27235:tid 140032778139392] [client 10.200.225.11:48978] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/vhosts/joper/plugins/generic/googleScholar/GoogleScholarPlugin.inc.php on line 106
[Wed Apr 01 09:11:35.152639 2020] [php7:warn] [pid 27416:tid 140032926004992] [client 10.200.225.11:37552] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/vhosts/joper/plugins/generic/googleScholar/GoogleScholarPlugin.inc.php on line 106
[Wed Apr 01 09:11:49.563893 2020] [php7:warn] [pid 27235:tid 140032761353984] [client 10.200.225.11:37786] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/vhosts/joper/plugins/generic/googleScholar/GoogleScholarPlugin.inc.php on line 106
[Wed Apr 01 09:11:50.360215 2020] [php7:error] [pid 27235:tid 140032761353984] [client 10.200.225.11:37786] PHP Fatal error: Uncaught Error: Call to a member function getPublished() on null in /var/www/vhosts/joper/classes/search/ArticleSearch.inc.php:278\nStack trace:\n#0 /var/www/vhosts/joper/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php(137): ArticleSearch->formatResults(Array)\n#1 /var/www/vhosts/joper/lib/pkp/classes/plugins/HookRegistry.inc.php(107): RecommendByAuthorPlugin->callbackTemplateArticlePageFooter(‘Templates::Arti…’, Array)\n#2 /var/www/vhosts/joper/lib/pkp/classes/template/PKPTemplateManager.inc.php(1237): HookRegistry::call(‘Templates::Arti…’, Array)\n#3 /var/www/vhosts/joper/cache/t_compile/a4fc84a2d9d2a85c011fcc528f09577e88e2fcff^1c372c95cd85572e0fbc9a53d0323a0b229cfc78_0.app.frontendpagesarticle.tpl.php(43): PKPTemplateManager->smartyCallHook(Array, Object(Smarty_Internal_Template))\n#4 /var/www/vhosts/joper/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_5e82f887b4b7a9_76357083(Object(Smarty_Internal_Template))\n#5 /var/www/vhosts/joper/lib/pkp in /var/www/vhosts/joper/classes/search/ArticleSearch.inc.php on line 278
[Wed Apr 01 10:05:03.406087 2020] [php7:warn] [pid 27416:tid 140032685819648] [client 10.200.225.11:40648] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/vhosts/joper/plugins/generic/googleScholar/GoogleScholarPlugin.inc.php on line 106

Hi @Tiziano,

Dumping the whole log file here is pretty hard to read – next time please just include the entries that appear at the time you try the page that shows the problem.

There are a few issues here worth looking into:

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,
my server technicians, have highlighted this log error, concerning the problem of xml export tools on the site. Can it help you to solve this problem?

[Wed May 13 10:56:53.366584 2020] [php7:error] [pid 8488:tid 140270309914368] [client 10.200.225.10:58648] PHP Fatal error: Uncaught Error: Call to a member function getAuthors() on array in /var/www/vhosts/pagepress.org/journals/plugins/generic/coins/CoinsPlugin.inc.php:74\nStack trace:\n#0 /var/www/vhosts/pagepress.org/journals/lib/pkp/classes/plugins/HookRegistry.inc.php(107): CoinsPlugin->insertFooter(‘Templates::Comm…’, Array)\n#1 /var/www/vhosts/pagepress.org/journals/lib/pkp/classes/template/PKPTemplateManager.inc.php(1145): HookRegistry::call(‘Templates::Comm…’, Array)\n#2 /var/www/vhosts/pagepress.org/journals/cache/t_compile/511f4ab86b09dcf7d0b83e864725638a1c99f731^%%40^408^4081C66E%%footer.tpl.php(51): PKPTemplateManager->smartyCallHook(Array, Object(TemplateManager))\n#3 /var/www/vhosts/pagepress.org/journals/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php(1870): include(’/var/www/vhosts…’)\n#4 /var/www/vhosts/pagepress.org/journals/lib/pkp/classes/template/PKPTemplateManager.inc.php(406): Smarty->_smarty_include(Array)\n#5 /var/www/vhosts/pagepress.org/journals/cache/t_compile/a7880fecd678218289445d88aa7710108a8 in /var/www/vhosts/pagepress.org/journals/plugins/generic/coins/CoinsPlugin.inc.php on line 74

Thanks for the support
Bye
Tiziano

Hi @Tiziano,

What version of the COinS plugin are you using? I suspect it’s out of date.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,
OJS version: 3.2.0.3
COinS version: Release 1.0.3-0 of the COinS plugin for OJS 3.2.

I have the same problem in IndexCopernicus export plugin, and my error logs are empty…

indexcopernicus plugin work’s fine in 3.1.2.4 but for 3.2.0-3 it needs changes in code. developer is not responding for messages

Hi @Tiziano,

What do you see on line 74 of plugins/generic/coins/CoinsPlugin.inc.php?

Regards,
Alec Smecher
Public Knowledge Project Team

@asmecher this:

array(‘rft_id’, $request->url(null, ‘article’, ‘view’, $article->getId())),

Hi @Tiziano,

That’s strange – the error message you posted above indicates that this line had a call to getAuthors, but as you can see, it doesn’t. Is it possible that the plugin was upgraded to v1.0.3-0 after the error message appeared in the logs?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,
these are passages of the error log file that my server technicians reported to me, which they think could be the cause but to help you would rather I send you the whole error log file? so maybe it’s more convenient for you to look at it.

Hi @Tiziano,

Possibly; send me a private message with the full log and I’ll take a quick look.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,
I sent you a private message, thank you very much.

Bye
Tiziano

Hi @Tiziano,

The relevant messages are:

PHP Fatal error:  Uncaught Error: Call to a member function saveXml() on null in /var/www/vhosts/joper/classes/plugins/PubObjectsExportPlugin.inc.php:372

I believe this is caused by OJS 3.2.0 - OAI ListRecords causes PHP Fatal Error · Issue #5573 · pkp/pkp-lib · GitHub, which has been fixed in OJS 3.2.0-2 and newer. There are SQL queries there to fix it if you’re not ready to upgrade.

Regards,
Alec Smecher
Public Knowledge Project Team

Thanks @asmecher, but I upgraded to version 3.2.0.3, but the problem persists. Can there be another reason?

Bye
Tiziano

Hi @Tiziano,

Do the SQL queries listed in OJS 3.2.0 - OAI ListRecords causes PHP Fatal Error · Issue #5573 · pkp/pkp-lib · GitHub result in any changed rows when you execute them?

Regards,
Alec Smecher
Public Knowledge Project Team

2 Likes

Hi @asmecher,
you seem to have solved my problem! After applying and having the 4 UPDATES processed in the DB, all the plugins on the site are now working correctly and I no longer see the error 500.

What was causing this error?

Thank you very much for your support!

Bye
Tiziano

Hi @Tiziano,

Glad it works! This was a change between OJS 3.1.x and 3.2.x that required a database update, but the initial releases of OJS 3.2.0.x didn’t adapt it properly. The last release does. Running those SQL statements will resolve it permanently.

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like