Hello everyone,
I’m struggling with an error that I can’t quite solve. Our department finally had some time to upgrade from OJS 2.8.4.1 to OJS 3.1+ and everything worked as far as the installation. However, we’ve had some quirky errors pop up that we were able to work through until this one.
We have a header image that was imported from the previous OJS installation and we can’t get rid of it. Following the error_log, we receive this error message:
[11-Mar-2019 14:20:20 UTC] PHP Warning: Missing argument 1 for NewSiteImageFileForm::initData(), called in /ojs/lib/pkp/controllers/tab/settings/AdminSettingsTabHandler.inc.php on line 94 and defined in /ojs/lib/pkp/controllers/tab/settings/siteSetup/form/NewSiteImageFileForm.inc.php on line 36 [11-Mar-2019 14:20:20 UTC] PHP Fatal error: Call to a member function getSite() on null in /ojs/lib/pkp/controllers/tab/settings/siteSetup/form/NewSiteImageFileForm.inc.php on line 37
Prior to this, I was able to actually get the menu to let me select the “Delete” option without it telling me that I didn’t have permission. However, whenever I actually click on the “Delete” option, it won’t finish the command. Here’s the full snippet from the error_log for both errors:
[11-Mar-2019 14:14:05 UTC] PHP Strict Standards: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /ojs/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 386 [11-Mar-2019 14:14:05 UTC] PHP Strict Standards: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134 [11-Mar-2019 14:14:05 UTC] PHP Strict Standards: Declaration of CustomBlockPlugin::getEnabled() should be compatible with BlockPlugin::getEnabled($contextId = NULL) in /ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134 [11-Mar-2019 14:14:05 UTC] PHP Strict Standards: Declaration of PKPSiteSettingsForm::display() should be compatible with Form::display($request = NULL, $template = NULL) in /ojs/lib/pkp/classes/admin/form/PKPSiteSettingsForm.inc.php on line 23 [11-Mar-2019 14:14:05 UTC] PHP Strict Standards: Declaration of PKPSiteSettingsForm::execute() should be compatible with Form::execute() in /ojs/lib/pkp/classes/admin/form/PKPSiteSettingsForm.inc.php on line 23 [11-Mar-2019 14:14:05 UTC] PHP Strict Standards: Declaration of SiteSetupForm::initData() should be compatible with PKPSiteSettingsForm::initData() in /ojs/lib/pkp/controllers/tab/settings/siteSetup/form/SiteSetupForm.inc.php on line 20 [11-Mar-2019 14:14:05 UTC] PHP Strict Standards: Declaration of SiteSetupForm::fetch() should be compatible with Form::fetch($request, $template = NULL, $display = false) in /ojs/lib/pkp/controllers/tab/settings/siteSetup/form/SiteSetupForm.inc.php on line 20 [11-Mar-2019 14:14:05 UTC] PHP Warning: Missing argument 1 for SiteSetupForm::initData(), called in /ojs/lib/pkp/controllers/tab/settings/AdminSettingsTabHandler.inc.php on line 150 and defined in /ojs/lib/pkp/controllers/tab/settings/siteSetup/form/SiteSetupForm.inc.php on line 105 [11-Mar-2019 14:14:05 UTC] PHP Fatal error: Call to a member function getSite() on null in /ojs/lib/pkp/controllers/tab/settings/siteSetup/form/SiteSetupForm.inc.php on line 106 [11-Mar-2019 14:20:20 UTC] PHP Strict Standards: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /ojs/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 386 [11-Mar-2019 14:20:20 UTC] PHP Strict Standards: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134 [11-Mar-2019 14:20:20 UTC] PHP Strict Standards: Declaration of CustomBlockPlugin::getEnabled() should be compatible with BlockPlugin::getEnabled($contextId = NULL) in /ojs/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134 [11-Mar-2019 14:20:20 UTC] PHP Strict Standards: Declaration of SettingsFileUploadForm::fetch() should be compatible with Form::fetch($request, $template = NULL, $display = false) in /ojs/lib/pkp/controllers/tab/settings/form/SettingsFileUploadForm.inc.php on line 18 [11-Mar-2019 14:20:20 UTC] PHP Strict Standards: Declaration of NewSiteImageFileForm::fetch() should be compatible with SettingsFileUploadForm::fetch($request, $params = NULL) in /ojs/lib/pkp/controllers/tab/settings/siteSetup/form/NewSiteImageFileForm.inc.php on line 18 [11-Mar-2019 14:20:20 UTC] PHP Strict Standards: Declaration of NewSiteImageFileForm::initData() should be compatible with Form::initData() in /ojs/lib/pkp/controllers/tab/settings/siteSetup/form/NewSiteImageFileForm.inc.php on line 18 [11-Mar-2019 14:20:20 UTC] PHP Strict Standards: Declaration of NewSiteImageFileForm::execute() should be compatible with Form::execute() in /ojs/lib/pkp/controllers/tab/settings/siteSetup/form/NewSiteImageFileForm.inc.php on line 18 [11-Mar-2019 14:20:20 UTC] PHP Warning: Missing argument 1 for NewSiteImageFileForm::initData(), called in /ojs/lib/pkp/controllers/tab/settings/AdminSettingsTabHandler.inc.php on line 94 and defined in /ojs/lib/pkp/controllers/tab/settings/siteSetup/form/NewSiteImageFileForm.inc.php on line 36 [11-Mar-2019 14:20:20 UTC] PHP Fatal error: Call to a member function getSite() on null in /ojs/lib/pkp/controllers/tab/settings/siteSetup/form/NewSiteImageFileForm.inc.php on line 37
I edited the log to remove our server info and kept the OJS information. Any help would be appreciated.
Thank you.