fiduswriter / ojs-fiduswriter

A Open Journal Systems (OJS) plugin to connect to Fidus Writer
GNU General Public License v2.0
1 stars 2 forks source link

Settings error: filemtime(): stat failed for #8

Closed nmueller18 closed 2 years ago

nmueller18 commented 4 years ago

On OJS 3.1.2.4, opening the settings of OJS-Fiduswriter 1.3.1.0 throws the error Failed Ajax request or invalid JSON returned. The obviously related PHP warnings are given below. Similar error messages are reported from other OJS-plugins, so the issue seems related to the construction of paths: https://github.com/ajnyga/embedGalley/issues/6 https://github.com/ulsdevteam/pkp-formHoneypot/issues/3

PHP Warning: filemtime(): stat failed for lib/pkp/templates/plugins/generic/fidusWriter/templatestemplates/settingsForm.tpl in /www/user/htdocs_ojs/lib/pkp/classes/template/PKPTemplateResource.inc.php on line 51 PHP Stack trace: PHP 1. {main}() /www/user/htdocs_ojs/index.php:0 PHP 2. Application->execute() /www/user/htdocs_ojs/index.php:68 PHP 3. Dispatcher->dispatch() /www/user/htdocs_ojs/lib/pkp/classes/core/PKPApplication.inc.php:252 PHP 4. PKPComponentRouter->route() /www/user/htdocs_ojs/lib/pkp/classes/core/Dispatcher.inc.php:134 PHP 5. PKPComponentRouter->_authorizeInitializeAndCallRequest() /www/user/htdocs_ojs/lib/pkp/classes/core/PKPComponentRouter.inc.php:257 PHP 6. SettingsPluginGridHandler->manage() /www/user/htdocs_ojs/lib/pkp/classes/core/PKPRouter.inc.php:390 PHP 7. FidusWriterPlugin->manage() /www/user/htdocs_ojs/lib/pkp/classes/controllers/grid/plugins/PluginGridHandler.inc.php:234 PHP 8. FidusWriterSettingsForm->fetch() /www/user/htdocs_ojs/plugins/generic/fidusWriter/FidusWriterPlugin.inc.php:124 PHP 9. FidusWriterSettingsForm->fetch() /www/user/htdocs_ojs/plugins/generic/fidusWriter/FidusWriterSettingsForm.inc.php:66 PHP 10. TemplateManager->fetch() /www/user/htdocs_ojs/lib/pkp/classes/form/Form.inc.php:200 PHP 11. TemplateManager->fetch() /www/user/htdocs_ojs/lib/pkp/classes/template/PKPTemplateManager.inc.php:770 PHP 12. TemplateManager->_execute() /www/user/htdocs_ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php:116 PHP 13. TemplateManager->createTemplate() /www/user/htdocs_ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php:189 PHP 14. Smarty_Internal_Template->__construct() /www/user/htdocs_ojs/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php:1029 PHP 15. Smarty_Template_Source::load() /www/user/htdocs_ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:168 PHP 16. PKPTemplateResource->populate() /www/user/htdocs_ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_source.php:182 PHP 17. PKPTemplateResource->fetchTimestamp() /www/user/htdocs_ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_resource_custom.php:52 PHP 18. filemtime() /www/user/htdocs_ojs/lib/pkp/classes/template/PKPTemplateResource.inc.php:51 PHP Fatal error: Uncaught --> Smarty: Unable to load template 'app:plugins/generic/fidusWriter/templatestemplates/settingsForm.tpl' <-- thrown in /www/user/htdocs_ojs/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 195

nmueller18 commented 4 years ago

Ah, I just realized that this issue has been resolved in the master. Why has it not been officially released yet?

nmueller18 commented 2 years ago

Resolved.