Getting warnings with PHP 7.4 and OJS 2.4.8.5

I already applied the recommeded fixes for PHP7 like:

	function PKPApplication() {
		// Configure error reporting
		// FIXME: Error logging needs to be suppressed for strict
		// and deprecation errors in PHP5 as long as we support PHP 4.
		// This is primarily for static method warnings and warnings
		// about use of ... =& new ... Static class members cannot be
		// declared in PHP4 and ... =& new ... is deprecated since PHP 5.
		$errorReportingLevel = E_ALL;
		if (defined('E_STRICT')) $errorReportingLevel &= ~E_STRICT;
		if (defined('E_DEPRECATED')) $errorReportingLevel &= ~E_DEPRECATED;
		if (defined('E_WARNING')) $errorReportingLevel &= ~E_WARNING;
		if (defined('E_NOTICE')) $errorReportingLevel &= ~E_NOTICE;
		@error_reporting($errorReportingLevel);

I also limited php.ini to report ONLY errors.

But I’m still getting those warning on my cron runs of runScheduledTasks.php:

PHP Deprecated:  Non-static method PKPApplication::defineExposedConstant() should not be called statically in /usr/home/seer/public_html/lib/pkp/classes/core/PKPApplication.inc.php on line 547
PHP Deprecated:  Non-static method PKPApplication::getExposedConstants() should not be called statically in /usr/home/seer/public_html/lib/pkp/classes/core/PKPApplication.inc.php on line 515

And also lots of those in httpd-error.log:

[Fri Jul 10 18:32:30.902490 2020] [php7:notice] [pid 988] [client 40.77.167.173:13808] ojs2 has produced an error\n  Message: WARNING: Declaration of GenericPlugin::manage($verb, $args, &$message, &$messageParams) should be compatible with PKPPlugin::manage($verb, $args, &$message, &$messageParams, $request = NULL)\n  In file: /usr/home/seer/public_html/lib/pkp/classes/plugins/GenericPlugin.inc.php\n  At line: 58\n  Stacktrace: \n  Server info:\n   OS: FreeBSD\n   PHP Version: 7.4.8\n   Apache Version: Apache/2.4.43 (FreeBSD) OpenSSL/1.1.1d-freebsd PHP/7.4.8\n   DB Driver: mysqli\n   DB server version: 5.7.30
[Fri Jul 10 18:32:30.902551 2020] [php7:notice] [pid 988] [client 40.77.167.173:13808] ojs2 has produced an error\n  Message: WARNING: Declaration of StaticPagesPlugin::getManagementVerbs() should be compatible with GenericPlugin::getManagementVerbs($verbs = Array)\n  In file: /usr/home/seer/public_html/plugins/generic/staticPages/StaticPagesPlugin.inc.php\n  At line: 79\n  Stacktrace: \n  Server info:\n   OS: FreeBSD\n   PHP Version: 7.4.8\n   Apache Version: Apache/2.4.43 (FreeBSD) OpenSSL/1.1.1d-freebsd PHP/7.4.8\n   DB Driver: mysqli\n   DB server version: 5.7.30
[Fri Jul 10 18:32:30.902666 2020] [php7:notice] [pid 988] [client 40.77.167.173:13808] ojs2 has produced an error\n  Message: WARNING: Declaration of TinyMCEPlugin::getManagementVerbs() should be compatible with GenericPlugin::getManagementVerbs($verbs = Array)\n  In file: /usr/home/seer/public_html/plugins/generic/tinymce/TinyMCEPlugin.inc.php\n  At line: 425\n  Stacktrace: \n  Server info:\n   OS: FreeBSD\n   PHP Version: 7.4.8\n   Apache Version: Apache/2.4.43 (FreeBSD) OpenSSL/1.1.1d-freebsd PHP/7.4.8\n   DB Driver: mysqli\n   DB server version: 5.7.30
[Fri Jul 10 18:32:30.902793 2020] [php7:notice] [pid 988] [client 40.77.167.173:13808] ojs2 has produced an error\n  Message: WARNING: Declaration of TranslatorPlugin::getManagementVerbs() should be compatible with GenericPlugin::getManagementVerbs($verbs = Array)\n  In file: /usr/home/seer/public_html/plugins/generic/translator/TranslatorPlugin.inc.php\n  At line: 57\n  Stacktrace: \n  Server info:\n   OS: FreeBSD\n   PHP Version: 7.4.8\n   Apache Version: Apache/2.4.43 (FreeBSD) OpenSSL/1.1.1d-freebsd PHP/7.4.8\n   DB Driver: mysqli\n   DB server version: 5.7.30
[Fri Jul 10 18:32:30.902916 2020] [php7:notice] [pid 988] [client 40.77.167.173:13808] ojs2 has produced an error\n  Message: WARNING: Declaration of GoogleAnalyticsPlugin::getManagementVerbs() should be compatible with GenericPlugin::getManagementVerbs($verbs = Array)\n  In file: /usr/home/seer/public_html/plugins/generic/googleAnalytics/GoogleAnalyticsPlugin.inc.php\n  At line: 121\n  Stacktrace: \n  Server info:\n   OS: FreeBSD\n   PHP Version: 7.4.8\n   Apache Version: Apache/2.4.43 (FreeBSD) OpenSSL/1.1.1d-freebsd PHP/7.4.8\n   DB Driver: mysqli\n   DB server version: 5.7.30
[Fri Jul 10 18:32:30.903038 2020] [php7:notice] [pid 988] [client 40.77.167.173:13808] ojs2 has produced an error\n  Message: WARNING: Declaration of UsageEventPlugin::getManagementVerbs() should be compatible with GenericPlugin::getManagementVerbs($verbs = Array)\n  In file: /usr/home/seer/public_html/plugins/generic/usageEvent/UsageEventPlugin.inc.php\n  At line: 79\n  Stacktrace: \n  Server info:\n   OS: FreeBSD\n   PHP Version: 7.4.8\n   Apache Version: Apache/2.4.43 (FreeBSD) OpenSSL/1.1.1d-freebsd PHP/7.4.8\n   DB Driver: mysqli\n   DB server version: 5.7.30
[Fri Jul 10 18:32:30.903163 2020] [php7:notice] [pid 988] [client 40.77.167.173:13808] ojs2 has produced an error\n  Message: WARNING: Declaration of UsageStatsPlugin::getManagementVerbs() should be compatible with GenericPlugin::getManagementVerbs($verbs = Array)\n  In file: /usr/home/seer/public_html/plugins/generic/usageStats/UsageStatsPlugin.inc.php\n  At line: 186\n  Stacktrace: \n  Server info:\n   OS: FreeBSD\n   PHP Version: 7.4.8\n   Apache Version: Apache/2.4.43 (FreeBSD) OpenSSL/1.1.1d-freebsd PHP/7.4.8\n   DB Driver: mysqli\n   DB server version: 5.7.30
[Fri Jul 10 18:32:30.903279 2020] [php7:notice] [pid 988] [client 40.77.167.173:13808] ojs2 has produced an error\n  Message: WARNING: Declaration of ReportPlugin::manage($verb, $args) should be compatible with PKPPlugin::manage($verb, $args, &$message, &$messageParams, $request = NULL)\n  In file: /usr/home/seer/public_html/classes/plugins/ReportPlugin.inc.php\n  At line: 231\n  Stacktrace: \n  Server info:\n   OS: FreeBSD\n   PHP Version: 7.4.8\n   Apache Version: Apache/2.4.43 (FreeBSD) OpenSSL/1.1.1d-freebsd PHP/7.4.8\n   DB Driver: mysqli\n   DB server version: 5.7.30
[Fri Jul 10 18:32:30.903426 2020] [php7:notice] [pid 988] [client 40.77.167.173:13808] ojs2 has produced an error\n  Message: WARNING: Declaration of PLNPlugin::getManagementVerbs() should be compatible with GenericPlugin::getManagementVerbs($verbs = Array)\n  In file: /usr/home/seer/public_html/plugins/generic/pln/PLNPlugin.inc.php\n  At line: 428\n  Stacktrace: \n  Server info:\n   OS: FreeBSD\n   PHP Version: 7.4.8\n   Apache Version: Apache/2.4.43 (FreeBSD) OpenSSL/1.1.1d-freebsd PHP/7.4.8\n   DB Driver: mysqli\n   DB server version: 5.7.30
[Fri Jul 10 18:32:30.905488 2020] [php7:notice] [pid 988] [client 40.77.167.173:13808] ojs2 has produced an error\n  Message: WARNING: Declaration of JournalFileManager::downloadFile($filePath, $fileType, $inline = false) should be compatible with FileManager::downloadFile($filePath, $mediaType = NULL, $inline = false, $fileName = NULL)\n  In file: /usr/home/seer/public_html/classes/file/JournalFileManager.inc.php\n  At line: 47\n  Stacktrace: \n  Server info:\n   OS: FreeBSD\n   PHP Version: 7.4.8\n   Apache Version: Apache/2.4.43 (FreeBSD) OpenSSL/1.1.1d-freebsd PHP/7.4.8\n   DB Driver: mysqli\n   DB server version: 5.7.30
[Fri Jul 10 18:32:30.907882 2020] [php7:notice] [pid 988] [client 40.77.167.173:13808] ojs2 has produced an error\n  Message: WARNING: Declaration of IssueHandler::index($args, $request) should be compatible with PKPHandler::index()\n  In file: /usr/home/seer/public_html/pages/issue/IssueHandler.inc.php\n  At line: 39\n  Stacktrace: \n  Server info:\n   OS: FreeBSD\n   PHP Version: 7.4.8\n   Apache Version: Apache/2.4.43 (FreeBSD) OpenSSL/1.1.1d-freebsd PHP/7.4.8\n   DB Driver: mysqli\n   DB server version: 5.7.30
[Fri Jul 10 18:32:30.907928 2020] [php7:notice] [pid 988] [client 40.77.167.173:13808] ojs2 has produced an error\n  Message: WARNING: Declaration of IssueHandler::validate($request, $issueId = NULL, $galleyId = NULL) should be compatible with PKPHandler::validate($requiredContexts = NULL, $request = NULL)\n  In file: /usr/home/seer/public_html/pages/issue/IssueHandler.inc.php\n  At line: 265\n  Stacktrace: \n  Server info:\n   OS: FreeBSD\n   PHP Version: 7.4.8\n   Apache Version: Apache/2.4.43 (FreeBSD) OpenSSL/1.1.1d-freebsd PHP/7.4.8\n   DB Driver: mysqli\n   DB server version: 5.7.30
[Fri Jul 10 18:32:30.907990 2020] [php7:notice] [pid 988] [client 40.77.167.173:13808] NOTICE: Only variables should be passed by reference (/usr/home/seer/public_html/pages/issue/IssueHandler.inc.php:32)
[Fri Jul 10 18:32:30.908081 2020] [php7:notice] [pid 988] [client 40.77.167.173:13808] NOTICE: Only variables should be passed by reference (/usr/home/seer/public_html/pages/issue/IssueHandler.inc.php:33)

I’m at lost on what is causing those even after I disabled the reporting of warnings, notices, etc everywhere…

I think that the problem regarding runScheduledTasks.php can be fixed with the following (I just made the change, let us see if it works):

function define_exposed($name, $value) {
	$errorReportingLevel = E_ALL;
	if (defined('E_STRICT')) $errorReportingLevel &= ~E_STRICT;
	// Remove deprecated errors
	if (defined('E_DEPRECATED')) $errorReportingLevel &= ~E_DEPRECATED;
	@error_reporting($errorReportingLevel);
	PKPApplication::defineExposedConstant($name, $value);
	@error_reporting(E_ALL);
}

But still have no idea on what is causing the notices on httpd-error.log