PHP Fatal error post 3.1 update

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.

As a small update, I’ve gone through and implemented a complete fresh install from the 3.1.1-2 OJS version found online. I’m still unable to delete the header image for the journal, even after implementing a fix found on the forum and the Quick Submit plugin leads to an internal error no matter how I unpackage it to install on our server.

@asmecher I’m not sure where to go from here and any help would be appreciated.

Hi @charlescmyers,

Those are two separate issues – I’d suggest posting them separately next time to help keep the forum organized.

For QuickSubmit, what error do you see? What file did you download, and how did you install it?

For the journal header, what happens when you try to delete the header image?

Regards,
Alec Smecher
Public Knowledge Project Team