Hi @asmecher ,
The controlPublicFiles
plugin seems not to be compatible with OJS3.3.0-11 (PHP 8)
and I get the below error. Could you help me on how to resolve it?
PHP Fatal error: Declaration of ControlPublicFilesSettingsForm::execute() must be compatible with Form::execute(...$functionArgs) in /../../cdj/plugins/generic/controlPublicFiles/ControlPublicFilesSettingsForm.inc.php on line 99, referer: http://.../index.php/cdj/management/settings/website
Best,
Ali
Hi @alirezaaa ,
Thanks for reporting; I’ve filed this on the plugin’s github repository as an issue:
opened 11:36PM - 04 Aug 22 UTC
Reported in the forum: https://forum.pkp.sfu.ca/t/controlpublicfile-plugin-for-o… js-3-3-0-11/74255
> The controlPublicFiles plugin seems not to be compatible with OJS3.3.0-11 (PHP 8) and I get the below error. Could you help me on how to resolve it?
>
> ```
> PHP Fatal error: Declaration of ControlPublicFilesSettingsForm::execute() must be compatible with Form::execute(...$functionArgs) in /../../cdj/plugins/generic/controlPublicFiles/ControlPublicFilesSettingsForm.inc.php on line 99, referer: http://.../index.php/cdj/management/settings/website
> ```
I’ll release a new plugin package including the fix soon.
Regards,
Alec Smecher
Public Knowledge Project Team
Hi @asmecher ,
Thank you for the patch, but unfortunately it did not resolve the issue. I am now getting the following error:
[php:error] [pid 88072] [client 166.12.245.174:36661] PHP Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /var/www/html/xxx/cache/t_compile/42d69b13c655cc2796334f10902a6e30c56b22ce^c3110843d621728d3498e9be6b6556351c07d299_0.plugins-1-plugins-generic-controlPublicFiles-generic-controlPublicFiles.settings.tpl.php:115\nStack trace:\n#0 /var/www/html/xxx/cache/t_compile/42d69b13c655cc2796334f10902a6e30c56b22ce^c3110843d621728d3498e9be6b6556351c07d299_0.plugins-1-plugins-generic-controlPublicFiles-generic-controlPublicFiles.settings.tpl.php(115): in_array()\n#1 /var/www/html/xxx/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_62ee2b61036c17_82404699()\n#2 /var/www/html/xxx/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()\n#3 /var/www/html/xxx/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render()\n#4 /var/www/html/xxx/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(232): Smarty_Internal_Template->render()\n#5 /var/www/html/xxx/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute()\n#6 /var/www/html/xxx/lib/pkp/classes/template/PKPTemplateManager.inc.php(1072): Smarty_Internal_TemplateBase->fetch()\n#7 /var/www/html/xxx/lib/pkp/classes/form/Form.inc.php(197): PKPTemplateManager->fetch()\n#8 /var/www/html/xxx/plugins/generic/controlPublicFiles/ControlPublicFilesSettingsForm.inc.php(91): Form->fetch()\n#9 /var/www/html/xxx/plugins/generic/controlPublicFiles/ControlPublicFilesPlugin.inc.php(123): ControlPublicFilesSettingsForm->fetch()\n#10 /var/www/html/xxx/lib/pkp/classes/controllers/grid/plugins/PluginGridHandler.inc.php(236): ControlPublicFilesPlugin->manage()\n#11 /var/www/html/xxx/lib/pkp/classes/core/PKPRouter.inc.php(395): PluginGridHandler->manage()\n#12 /var/www/html/xxx/lib/pkp/classes/core/PKPComponentRouter.inc.php(257): PKPRouter->_authorizeInitializeAndCallRequest()\n#13 /var/www/html/xxx/lib/pkp/classes/core/Dispatcher.inc.php(144): PKPComponentRouter->route()\n#14 /var/www/html/xxx/lib/pkp/classes/core/PKPApplication.inc.php(362): Dispatcher->dispatch()\n#15 /var/www/html/xxx/index.php(68): PKPApplication->execute()\n#16 {main}\n thrown in /var/www/html/xxx/cache/t_compile/42d69b13c655cc2796334f10902a6e30c56b22ce^c3110843d621728d3498e9be6b6556351c07d299_0.plugins-1-plugins-generic-controlPublicFiles-generic-controlPublicFiles.settings.tpl.php on line 115, referer: http://xxx/xxx/index.php/xxx/management/settings/website
I emptied the cache folder but did not work.
Best,
Ali
asmecher
Closed
August 8, 2022, 3:00pm
4
This topic was automatically closed after 3 days. New replies are no longer allowed.