Datacite export plugin error

Hi,
for some articles, when i try to export/register DOI, i have this error:
[Mon Oct 29 17:48:10.087112 2018] [:error] [pid 8246] [client x.xx.x.x:xxxxx] PHP Fatal error: Uncaught Error: Call to undefined function curl_init() in /home/www/ojs3/ojs-3.1.1-4/plugins/importexport/datacite/DataciteExportPlugin.inc.php:210 Stack trace:\n#0 /home/www/ojs3/ojs-3.1.1-4/plugins/importexport/datacite/DataciteExportPlugin.inc.php(162): DataciteExportPlugin->depositXML(Object(PublishedArticle), Object(Journal), '/home/www/ojs3/...') #1 /home/www/ojs3/ojs-3.1.1-4/classes/plugins/PubObjectsExportPlugin.inc.php(161): DataciteExportPlugin->executeExportAction(Object(Request), Array, 'article=>dataci...', 'exportSubmissio...', 'articles', false) #2 /home/www/ojs3/ojs-3.1.1-4/classes/plugins/DOIPubIdExportPlugin.inc.php(31): PubObjectsExportPlugin->display(Array, Object(Request)) #3 /home/www/ojs3/ojs-3.1.1-4/lib/pkp/pages/management/PKPToolsHandler.inc.php(98): DOIPubIdExportPlugin->display(Array, Object(Request)) #4 /home/www/ojs3/ojs-3.1.1-4/lib/pkp/classes/core/PKPRouter.inc.php(390): PKPToolsHandler->importexport(Array, Object(Request))\n#5 /home/www/ojs3/ojs-3.1.1-4/lib/pkp/classes/core/PKPP in /home/www/ojs3/ojs-3.1.1-4/plugins/importexport/datacite/DataciteExportPlugin.inc.php on line 210, referer: https://dominio/index.php/subs/management/importexport/plugin/DataciteExportPlugin

It depends on some data in articles or it is a error at all?
How i can solve it?

Thanks
(OJS 3.1.1-4 on Ubuntu9 with apache2/php7/mysql)

Hi @maurox,

It looks like you need to install the PHP CURL module on your server.

Best,
Amanda Stevens
Public Knowledge Project Team

Thanks a lot.
$ apt-get install php7.0-curl solved my problem

Ciao!

1 Like