PDFViewer Plugins not working after upgrade from 3.3.0.17 to 3.5.0.5

After upgrade version from 3.3.0.17 to 3.5.0.5. I got PDFViewer not working. So i am deleted that plugins and reupload .tar.gz file from GitHub - pkp/pdfJsViewer: A pdf.js-based PDF viewer for OJS articles and issue galleys. · GitHub and upload file successfull but not appear on Plugins Gallery and Installed Plugins page.

Inside database for table versions

and table plugins_settings

image

How to fix that issues? Here is php log files

NOTICE: PHP message: Instantiation of the plugin generic/pdfJsViewer has failed

Error: Call to undefined function import() in /var/www/html/plugins/generic/pdfJsViewer/PdfJsViewerPlugin.inc.php:15


Stack trace:

#0 /var/www/html/plugins/generic/pdfJsViewer/index.php(19): require_once()

#1 /var/www/html/lib/pkp/classes/plugins/PluginRegistry.php(281): include('/var/www/html/p...')

#2 /var/www/html/lib/pkp/classes/plugins/PluginRegistry.php(211): PKP\plugins\PluginRegistry::deprecatedInstantiatePlugin()

#3 /var/www/html/lib/pkp/classes/plugins/PluginRegistry.php(263): PKP\plugins\PluginRegistry::instantiatePlugin()

#4 /var/www/html/lib/pkp/classes/plugins/PluginRegistry.php(128): PKP\plugins\PluginRegistry::loadFromDisk()

#5 /var/www/html/lib/pkp/classes/controllers/grid/plugins/PluginGridHandler.php(193): PKP\plugins\PluginRegistry::loadCategory()

#6 /var/www/html/controllers/grid/settings/plugins/SettingsPluginGridHandler.php(50): PKP\controllers\grid\plugins\PluginGridHandler->loadCategoryData()

#7 /var/www/html/lib/pkp/classes/controllers/grid/CategoryGridHandler.php(148): APP\controllers\grid\settings\plugins\SettingsPluginGridHandler->loadCategoryData()

#8 /var/www/html/lib/pkp/classes/controllers/grid/CategoryGridHandler.php(338): PKP\controllers\grid\CategoryGridHandler->getGridCategoryDataElements()

#9 /var/www/html/lib/pkp/classes/controllers/grid/GridHandler.php(591): PKP\controllers\grid\CategoryGridHandler->getRowDataElement()

#10 /var/www/html/lib/pkp/classes/controllers/grid/GridHandler.php(799): PKP\controllers\grid\GridHandler->getRequestedRow()

#11 [internal function]: PKP\controllers\grid\GridHandler->fetchRow()

#12 /var/www/html/lib/pkp/classes/core/PKPRouter.php(327): call_user_func()

#13 /var/www/html/lib/pkp/classes/core/PKPComponentRouter.php(265): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest()

#14 /var/www/html/lib/pkp/classes/core/Dispatcher.php(157): PKP\core\PKPComponentRouter->route()

#15 /var/www/html/lib/pkp/classes/core/PKPApplication.php(429): PKP\core\Dispatcher->dispatch()

#16 /var/www/html/index.php(21): PKP\core\PKPApplication->execute()

#17 {main}

Hi @fairuz,

It looks like you’ve installed a version of the plugin meant for OJS 3.3.0 into your 3.5.0 installation. That won’t work; remove the plugin you installed, then get the right version from the OJS download package.

Once you’ve done that, you should be back to the same problem you had in the first place. Check your browser’s error console when you try to view a PDF file. I suspect you’ll find you’re encountering this issue.

Regards,
Alec Smecher
Public Knowledge Project Team