pkp / translator

PKP Translator plugin for OMP 1.1.1+ and OJS 3.0+
GNU General Public License v2.0
6 stars 30 forks source link

Blank page in ojs-3_1_1-2 #34

Closed OmarReygaert closed 6 years ago

OmarReygaert commented 6 years ago

We updated ojs to the last version and also added the last version of the translator plugin but when visiting the page we get an empty page.

in the logs I see this:

[18-Jun-2018 09:09:29 Europe/Brussels] PHP Fatal error:  Call to undefined method TranslatorPlugin::getTemplateResource() in /opt/ojs/plugins/generic/translator/controllers/grid/LocaleGridHandler.inc.php on line 99
[18-Jun-2018 09:09:29 Europe/Brussels] PHP Stack trace:
[18-Jun-2018 09:09:29 Europe/Brussels] PHP   1. {main}() /opt/ojs/index.php:0
[18-Jun-2018 09:09:29 Europe/Brussels] PHP   2. PKPApplication->execute() /opt/ojs/index.php:69
[18-Jun-2018 09:09:29 Europe/Brussels] PHP   3. Dispatcher->dispatch() /opt/ojs/lib/pkp/classes/core/PKPApplication.inc.php:247
[18-Jun-2018 09:09:29 Europe/Brussels] PHP   4. PKPComponentRouter->route() /opt/ojs/lib/pkp/classes/core/Dispatcher.inc.php:134
[18-Jun-2018 09:09:29 Europe/Brussels] PHP   5. PKPRouter->_authorizeInitializeAndCallRequest() /opt/ojs/lib/pkp/classes/core/PKPComponentRouter.inc.php:256
[18-Jun-2018 09:09:29 Europe/Brussels] PHP   6. call_user_func:{/opt/ojs/lib/pkp/classes/core/PKPRouter.inc.php:372}() /opt/ojs/lib/pkp/classes/core/PKPRouter.inc.php:372
[18-Jun-2018 09:09:29 Europe/Brussels] PHP   7. LocaleGridHandler->index() /opt/ojs/lib/pkp/classes/core/PKPRouter.inc.php:372
asmecher commented 6 years ago

@OmarReygaert, how did you install the latest translator plugin?

OmarReygaert commented 6 years ago

@asmecher By downloading the last version of the github: https://github.com/pkp/translator/archive/master.zip

asmecher commented 6 years ago

@OmarReygaert, that's the raw source code and isn't packaged correctly for OJS and may not be compatible with your version. The best way to install plugins is via the Plugin Gallery within OJS, or else download the right package from the Releases area of the website and upload it into the plugin management area as Site Administrator.