[OJS 3.1.2] Plugin Forthcoming no works

#1

Hi @ajnyga

I have installed the new version OJS 3.1.2 and I have installed the plugin https://github.com/ajnyga/forthcoming but this crashed the OJS when I try to use it at the Schedule for publication button and when I try to go to the SITE/JOURNALNAME/forthcoming/ view

This is the fatal error message in the first case:

PHP Fatal error: Uncaught --> Smarty: undefined extension class 'Smarty_Internal_Method_Register_Outputfilter' <-- \n thrown in /var/www/php70/pde_ojs312/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_undefined.php on line 62\n', referer: http://php70.example.com/pde_ojs312/index.php/pde/workflow/index/68276/4

And this is the fatal error message for the second case:

[Tue Apr 09 17:57:42.585725 2019] [proxy_fcgi:error] [pid 14192] [client 127.0.0.1:43338] AH01071: Got error 'PHP message: PHP Warning: Declaration of ForthcomingPlugin::register($category, $path) should be compatible with LazyLoadPlugin::register($category, $path, $mainContextId = NULL) in /var/www/php70/pde_ojs312/plugins/generic/forthcoming/ForthcomingPlugin.inc.php on line 0\nPHP message: PHP Warning: filemtime(): stat failed for lib/pkp/templates/plugins/generic/forthcoming/templatestemplates/content.tpl in /var/www/php70/pde_ojs312/lib/pkp/classes/template/PKPTemplateResource.inc.php on line 51\nPHP message: PHP Fatal error: Uncaught --> Smarty: Unable to load template 'app:plugins/generic/forthcoming/templatestemplates/content.tpl' <-- \n thrown in /var/www/php70/pde_ojs312/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 195\n', referer: http://php70.example.com/pde_ojs312/index.php/pde/issue/archive

I have reviewed the releases in the Github page,but I haven’t found some version of the plugin compatible with this new OJS version. Do you have planning upgrade the plugin for this new OJS version?

I hope you answer thanks a lot.

Best regards.

#2

Hi,
the plugin is not yet upgraded to support 3.1.2

#3

Hi @ajnyga thanks for your response.

I only have a doubt if do you have think to upgrading it soon?

I have tried to adapting the plugin to works with OJS 3.1.2, my first attempt was to resolve the error with the SITE/JOURNALNAME/forthcoming/ view, specifically this:

PHP Fatal error: Uncaught --&gt; Smarty: Unable to load template 'app:plugins/generic/forthcoming/templatestemplates/content.tpl' &lt;-- \n thrown in /var/www/php70/pde_ojs312/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 195\n', referer: http://php70.example.com/pde_ojs312/index.php/pde/issue/archive

For doing that I have modified the file base_url/plugins/generic/forthcoming/ForthcomingPlugin.inc.php and base_url/plugins/generic/forthcoming/ForthcomingHandler.inc.php changing the way to load the templates content.tpl and edit.tpl using the getTemplateResource function and removing the getTemplatePath function. This change remove the error triggered when request the SITE/JOURNALNAME/forthcoming/ page, but I have the error associated with the Schedule for Publication button.

The best regards.